]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/xmon: Add address lookup for percpu symbols
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 22 Nov 2016 09:20:09 +0000 (17:20 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:12:35 +0000 (22:12 +1000)
commit302c7b0c4ff5aed585419603f835dee30207e5d5
tree509bc52c839c0ebdafd7eef8a52d11cfa092a31b
parent646dbe40fa2a54118975792fa9b98cefac7d232e
powerpc/xmon: Add address lookup for percpu symbols

Currently, in xmon, there is no obvious way to get an address for a
percpu symbol for a particular cpu. Having such an ability would be
good for debugging the system when percpu variables got involved.

Therefore, this patch introduces a new xmon command "lp" to lookup the
address for percpu symbols. Usage of "lp" is similar to "ls", except
that we could add a cpu number to choose the variable of which cpu we
want to lookup. If no cpu number is given, lookup for current cpu.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c