aboutsummaryrefslogtreecommitdiff
path: root/sys/tools
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2015-09-28 12:14:16 +0000
committerAndriy Gapon <avg@FreeBSD.org>2015-09-28 12:14:16 +0000
commit2f2f522b5de618d24c7ce477bc54ec945124122c (patch)
tree7cbb4c63806f8c7246034b6254eee513f36ea37e /sys/tools
parentb27480c68d87d6aaade60f4e60e3647ad3a81d38 (diff)
downloadsrc-2f2f522b5de618d24c7ce477bc54ec945124122c.tar.gz
src-2f2f522b5de618d24c7ce477bc54ec945124122c.zip
save some bytes by using more concise SDT_PROBE<n> instead of SDT_PROBE
SDT_PROBE requires 5 parameters whereas SDT_PROBE<n> requires n parameters where n is typically smaller than 5. Perhaps SDT_PROBE should be made a private implementation detail. MFC after: 20 days
Notes
Notes: svn path=/head/; revision=288336
Diffstat (limited to 'sys/tools')
-rw-r--r--sys/tools/vnode_if.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 7d106e7f9c67..5bb3971c4387 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -359,7 +359,7 @@ while ((getline < srcfile) > 0) {
printc("\t vop->"name" == NULL && vop->vop_bypass == NULL)")
printc("\t\tvop = vop->vop_default;")
printc("\tVNASSERT(vop != NULL, a->a_" args[0]", (\"No "name"(%p, %p)\", a->a_" args[0]", a));")
- printc("\tSDT_PROBE(vfs, vop, " name ", entry, a->a_" args[0] ", a, 0, 0, 0);\n");
+ printc("\tSDT_PROBE2(vfs, vop, " name ", entry, a->a_" args[0] ", a);\n");
for (i = 0; i < numargs; ++i)
add_debug_code(name, args[i], "Entry", "\t");
printc("\tKTR_START" ctrstr);
@@ -370,7 +370,7 @@ while ((getline < srcfile) > 0) {
printc("\telse")
printc("\t\trc = vop->vop_bypass(&a->a_gen);")
printc("\tVFS_EPILOGUE(a->a_" args[0]"->v_mount);")
- printc("\tSDT_PROBE(vfs, vop, " name ", return, a->a_" args[0] ", a, rc, 0, 0);\n");
+ printc("\tSDT_PROBE3(vfs, vop, " name ", return, a->a_" args[0] ", a, rc);\n");
printc("\tif (rc == 0) {");
for (i = 0; i < numargs; ++i)
add_debug_code(name, args[i], "OK", "\t\t");