Whamcloud - gitweb
LU-16314 lnet: Migrate LASSERTF %p to %px 31/51231/7
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 6 Jun 2023 04:07:44 +0000 (11:07 +0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:05:22 +0000 (07:05 +0000)
commit772d09d3144d6c85af7dd6c06a06a19b01b12a36
tree30a9a3787d6afebead9acba6350e7e419b559d2e
parented389ce352db327117c85460e81767e2594cce7c
LU-16314 lnet: Migrate LASSERTF %p to %px

This change covers libcfs and lnet and converts LASSERTF
statements to explicitly use %px.

Use %px to explicitly report the non-hashed pointer value
messages printed when a kernel panic is imminent. When
analyzing a crash dump the associated kernel address can
be used to determine the system state that lead to the
system crash.

As crash dumps can and are provided by customers from
production systems the use of the kernel command line
parameter:
    no_hash_pointers
is not always possible.

Ref: Documentation/core-api/printk-formats.rst

Test-Parameters: trivial
HPE-bug-id: LUS-10945
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I4d0c956e1b914cea9517b632d46f1714bcd43a85
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51231
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/libcfs/hash.c
lnet/include/lnet/lib-lnet.h
lnet/klnds/gnilnd/gnilnd.c
lnet/klnds/gnilnd/gnilnd.h
lnet/klnds/gnilnd/gnilnd_cb.c
lnet/klnds/gnilnd/gnilnd_conn.c
lnet/klnds/gnilnd/gnilnd_stack.c
lnet/selftest/rpc.c