1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Don't all DTrace's FBT on ARM to instrument undefinedinstruction(), as

this would lead to DTrace reentrance.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Robert Watson 2015-03-05 07:40:41 +00:00
parent 3a40fd5ebd
commit ca162c0888
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279626

View File

@ -105,6 +105,13 @@ fbt_provide_module_function(linker_file_t lf, int symindx,
if (name[0] == '_' && name[1] == '_')
return (0);
/*
* Architecture-specific exclusion list, largely to do with FBT trap
* processing, to prevent reentrance.
*/
if (strcmp(name, "undefinedinstruction") == 0)
return (0);
instr = (uint32_t *)symval->value;
limit = (uint32_t *)(symval->value + symval->size);