diff options
author | Kyle McMartin <kyle@redhat.com> | 2014-09-16 23:37:18 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-10-02 18:01:51 +0200 |
commit | 6c34f1f5424395994c125f8c68bed395920ecc58 (patch) | |
tree | 811e5d9f55355f74618b943d60c786eb715b4efa /kernel | |
parent | arm64: Use DMA_ERROR_CODE to denote failed allocation (diff) | |
download | linux-6c34f1f5424395994c125f8c68bed395920ecc58.tar.xz linux-6c34f1f5424395994c125f8c68bed395920ecc58.zip |
aarch64: filter $x from kallsyms
Similar to ARM, AArch64 is generating $x and $d syms... which isn't
terribly helpful when looking at %pF output and the like. Filter those
out in kallsyms, modpost and when looking at module symbols.
Seems simplest since none of these check EM_ARM anyway, to just add it
to the strchr used, rather than trying to make things overly
complicated.
initcall_debug improves:
dmesg_before.txt: initcall $x+0x0/0x154 [sg] returned 0 after 26331 usecs
dmesg_after.txt: initcall init_sg+0x0/0x154 [sg] returned 0 after 15461 usecs
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index 03214bd288e9..3d52936031cc 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3388,7 +3388,7 @@ static inline int is_arm_mapping_symbol(const char *str) { if (str[0] == '.' && str[1] == 'L') return true; - return str[0] == '$' && strchr("atd", str[1]) + return str[0] == '$' && strchr("axtd", str[1]) && (str[2] == '\0' || str[2] == '.'); } |