mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Allow tracing of functions prefixed by "__".
This restriction was inherited from upstream but is not relevant on FreeBSD. Furthermore, it hindered the tracing of locking primitive subroutines. MFC after: 1 week
This commit is contained in:
parent
d6744932a2
commit
4538cee5bf
4 changed files with 0 additions and 13 deletions
|
|
@ -106,9 +106,6 @@ fbt_provide_module_function(linker_file_t lf, int symindx,
|
|||
return (0);
|
||||
}
|
||||
|
||||
if (name[0] == '_' && name[1] == '_')
|
||||
return (0);
|
||||
|
||||
instr = (uint32_t *)symval->value;
|
||||
limit = (uint32_t *)(symval->value + symval->size);
|
||||
|
||||
|
|
|
|||
|
|
@ -126,10 +126,6 @@ fbt_excluded(const char *name)
|
|||
return (1);
|
||||
}
|
||||
|
||||
/* Exclude some internal functions */
|
||||
if (name[0] == '_' && name[1] == '_')
|
||||
return (1);
|
||||
|
||||
/*
|
||||
* When DTrace is built into the kernel we need to exclude
|
||||
* the FBT functions from instrumentation.
|
||||
|
|
|
|||
|
|
@ -138,9 +138,6 @@ fbt_provide_module_function(linker_file_t lf, int symindx,
|
|||
return (0);
|
||||
}
|
||||
|
||||
if (name[0] == '_' && name[1] == '_')
|
||||
return (0);
|
||||
|
||||
instr = (uint32_t *) symval->value;
|
||||
limit = (uint32_t *) (symval->value + symval->size);
|
||||
|
||||
|
|
|
|||
|
|
@ -174,9 +174,6 @@ fbt_provide_module_function(linker_file_t lf, int symindx,
|
|||
return (0);
|
||||
}
|
||||
|
||||
if (name[0] == '_' && name[1] == '_')
|
||||
return (0);
|
||||
|
||||
size = symval->size;
|
||||
|
||||
instr = (uint8_t *) symval->value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue