diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-08-22 11:18:57 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-08-22 11:18:57 +0000 |
commit | ea11ba678823dbe5705fff2f6b2dbd5434fdea02 (patch) | |
tree | 6ac97777920c38ee27a1167a56b6790fef911dd1 /sys/net | |
parent | 46e8bd7ded82faf30289ba940bca95b4cba0d065 (diff) | |
download | FreeBSD-src-ea11ba678823dbe5705fff2f6b2dbd5434fdea02.zip FreeBSD-src-ea11ba678823dbe5705fff2f6b2dbd5434fdea02.tar.gz |
Add an extra comment to the SDT probes definition. This allows us to get
use '-' in probe names, matching the probe names in Solaris.[1]
Add userland SDT probes definitions to sys/sdt.h.
Sponsored by: The FreeBSD Foundation
Discussed with: rwaston [1]
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/vnet.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/net/vnet.c b/sys/net/vnet.c index fb0db34..8fc52b2 100644 --- a/sys/net/vnet.c +++ b/sys/net/vnet.c @@ -208,11 +208,15 @@ static TAILQ_HEAD(, vnet_data_free) vnet_data_free_head = static struct sx vnet_data_free_lock; SDT_PROVIDER_DEFINE(vnet); -SDT_PROBE_DEFINE1(vnet, functions, vnet_alloc, entry, "int"); -SDT_PROBE_DEFINE2(vnet, functions, vnet_alloc, alloc, "int", "struct vnet *"); -SDT_PROBE_DEFINE2(vnet, functions, vnet_alloc, return, "int", "struct vnet *"); -SDT_PROBE_DEFINE2(vnet, functions, vnet_destroy, entry, "int", "struct vnet *"); -SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return, "int"); +SDT_PROBE_DEFINE1(vnet, functions, vnet_alloc, entry, entry, "int"); +SDT_PROBE_DEFINE2(vnet, functions, vnet_alloc, alloc, alloc, "int", + "struct vnet *"); +SDT_PROBE_DEFINE2(vnet, functions, vnet_alloc, return, return, + "int", "struct vnet *"); +SDT_PROBE_DEFINE2(vnet, functions, vnet_destroy, entry, entry, + "int", "struct vnet *"); +SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return, entry, + "int"); #ifdef DDB static void db_show_vnet_print_vs(struct vnet_sysinit *, int); |