From dcd68111de1734c77684e734f061845378d5ce38 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Mon, 12 Nov 2012 18:34:03 +0100 Subject: [PATCH] --- yaml --- r: 339029 b: refs/heads/master c: 3fe4430dd66837d8fcdb63c167e908655fc842e3 h: refs/heads/master i: 339027: 48640aa8be90c9ecc2ef02739445bcffef2d3439 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/evlist.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 11b248937c78..3f8454a31407 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2711926a416733b853977a0e014c713955ad0d8a +refs/heads/master: 3fe4430dd66837d8fcdb63c167e908655fc842e3 diff --git a/trunk/tools/perf/util/evlist.c b/trunk/tools/perf/util/evlist.c index 04acae0ce697..e9d2d5da2fb8 100644 --- a/trunk/tools/perf/util/evlist.c +++ b/trunk/tools/perf/util/evlist.c @@ -222,6 +222,8 @@ void perf_evlist__disable(struct perf_evlist *evlist) for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { list_for_each_entry(pos, &evlist->entries, node) { + if (pos->leader) + continue; for (thread = 0; thread < evlist->threads->nr; thread++) ioctl(FD(pos, cpu, thread), PERF_EVENT_IOC_DISABLE, 0); @@ -236,6 +238,8 @@ void perf_evlist__enable(struct perf_evlist *evlist) for (cpu = 0; cpu < cpu_map__nr(evlist->cpus); cpu++) { list_for_each_entry(pos, &evlist->entries, node) { + if (pos->leader) + continue; for (thread = 0; thread < evlist->threads->nr; thread++) ioctl(FD(pos, cpu, thread), PERF_EVENT_IOC_ENABLE, 0);