diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-09-04 16:08:59 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-02-17 16:34:08 -0200 |
commit | a5a178e1ae0192e405830f1bba84548992124e88 (patch) | |
tree | 0befc4ea59e523ba47d0f1b4ca2732bef64072e9 /net/netrom/nr_in.c | |
parent | 09bda4432a8a4d4db2b2b94697abc8d732a9ff73 (diff) |
perf tools: Allow expressions in __print_symbolic() fields
The __print_symbolic() function takes a sequence of key-value pairs for
pretty-printing a constant. The new kvm:kvm_exit print fmt uses the
expression:
__print_symbolic(..., { 0x040 + 1, "DB excp" }, ...)
Currently only atoms are supported and this print fmt fails to parse.
This patch adds support for expressions instead of just atoms so that
0x040 + 1 is parsed successfully. Also add arg_num_eval() support for
the '+' operator.
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1315148939-14313-1-git-send-email-stefanha@linux.vnet.ibm.com
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net/netrom/nr_in.c')
0 files changed, 0 insertions, 0 deletions