perf tools: Pass the struct opt to the wildcard parsing routine
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Jan 2011 16:40:46 +0000 (14:40 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Jan 2011 12:58:39 +0000 (10:58 -0200)
commit17ea1b70a87e28457821318341bead2b45563092
tree9ef65589158d7d4b0f98e26e3ea386d3394cb6f3
parentd7065adb9b4f3384c2615f0a3dbdb6c3aae1eb18
perf tools: Pass the struct opt to the wildcard parsing routine

It is needed because it will call parse_event for each tracepoint
name that matches, and we pass the perf_evlist via opt->value.

Problem introduced in 4503fdd where my assumption about opt being
always non NULL made me not look at callers of parse_events outside
builtin-*.c.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c