From 39dd28041c4a4473a320ac929c77e01c1bb0569d Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Fri, 16 Mar 2012 17:42:19 +0900 Subject: [PATCH] --- yaml --- r: 298318 b: refs/heads/master c: 4c19ea453d81cf8bd9bd446e6b129998f79997e7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-stat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index eccb857bcba7..813104ffe930 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5f537a26590e696466aae7f41e6b77e92c8486d1 +refs/heads/master: 4c19ea453d81cf8bd9bd446e6b129998f79997e7 diff --git a/trunk/tools/perf/builtin-stat.c b/trunk/tools/perf/builtin-stat.c index ea40e4e8b227..c941bb640f49 100644 --- a/trunk/tools/perf/builtin-stat.c +++ b/trunk/tools/perf/builtin-stat.c @@ -296,7 +296,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel, if (system_wide) return perf_evsel__open_per_cpu(evsel, evsel_list->cpus, group, group_fd); - if (!target_pid && !target_tid) { + if (!target_pid && !target_tid && (!group || evsel == first)) { attr->disabled = 1; attr->enable_on_exec = 1; }