diff options
author | Jiri Olsa <[email protected]> | 2015-04-22 21:10:22 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-04-29 10:38:01 -0300 |
commit | 3b0e371cc05dfb624f990ea5e1da2bff615adaef (patch) | |
tree | 9d1065fcfc215961674a4e9fbb0588865a177755 /lib/cpu_rmap.c | |
parent | e64b020ba1adfd081a26c5a35a2990f91da043a0 (diff) |
perf tools: Add static terms support for parse_events_error
Allowing static terms like 'name,period,config,config1..' processing to
report back error.
$ perf record -e 'cpu/event=1,name=1/' ls
event syntax error: '..=1,name=1/'
\___ expected string value
$ perf record -e 'cpu/event=1,period=krava/' ls
event syntax error: '..,period=krava/'
\___ expected numeric value
$ perf record -e 'cpu/config=krava1/' ls
event syntax error: '../config=krava1/'
\___ expected numeric value
Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Renamed 'error' variables to 'err', not to clash with util.h error() ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/cpu_rmap.c')
0 files changed, 0 insertions, 0 deletions