perf tools: Use allocated list for each parsed event
authorJiri Olsa <jolsa@redhat.com>
Mon, 21 May 2012 07:12:51 +0000 (09:12 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 May 2012 14:22:28 +0000 (11:22 -0300)
commitb847cbdc6750bdea248ace75c1868f8ef57dcdf0
treeb42f8fa93f093f2a3a23f13274f8e7cddcc6123b
parent82ba1f2f614871b388cb1bd58594507b6f0f2b79
perf tools: Use allocated list for each parsed event

Switch from using static temporary event list into dynamically allocated
one. This way we dont need to pass temp list to the parse_events_parse
which makes the interface more clear.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337584373-2741-4-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y