Whamcloud - gitweb
LU-14099 build: Fix for unconfigured arch_stackwalk
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 11 Mar 2021 23:45:11 +0000 (15:45 -0800)
committerLi Xi <lixi@ddn.com>
Tue, 16 Mar 2021 12:37:58 +0000 (12:37 +0000)
commit1af791ea372ef1d56bf8fa92b00517b187c4a8cf
tree6b7b5206f0c38689a571450c6bfd82bd8040a094
parent3bf0614314493d4cc8d9039a0203141ea7060f97
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.

Lustre-commit: 58ac9d3f1844701f68444ecf6228e92a575809c4
Lustre-change: https://review.whamcloud.com/40503

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