create-diff-object: clang __UNIQUE_ID symbol support

clang does not always use __UNIQUE_ID as prefix and can generate symbols
with names like this:
	trace_nfsd_exp_get_by_name.__UNIQUE_ID___addressable___SCK__tp_func_nfsd_exp_get_by_name645

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2021-02-03 12:40:34 +01:00
parent 488f30c31b
commit 38c2d7315d
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ static int maybe_discarded_sym(const char *name)
if (!strncmp(name, "__exitcall_", 11) ||
!strncmp(name, "__brk_reservation_fn_", 21) ||
!strncmp(name, "__func_stack_frame_non_standard_", 32) ||
!strncmp(name, "__addressable_", 14) ||
!strncmp(name, "__UNIQUE_ID_", 12) ||
strstr(name, "__addressable_") ||
strstr(name, "__UNIQUE_ID_") ||
!strncmp(name, ".L.str", 6))
return 1;