Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/dev/fbt/fbt.c
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | fbt_excluded(const char *name) | ||||
*/ | */ | ||||
if (strcmp(name, "owner_mtx") == 0 || | if (strcmp(name, "owner_mtx") == 0 || | ||||
strcmp(name, "owner_rm") == 0 || | strcmp(name, "owner_rm") == 0 || | ||||
strcmp(name, "owner_rw") == 0 || | strcmp(name, "owner_rw") == 0 || | ||||
strcmp(name, "owner_sx") == 0) | strcmp(name, "owner_sx") == 0) | ||||
return (1); | return (1); | ||||
/* | /* | ||||
* Stack unwinders may be called from probe context on some | |||||
* platforms. | |||||
*/ | |||||
#if defined(__riscv) | |||||
if (strcmp(name, "unwind_frame") == 0) | |||||
return (1); | |||||
#endif | |||||
/* | |||||
* When DTrace is built into the kernel we need to exclude | * When DTrace is built into the kernel we need to exclude | ||||
* the FBT functions from instrumentation. | * the FBT functions from instrumentation. | ||||
*/ | */ | ||||
#ifndef _KLD_MODULE | #ifndef _KLD_MODULE | ||||
if (strncmp(name, "fbt_", 4) == 0) | if (strncmp(name, "fbt_", 4) == 0) | ||||
return (1); | return (1); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 1,051 Lines • Show Last 20 Lines |