aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-02-04 04:56:42 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-02-06 16:09:27 -0500
commit89bb67ff935d461544fed87174bb13dcc4bac673 (patch)
tree6009163772aa7c03734b1222f317c7803cb3a54c /tools
parentb22e79395c0fe4c86dd35745a929366034386ccc (diff)
perf tools: Fix perf_evsel::exclude_GH handling
Let the perf_evsel::exclude_GH only prevent the reset of exclude_host and exclude_guest attributes in case they were already set. We cannot reset their values to 0, because they might have other defaults set by event_attr_init. 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: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1359971803-2343-2-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/parse-events.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index 4e0f5c2a9fda..c84f48cf9678 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -699,14 +699,6 @@ static int get_event_modifier(struct event_modifier *mod, char *str,
699 int exclude = eu | ek | eh; 699 int exclude = eu | ek | eh;
700 int exclude_GH = evsel ? evsel->exclude_GH : 0; 700 int exclude_GH = evsel ? evsel->exclude_GH : 0;
701 701
702 /*
703 * We are here for group and 'GH' was not set as event
704 * modifier and whatever event/group modifier override
705 * default 'GH' setup.
706 */
707 if (evsel && !exclude_GH)
708 eH = eG = 0;
709
710 memset(mod, 0, sizeof(*mod)); 702 memset(mod, 0, sizeof(*mod));
711 703
712 while (*str) { 704 while (*str) {