Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144593142
D39259.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1000 B
Referenced Files
None
Subscribers
None
D39259.diff
View Options
diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c
--- a/sys/cddl/dev/fbt/fbt.c
+++ b/sys/cddl/dev/fbt/fbt.c
@@ -194,14 +194,17 @@
return;
/*
- * To register with DTrace, a module must list 'dtrace' as a
- * dependency in order for the kernel linker to resolve
- * symbols like dtrace_register(). All modules with such a
- * dependency are ineligible for FBT tracing.
+ * To register with DTrace, a module must list 'dtrace' as a dependency
+ * in order for the kernel linker to resolve symbols like
+ * dtrace_register(). All modules with such a dependency are ineligible
+ * for FBT tracing. An exception is dtrace_test.ko, whose functions we
+ * want to be able to trace.
*/
- for (i = 0; i < lf->ndeps; i++)
- if (strncmp(lf->deps[i]->filename, "dtrace", 6) == 0)
- return;
+ if (strcmp(modname, "dtrace_test") != 0) {
+ for (i = 0; i < lf->ndeps; i++)
+ if (strncmp(lf->deps[i]->filename, "dtrace", 6) == 0)
+ return;
+ }
if (lf->fbt_nentries) {
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 11, 12:40 AM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28634530
Default Alt Text
D39259.diff (1000 B)
Attached To
Mode
D39259: fbt: Allow tracing of dtrace_test.ko functions
Attached
Detach File
Event Timeline
Log In to Comment