diff options
author | markj <markj@FreeBSD.org> | 2013-10-26 06:23:51 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-10-26 06:23:51 +0000 |
commit | 130419d137ba70fe8963ba3479f74ceae3cc8b78 (patch) | |
tree | 22b69d1e1c49ff34c623390998ba9871962edc2c /sys/sys/sdt.h | |
parent | d4cd103a3a6de5d3d938d7a9f9623af38a10ebb1 (diff) | |
download | FreeBSD-src-130419d137ba70fe8963ba3479f74ceae3cc8b78.zip FreeBSD-src-130419d137ba70fe8963ba3479f74ceae3cc8b78.tar.gz |
Do some cleanup of the SDT code. In particular,
* Remove the unused sdt cdev.
* Don't bother keeping a list of probes in struct sdt_prov; it's not needed.
* Invoke sdt_load and sdt_unload from the module handler instead of
registering separate SYSINITs.
* Keep to within 80 columns.
* Check for errors from dtrace_unregister().
Diffstat (limited to 'sys/sys/sdt.h')
-rw-r--r-- | sys/sys/sdt.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h index f7b58f6..8c3b184 100644 --- a/sys/sys/sdt.h +++ b/sys/sys/sdt.h @@ -134,7 +134,7 @@ SET_DECLARE(sdt_argtypes_set, struct sdt_argtype); #define SDT_PROVIDER_DEFINE(prov) \ struct sdt_provider sdt_provider_##prov[1] = { \ - { #prov, { NULL, NULL }, { NULL, NULL }, 0, 0 } \ + { #prov, { NULL, NULL }, 0, 0 } \ }; \ DATA_SET(sdt_providers_set, sdt_provider_##prov); @@ -358,7 +358,6 @@ struct sdt_provider { char *name; /* Provider name. */ TAILQ_ENTRY(sdt_provider) prov_entry; /* SDT provider list entry. */ - TAILQ_HEAD(probe_list_head, sdt_probe) probe_list; uintptr_t id; /* DTrace provider ID. */ int sdt_refs; /* Number of module references. */ }; |