diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-07-04 00:00:39 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-07-05 11:22:29 -0300 |
commit | 8c5f0a84c6b16e04195001bfd78281909519cf09 (patch) | |
tree | 901bbc2804d4f56fc60b38d442a130306ec334a4 /tools/perf | |
parent | ebf124ffab59e9e1c6179347fe95fe5baf32dcd7 (diff) | |
download | linux-3.10-8c5f0a84c6b16e04195001bfd78281909519cf09.tar.gz linux-3.10-8c5f0a84c6b16e04195001bfd78281909519cf09.tar.bz2 linux-3.10-8c5f0a84c6b16e04195001bfd78281909519cf09.zip |
perf tools: Add empty rule for new line in event syntax parsing
The flex generator prints out each input character that is ignored by
lex rules.
Since the alias processing, we can have '\n' characters on input. We
need to assign empty rule to it, so it's not printed out.
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>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1341352848-11833-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/parse-events.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l index a0668947421..6cbe092e6c3 100644 --- a/tools/perf/util/parse-events.l +++ b/tools/perf/util/parse-events.l @@ -152,6 +152,7 @@ r{num_raw_hex} { return raw(yyscanner); } , { return ','; } : { return ':'; } = { return '='; } +\n { } <mem>{ {modifier_bp} { return str(yyscanner, PE_MODIFIER_BP); } |