diff options
author | Jiri Olsa <jolsa@redhat.com> | 2015-07-08 07:17:31 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-07-08 09:04:58 -0400 |
commit | 5fc472a628edb8ad83016a063329e8b589a04060 (patch) | |
tree | 31123d431d3bdf912d4b717db2ec8e546d53fdd9 /tools | |
parent | 6d545a632fbbce79492ba535b15ea0142aa3e80d (diff) |
perf stat: Fix shadow declaration of close
Vinson reported shadow declaration of close introduced
by the following commit:
106a94a0f8c2 perf stat: Introduce read_counters function
Using close_counters name instead.
Reported-by: Vinson Lee <vlee@twopensource.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Fixes: 106a94a0f8c2 ("perf stat: Introduce read_counters function")
Link: http://lkml.kernel.org/r/20150708111731.GA3512@krava.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 37e301a32f43..d99d850e1444 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -343,7 +343,7 @@ static int read_counter(struct perf_evsel *counter) | |||
343 | return 0; | 343 | return 0; |
344 | } | 344 | } |
345 | 345 | ||
346 | static void read_counters(bool close) | 346 | static void read_counters(bool close_counters) |
347 | { | 347 | { |
348 | struct perf_evsel *counter; | 348 | struct perf_evsel *counter; |
349 | 349 | ||
@@ -354,7 +354,7 @@ static void read_counters(bool close) | |||
354 | if (process_counter(counter)) | 354 | if (process_counter(counter)) |
355 | pr_warning("failed to process counter %s\n", counter->name); | 355 | pr_warning("failed to process counter %s\n", counter->name); |
356 | 356 | ||
357 | if (close) { | 357 | if (close_counters) { |
358 | perf_evsel__close_fd(counter, perf_evsel__nr_cpus(counter), | 358 | perf_evsel__close_fd(counter, perf_evsel__nr_cpus(counter), |
359 | thread_map__nr(evsel_list->threads)); | 359 | thread_map__nr(evsel_list->threads)); |
360 | } | 360 | } |