aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events-bison.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2012-03-20 14:15:40 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-03-22 14:11:38 -0400
commit5d7be90ed5cfb5dd3c9ab726d7daa91b86b81747 (patch)
tree9b40166a00566af8bef1c388d51b8863a92cc6fe /tools/perf/util/parse-events-bison.h
parent9fafd98f1bf14276f95b69f0186ad5675f1e1a18 (diff)
perf tools: Fix modifier to be applied on correct events
The event modifier needs to be applied only on the event definition it is attached to. The current state is that in case of multiple events definition (in single '-e' option, separated by ',') all will get modifier of the last one. Fixing this by adding separated list for each event definition, so the modifier is applied only to proper event(s). Added automated test to catch this, plus some other modifier tests. 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/1332267341-26338-3-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events-bison.h')
-rw-r--r--tools/perf/util/parse-events-bison.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/perf/util/parse-events-bison.h b/tools/perf/util/parse-events-bison.h
index c58b76584f92..0be3e5ae2fed 100644
--- a/tools/perf/util/parse-events-bison.h
+++ b/tools/perf/util/parse-events-bison.h
@@ -1,9 +1,8 @@
1/* A Bison parser, made by GNU Bison 2.4.3. */ 1/* A Bison parser, made by GNU Bison 2.5. */
2 2
3/* Skeleton interface for Bison's Yacc-like parsers in C 3/* Bison interface for Yacc-like parsers in C
4 4
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 5 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
6 2009, 2010 Free Software Foundation, Inc.
7 6
8 This program is free software: you can redistribute it and/or modify 7 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
@@ -59,8 +58,8 @@
59typedef union YYSTYPE 58typedef union YYSTYPE
60{ 59{
61 60
62/* Line 1685 of yacc.c */ 61/* Line 2068 of yacc.c */
63#line 45 "util/parse-events.y" 62#line 46 "util/parse-events.y"
64 63
65 char *str; 64 char *str;
66 unsigned long num; 65 unsigned long num;
@@ -69,8 +68,8 @@ typedef union YYSTYPE
69 68
70 69
71 70
72/* Line 1685 of yacc.c */ 71/* Line 2068 of yacc.c */
73#line 74 "util/parse-events-bison.h" 72#line 73 "util/parse-events-bison.h"
74} YYSTYPE; 73} YYSTYPE;
75# define YYSTYPE_IS_TRIVIAL 1 74# define YYSTYPE_IS_TRIVIAL 1
76# define yystype YYSTYPE /* obsolescent; will be withdrawn */ 75# define yystype YYSTYPE /* obsolescent; will be withdrawn */