Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106067699
D23357.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
D23357.diff
View Options
Index: head/sys/tools/vnode_if.awk
===================================================================
--- head/sys/tools/vnode_if.awk
+++ head/sys/tools/vnode_if.awk
@@ -367,14 +367,11 @@
add_pre(name);
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("\tif (!SDT_PROBES_ENABLED()) {");
printc("\t\trc = vop->"name"(a);")
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\trc = vop->"name"(a);")
printc("\t\tSDT_PROBE3(vfs, vop, " name ", return, a->a_" args[0] ", a, rc);");
printc("\t}")
printc("\tif (rc == 0) {");
@@ -449,6 +446,11 @@
printc("\t\tvop = vop->vop_default;")
printc("\tif (vop != NULL)");
printc("\t\torig_vop->vop_bypass = vop->vop_bypass;");
+ printc("");
+ for (name in funcarr) {
+ printc("\tif (orig_vop->"name" == NULL)");
+ printc("\t\torig_vop->"name" = (void *)orig_vop->vop_bypass;");
+ }
printc("");
printc("\torig_vop->registered = true;");
printc("}")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 8:34 PM (10 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15598559
Default Alt Text
D23357.diff (1 KB)
Attached To
Mode
D23357: vfs: stop null checking routines in vop wrappers
Attached
Detach File
Event Timeline
Log In to Comment