From 79856499bd6f3f11cd2bd6b140d36a1183cd49ad Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Sun, 22 Aug 2010 11:18:57 +0000 Subject: 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] --- sys/tools/vnode_if.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/tools/vnode_if.awk') diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index 86c6bdc522ef..3fdea0a24c1b 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -355,8 +355,8 @@ while ((getline < srcfile) > 0) { printc("};"); printc("\n"); - printc("SDT_PROBE_DEFINE2(vfs, vop, " name ", entry, \"struct vnode *\", \"struct " name "_args *\");\n"); - printc("SDT_PROBE_DEFINE3(vfs, vop, " name ", return, \"struct vnode *\", \"struct " name "_args *\", \"int\");\n"); + printc("SDT_PROBE_DEFINE2(vfs, vop, " name ", entry, entry, \"struct vnode *\", \"struct " name "_args *\");\n"); + printc("SDT_PROBE_DEFINE3(vfs, vop, " name ", return, return, \"struct vnode *\", \"struct " name "_args *\", \"int\");\n"); # Print out function. printc("\nint\n" uname "_AP(struct " name "_args *a)"); -- cgit v1.3