aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2013-10-26 06:23:51 +0000
committerMark Johnston <markj@FreeBSD.org>2013-10-26 06:23:51 +0000
commit9c06d5a051660fbf00ea833bc6f144db88bb2549 (patch)
tree22b69d1e1c49ff34c623390998ba9871962edc2c /sys/sys
parent4dc4651d73eab0610ab4a95a407aca8c01b1ada9 (diff)
downloadsrc-9c06d5a051660fbf00ea833bc6f144db88bb2549.tar.gz
src-9c06d5a051660fbf00ea833bc6f144db88bb2549.zip
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().
Notes
Notes: svn path=/head/; revision=257152
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/sdt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h
index f7b58f64b649..8c3b1849afdc 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. */
};