Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150761406
D22739.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22739.diff
View Options
Index: head/sys/tools/vnode_if.awk
===================================================================
--- head/sys/tools/vnode_if.awk
+++ head/sys/tools/vnode_if.awk
@@ -363,16 +363,20 @@
printc("\tVNASSERT(a->a_gen.a_desc == &" name "_desc, a->a_" args[0]",");
printc("\t (\"Wrong a_desc in " name "(%p, %p)\", a->a_" args[0]", a));");
printc("\tVNASSERT(vop != NULL, a->a_" args[0]", (\"No "name"(%p, %p)\", a->a_" args[0]", a));")
- 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);
add_pre(name);
- printc("\tif (vop->"name" != NULL)")
+ for (i = 0; i < numargs; ++i)
+ add_debug_code(name, args[i], "Entry", "\t");
+ printc("\tif (__predict_true(!SDT_PROBES_ENABLED() && vop->"name" != NULL)) {");
printc("\t\trc = vop->"name"(a);")
- printc("\telse")
- printc("\t\trc = vop->vop_bypass(&a->a_gen);")
- printc("\tSDT_PROBE3(vfs, vop, " name ", return, a->a_" args[0] ", a, rc);\n");
+ printc("\t} else {")
+ printc("\t\tSDT_PROBE2(vfs, vop, " name ", entry, a->a_" args[0] ", a);");
+ printc("\t\tif (vop->"name" != NULL)")
+ printc("\t\t\trc = vop->"name"(a);")
+ printc("\t\telse")
+ printc("\t\t\trc = vop->vop_bypass(&a->a_gen);")
+ printc("\t\tSDT_PROBE3(vfs, vop, " name ", return, a->a_" args[0] ", a, rc);");
+ printc("\t}")
printc("\tif (rc == 0) {");
for (i = 0; i < numargs; ++i)
add_debug_code(name, args[i], "OK", "\t\t");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 9:30 PM (13 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30844778
Default Alt Text
D22739.diff (1 KB)
Attached To
Mode
D22739: vfs: allow tail call optimisation in vops in the common case
Attached
Detach File
Event Timeline
Log In to Comment