perf tools: fix event parsing of comma-separated tracepoint events
authorCorey Ashford <cjashfor@linux.vnet.ibm.com>
Tue, 30 Nov 2010 22:27:01 +0000 (14:27 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Dec 2010 01:04:39 +0000 (23:04 -0200)
commit4c635a4e04700a371ef7e4d4bb33ed88747e801e
tree66fc0a44217cc8f01a720b92c1b74f70a83a6fc7
parent3e8e24f2fc66d32eb0e570e4117dfd05227047e6
perf tools: fix event parsing of comma-separated tracepoint events

There are number of issues that prevent the use of multiple tracepoint events
being specified in a -e/--event switch, separated by commas.

For example, perf stat -e irq:irq_handler_entry,irq:irq_handler_exit ...  fails
because the tracepoint event parsing code doesn't recognize the comma separator
properly.

This patch corrects those issues.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Julia Lawall <julia@diku.dk>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reported-by: Michael Ellerman <michaele@au1.ibm.com>
LKML-Reference: <1291156021-17711-1-git-send-email-cjashfor@linux.vnet.ibm.com>
Signed-off-by: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c