]> git.baikalelectronics.ru Git - 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)
commitfad44916d564c483f9ee895d8c481fafe94a0816
tree509bc52c839c0ebdafd7eef8a52d11cfa092a31b
parent3d3d0486cba289e4bb2aaa1b4cee1a793043f076
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