• Sandipan Das's avatar
    Fix 'test_debuginfo' from failing if a symbol has multiple aliases · d06b4381
    Sandipan Das authored
    The first symbol from /proc/kallsyms is read by 'test_debuginfo'
    and the name obtained here is compared against the name obtained
    from the BPF.ksym() library call. In some architectures such as
    powerpc64le, a kernel symbol may have multiple aliases that refer
    to the same address. So, to avoid the test from failing, we need
    to compare the name returned by BPF.ksym() against all possible
    aliases for the given address in /proc/kallsyms and look for a
    match.
    Signed-off-by: default avatarSandipan Das <sandipan@linux.vnet.ibm.com>
    d06b4381
test_debuginfo.py 4.62 KB