perf tests vmlinux-kallsyms: Ignore hidden symbols
authorMichael Petlan <mpetlan@redhat.com>
Wed, 22 Sep 2021 15:27:06 +0000 (17:27 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Sep 2021 17:13:42 +0000 (14:13 -0300)
commit2b775152bbe838c9de0055eb5bdb530c2c88235b
treecbdc75c6275fcbb85b78d3795a0f7b3696c6c57e
parent94886961e324d5b6bae8e206b227c6eeb0f22c2c
perf tests vmlinux-kallsyms: Ignore hidden symbols

Certain kernel symbols are purposely hidden from kallsyms. The function
is_ignored_symbol() from scripts/kallsyms.c decides if a symbol should
be hidden or not.

The perf test "vmlinux symtab matches kallsyms" fails in case perf finds
some of the hidden symbols in its machine image and can't match them to
kallsyms.

Let's add a filter to check if a symbol not found isn't one of these
before failing the test.

The function is_ignored_symbol() has been copied from scripts/kallsyms.c
and needs to be updated along with the original.

Signed-off-by: Michael Petlan <mpetlan@redhat.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
LPU-Reference: 20210922152706.23655-1-mpetlan@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/vmlinux-kallsyms.c