Page MenuHomeFreeBSD

D27754.id81218.diff
No OneTemporary

D27754.id81218.diff

Index: sys/cddl/dev/fbt/fbt.c
===================================================================
--- sys/cddl/dev/fbt/fbt.c
+++ sys/cddl/dev/fbt/fbt.c
@@ -171,6 +171,21 @@
return (1);
#endif
+#if defined(__riscv)
+ /*
+ * Some assembly-language exception handlers are not suitable for
+ * instrumentation.
+ */
+ if (strcmp(name, "cpu_exception_handler") == 0)
+ return (1);
+ if (strcmp(name, "cpu_exception_handler_user") == 0)
+ return (1);
+ if (strcmp(name, "cpu_exception_handler_supervisor") == 0)
+ return (1);
+ if (strcmp(name, "do_trap_supervisor") == 0)
+ return (1);
+#endif
+
/*
* When DTrace is built into the kernel we need to exclude
* the FBT functions from instrumentation.

File Metadata

Mime Type
text/plain
Expires
Sun, Jun 14, 4:30 PM (3 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33956214
Default Alt Text
D27754.id81218.diff (715 B)

Event Timeline