mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
perf probe powerpc: Ignore SyS symbols irrespective of endianness
[ Upstream commitfa694160cc
] This makes sure that the SyS symbols are ignored for any powerpc system, not just the big endian ones. Reported-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Sandipan Das <sandipan@linux.ibm.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Fixes:fb6d594231
("perf probe ppc: Use the right prefix when ignoring SyS symbols on ppc") Link: http://lkml.kernel.org/r/20180828090848.1914-1-sandipan@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4095fd29fe
commit
c00f01c402
1 changed files with 3 additions and 1 deletions
|
@ -22,15 +22,16 @@ bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
|
|||
|
||||
#endif
|
||||
|
||||
#if !defined(_CALL_ELF) || _CALL_ELF != 2
|
||||
int arch__choose_best_symbol(struct symbol *syma,
|
||||
struct symbol *symb __maybe_unused)
|
||||
{
|
||||
char *sym = syma->name;
|
||||
|
||||
#if !defined(_CALL_ELF) || _CALL_ELF != 2
|
||||
/* Skip over any initial dot */
|
||||
if (*sym == '.')
|
||||
sym++;
|
||||
#endif
|
||||
|
||||
/* Avoid "SyS" kernel syscall aliases */
|
||||
if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3))
|
||||
|
@ -41,6 +42,7 @@ int arch__choose_best_symbol(struct symbol *syma,
|
|||
return SYMBOL_A;
|
||||
}
|
||||
|
||||
#if !defined(_CALL_ELF) || _CALL_ELF != 2
|
||||
/* Allow matching against dot variants */
|
||||
int arch__compare_symbol_names(const char *namea, const char *nameb)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue