Whamcloud - gitweb
LU-14099 build: Fix for unconfigured arch_stackwalk 03/40503/7
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sat, 23 Jan 2021 15:22:48 +0000 (09:22 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 08:21:51 +0000 (08:21 +0000)
commit58ac9d3f1844701f68444ecf6228e92a575809c4
treeafc8c78cee755993a2f9f7b0acaf4cbe01e907f7
parent6df76d3357fc5896b6902399ed7ce6d7c7835f58
LU-14099 build: Fix for unconfigured arch_stackwalk

On aarch64 CONFIG_ARCH_STACKWALK is not defined and
print_stack_trace is not available.

Replace print_stack_trace with an open-coded variant
using %pB introduced in Linux v2.6.38-6557-g0f77a8d37825

This also fixes the symbols lookup of stack_trace_save_tsk
using kallsyms at module init time over the use of
symbol_get.

HPE-bug-id: LUS-9518
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I04c3a0a84bb1a05d813a90502d1ed0f5bb2e33ab
Reviewed-on: https://review.whamcloud.com/40503
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/debug.c
libcfs/libcfs/module.c