perf tests vmlinux-kallsyms: Ignore hidden symbols
Bugzilla: https://bugzilla.redhat.com/1975103
upstream
commit 2b775152bbe838c9de0055eb5bdb530c2c88235b
Author: Michael Petlan mpetlan@redhat.com
Date: Wed Sep 22 17:27:06 2021 +0200
description
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.
LPU-Reference: 20210922152706.23655-1-mpetlan@redhat.com
Signed-off-by: Michael Petlan mpetlan@redhat.com