perf/tool: Use data struct for arg passing in event parse function
authorJiri Olsa <jolsa@redhat.com>
Fri, 15 Jun 2012 06:31:38 +0000 (14:31 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 18 Jun 2012 10:13:24 +0000 (12:13 +0200)
commit46010ab2607aed9484816a8f1679c2ec3c8e7dcf
tree1b54cb98c1744a5424a753123e05ac3b052dbb5b
parent7c94ee2e0917b2ea56498bff939c8aa55da27207
perf/tool: Use data struct for arg passing in event parse function

Moving all the bison arguments into the structure. In upcomming
patches we are going to:

  - add more arguments
  - reuse the grammer for term parsing

so it's more clear to pack/separate related arguments.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1339741902-8449-10-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h
tools/perf/util/parse-events.y