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:
Mark Johnston 2016-10-02 00:35:00 +00:00
parent d6744932a2
commit 4538cee5bf
4 changed files with 0 additions and 13 deletions

View file

@ -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);

View file

@ -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.

View file

@ -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);

View file

@ -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;