summaryrefslogtreecommitdiffstats
path: root/sys/sys/sdt.h
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2012-05-15 01:30:25 +0000
committerrstone <rstone@FreeBSD.org>2012-05-15 01:30:25 +0000
commita059a0e086bd1de7928ae8b3f87dfb0a15f5ae0e (patch)
treedcd149c6f88df523a30bf4f80f0007085f75f7f5 /sys/sys/sdt.h
parent4a10f14855432b1a407764f8593d7d13f741fc3b (diff)
downloadFreeBSD-src-a059a0e086bd1de7928ae8b3f87dfb0a15f5ae0e.zip
FreeBSD-src-a059a0e086bd1de7928ae8b3f87dfb0a15f5ae0e.tar.gz
Implement the DTrace sched provider. This implementation aims to be
compatible with the sched provider implemented by Solaris and its open- source derivatives. Full documentation of the sched provider can be found on Oracle's DTrace wiki pages. Note that for compatibility with scripts originally written for Solaris, serveral probes are defined that will never fire. These probes are defined to fire when Solaris-specific features perform certain actions. As these features are not present in FreeBSD, the probes can never fire. Also, I have added a two probes that are not defined in Solaris, lend-pri and load-change. These probes have been added to make it possible to collect schedgraph data with DTrace. Finally, a few probes are defined in Solaris to take a cpuinfo_t * argument. As it was not immediately clear to me how to translate that to FreeBSD, currently those probes are passed NULL in place of a cpuinfo_t *. Sponsored by: Sandvine Incorporated MFC after: 2 weeks
Diffstat (limited to 'sys/sys/sdt.h')
-rw-r--r--sys/sys/sdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h
index 90d1699..e7b5478 100644
--- a/sys/sys/sdt.h
+++ b/sys/sys/sdt.h
@@ -92,6 +92,7 @@
#define SDT_PROBE_DEFINE4(prov, mod, func, name, sname, arg0, arg1, arg2, arg3)
#define SDT_PROBE_DEFINE5(prov, mod, func, name, sname, arg0, arg1, arg2, arg3, arg4)
+#define SDT_PROBE0(prov, mod, func, name)
#define SDT_PROBE1(prov, mod, func, name, arg0)
#define SDT_PROBE2(prov, mod, func, name, arg0, arg1)
#define SDT_PROBE3(prov, mod, func, name, arg0, arg1, arg2)
@@ -231,6 +232,8 @@ struct sdt_provider {
SDT_PROBE_ARGTYPE(prov, mod, func, name, 3, arg3); \
SDT_PROBE_ARGTYPE(prov, mod, func, name, 4, arg4)
+#define SDT_PROBE0(prov, mod, func, name) \
+ SDT_PROBE(prov, mod, func, name, 0, 0, 0, 0, 0)
#define SDT_PROBE1(prov, mod, func, name, arg0) \
SDT_PROBE(prov, mod, func, name, arg0, 0, 0, 0, 0)
#define SDT_PROBE2(prov, mod, func, name, arg0, arg1) \
OpenPOWER on IntegriCloud