kern_sdt.c (179089) | kern_sdt.c (209390) |
---|---|
1/*- 2 * Copyright 2006-2008 John Birrell <jb@FreeBSD.org> 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright 2006-2008 John Birrell <jb@FreeBSD.org> 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/kern/kern_sdt.c 179089 2008-05-18 19:32:36Z jb $ | 25 * $FreeBSD: head/sys/kern/kern_sdt.c 209390 2010-06-21 09:55:56Z ed $ |
26 * 27 * Backend for the Statically Defined Tracing (SDT) kernel support. This is 28 * required to allow a module to load even though DTrace kernel support may 29 * not be present. A module may be built with SDT probes in it which are 30 * registered and deregistered via SYSINIT/SYSUNINIT. 31 * 32 */ 33 --- 26 unchanged lines hidden (view full) --- 60sdt_probe_func_t sdt_probe_func = sdt_probe_stub; 61 62/* 63 * This is a stub for probe calls in case kernel DTrace support isn't 64 * compiled in. It should never get called because there is no DTrace 65 * support to enable it. 66 */ 67void | 26 * 27 * Backend for the Statically Defined Tracing (SDT) kernel support. This is 28 * required to allow a module to load even though DTrace kernel support may 29 * not be present. A module may be built with SDT probes in it which are 30 * registered and deregistered via SYSINIT/SYSUNINIT. 31 * 32 */ 33 --- 26 unchanged lines hidden (view full) --- 60sdt_probe_func_t sdt_probe_func = sdt_probe_stub; 61 62/* 63 * This is a stub for probe calls in case kernel DTrace support isn't 64 * compiled in. It should never get called because there is no DTrace 65 * support to enable it. 66 */ 67void |
68sdt_probe_stub(u_int32_t id, uintptr_t arg0, uintptr_t arg1, | 68sdt_probe_stub(uint32_t id, uintptr_t arg0, uintptr_t arg1, |
69 uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) 70{ 71 printf("sdt_probe_stub: Why did this get called?\n"); 72} 73 74/* 75 * Called from SYSINIT to register a provider. 76 */ --- 197 unchanged lines hidden --- | 69 uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) 70{ 71 printf("sdt_probe_stub: Why did this get called?\n"); 72} 73 74/* 75 * Called from SYSINIT to register a provider. 76 */ --- 197 unchanged lines hidden --- |