summaryrefslogtreecommitdiff
path: root/tools/perf/util
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2017-11-09 04:02:01 (GMT)
committerAlex Shi <alex.shi@linaro.org>2017-11-09 04:02:01 (GMT)
commit3871608e4cb995b0fb9c630da9ac45b246151fef (patch)
tree1a7d65ae9b815e73ec9ffe00d6a3778ab66d5dc8 /tools/perf/util
parentd177d7df2673ea81e8ee1e3d468398eeb7e580f5 (diff)
parent5caae9d1419914177994363218616b869659e871 (diff)
downloadlinux-3871608e4cb995b0fb9c630da9ac45b246151fef.tar.xz
Merge tag 'v4.9.61' into linux-linaro-lsk-v4.9
This is the 4.9.61 stable release
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/parse-events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index 4e778ea..415a9c3 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -309,10 +309,11 @@ __add_event(struct list_head *list, int *idx,
event_attr_init(attr);
- evsel = perf_evsel__new_idx(attr, (*idx)++);
+ evsel = perf_evsel__new_idx(attr, *idx);
if (!evsel)
return NULL;
+ (*idx)++;
evsel->cpus = cpu_map__get(cpus);
evsel->own_cpus = cpu_map__get(cpus);