154359Sroberto/*- 254359Sroberto * Copyright 2014 The FreeBSD Project. 354359Sroberto * All rights reserved. 454359Sroberto * 554359Sroberto * This software was developed by Steven Hartland. 682498Sroberto * 782498Sroberto * Redistribution and use in source and binary forms, with or without 882498Sroberto * modification, are permitted provided that the following conditions 982498Sroberto * are met: 1082498Sroberto * 1. Redistributions of source code must retain the above copyright 1182498Sroberto * notice, this list of conditions and the following disclaimer. 1254359Sroberto * 2. Redistributions in binary form must reproduce the above copyright 1354359Sroberto * notice, this list of conditions and the following disclaimer in the 1454359Sroberto * documentation and/or other materials provided with the distribution. 1554359Sroberto * 1654359Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1754359Sroberto * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1854359Sroberto * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1954359Sroberto * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2054359Sroberto * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2182498Sroberto * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2254359Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2354359Sroberto * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2454359Sroberto * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2554359Sroberto * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2654359Sroberto * SUCH DAMAGE. 2754359Sroberto */ 2854359Sroberto 2954359Sroberto#include <sys/cdefs.h> 3054359Sroberto__FBSDID("$FreeBSD: releng/11.0/sys/cddl/compat/opensolaris/kern/opensolaris_dtrace.c 271819 2014-09-18 20:38:18Z smh $"); 3154359Sroberto 3254359Sroberto#include <sys/param.h> 3354359Sroberto#include <sys/queue.h> 3454359Sroberto#include <sys/sdt.h> 3554359Sroberto 3654359SrobertoSDT_PROBE_DEFINE1(sdt, , , set__error, "int"); 3754359Sroberto