Skip to content

Commit fa69416

Browse files
sandip4nacmel
authored andcommitted
perf probe powerpc: Ignore SyS symbols irrespective of endianness
This makes sure that the SyS symbols are ignored for any powerpc system, not just the big endian ones. Reported-by: Naveen N. Rao <[email protected]> Signed-off-by: Sandipan Das <[email protected]> Reviewed-by: Kamalesh Babulal <[email protected]> Acked-by: Naveen N. Rao <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Ravi Bangoria <[email protected]> Fixes: fb6d594 ("perf probe ppc: Use the right prefix when ignoring SyS symbols on ppc") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent c9f23d2 commit fa69416

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/perf/arch/powerpc/util/sym-handling.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
2222

2323
#endif
2424

25-
#if !defined(_CALL_ELF) || _CALL_ELF != 2
2625
int arch__choose_best_symbol(struct symbol *syma,
2726
struct symbol *symb __maybe_unused)
2827
{
2928
char *sym = syma->name;
3029

30+
#if !defined(_CALL_ELF) || _CALL_ELF != 2
3131
/* Skip over any initial dot */
3232
if (*sym == '.')
3333
sym++;
34+
#endif
3435

3536
/* Avoid "SyS" kernel syscall aliases */
3637
if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3))
@@ -41,6 +42,7 @@ int arch__choose_best_symbol(struct symbol *syma,
4142
return SYMBOL_A;
4243
}
4344

45+
#if !defined(_CALL_ELF) || _CALL_ELF != 2
4446
/* Allow matching against dot variants */
4547
int arch__compare_symbol_names(const char *namea, const char *nameb)
4648
{

0 commit comments

Comments
 (0)