[Crash-utility] [PATCHv2 03/11] Implement percpu variables for "p"

Petr Tesarik ptesarik at suse.cz
Mon Oct 21 19:47:20 UTC 2013


Add per-cpu specifications to the "p" command. This allows to specify
CPUs for a per-cpu symbol after a colon.

Keep in mind that a colon can be part of a valid C expression, e.g. ':'
or the ternary operator, so if the part before the colon is not a symbol,
the colon must be restored. Fortunately, a symbol name followed by a colon
cannot start a valid C expression, so there is never any ambiguity.

Signed-off-by: Petr Tesarik <ptesarik at suse.cz>

---
 help.c    |   13 ++++++-
 symbols.c |  113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 113 insertions(+), 13 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: percpu-p.patch
Type: text/x-patch
Size: 6788 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20131021/a044b8bf/attachment.bin>


More information about the Crash-utility mailing list