提交 5fc472a6 编写于 作者: J Jiri Olsa 提交者: Arnaldo Carvalho de Melo

perf stat: Fix shadow declaration of close

Vinson reported shadow declaration of close introduced
by the following commit:

  106a94a0 perf stat: Introduce read_counters function

Using close_counters name instead.
Reported-by: NVinson Lee <vlee@twopensource.com>
Signed-off-by: NJiri Olsa <jolsa@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Fixes: 106a94a0 ("perf stat: Introduce read_counters function")
Link: http://lkml.kernel.org/r/20150708111731.GA3512@krava.redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 6d545a63
......@@ -343,7 +343,7 @@ static int read_counter(struct perf_evsel *counter)
return 0;
}
static void read_counters(bool close)
static void read_counters(bool close_counters)
{
struct perf_evsel *counter;
......@@ -354,7 +354,7 @@ static void read_counters(bool close)
if (process_counter(counter))
pr_warning("failed to process counter %s\n", counter->name);
if (close) {
if (close_counters) {
perf_evsel__close_fd(counter, perf_evsel__nr_cpus(counter),
thread_map__nr(evsel_list->threads));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册