perf/tool: Make the event parser re-entrant
authorZheng Yan <zheng.z.yan@intel.com>
Fri, 15 Jun 2012 06:31:39 +0000 (14:31 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 18 Jun 2012 10:13:24 +0000 (12:13 +0200)
commitac20de6fff445d6deb0c44c25946d198f79f2f00
tree8d0ec729ea5b5aa8965e46370df50167506b1e61
parent46010ab2607aed9484816a8f1679c2ec3c8e7dcf
perf/tool: Make the event parser re-entrant

Make the event parser reentrant by creating separate
scanner for each parsing. The scanner is passed to the bison
as and argument to the lexer.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
[ Cleaned up the patch. ]
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-11-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.l
tools/perf/util/parse-events.y