mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
perf evlist: Rename perf_evlist__close() to evlist__close()
Rename perf_evlist__close() to evlist__close(), so we don't have a name clash when we add perf_evlist__close() in libperf. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190721112506.12306-21-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
474ddc4c46
commit
750b4edeb0
4 changed files with 7 additions and 7 deletions
|
@ -1058,7 +1058,7 @@ static int kvm_live_open_events(struct perf_kvm_stat *kvm)
|
||||||
if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages) < 0) {
|
if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages) < 0) {
|
||||||
ui__error("Failed to mmap the events: %s\n",
|
ui__error("Failed to mmap the events: %s\n",
|
||||||
str_error_r(errno, sbuf, sizeof(sbuf)));
|
str_error_r(errno, sbuf, sizeof(sbuf)));
|
||||||
perf_evlist__close(evlist);
|
evlist__close(evlist);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -613,7 +613,7 @@ try_again:
|
||||||
* later the evsel_list will be closed after.
|
* later the evsel_list will be closed after.
|
||||||
*/
|
*/
|
||||||
if (!STAT_RECORD)
|
if (!STAT_RECORD)
|
||||||
perf_evlist__close(evsel_list);
|
evlist__close(evsel_list);
|
||||||
|
|
||||||
return WEXITSTATUS(status);
|
return WEXITSTATUS(status);
|
||||||
}
|
}
|
||||||
|
@ -2003,7 +2003,7 @@ int cmd_stat(int argc, const char **argv)
|
||||||
perf_session__write_header(perf_stat.session, evsel_list, fd, true);
|
perf_session__write_header(perf_stat.session, evsel_list, fd, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
perf_evlist__close(evsel_list);
|
evlist__close(evsel_list);
|
||||||
perf_session__delete(perf_stat.session);
|
perf_session__delete(perf_stat.session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ void evlist__delete(struct evlist *evlist)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
perf_evlist__munmap(evlist);
|
perf_evlist__munmap(evlist);
|
||||||
perf_evlist__close(evlist);
|
evlist__close(evlist);
|
||||||
cpu_map__put(evlist->cpus);
|
cpu_map__put(evlist->cpus);
|
||||||
thread_map__put(evlist->threads);
|
thread_map__put(evlist->threads);
|
||||||
evlist->cpus = NULL;
|
evlist->cpus = NULL;
|
||||||
|
@ -1348,7 +1348,7 @@ void perf_evlist__set_selected(struct evlist *evlist,
|
||||||
evlist->selected = evsel;
|
evlist->selected = evsel;
|
||||||
}
|
}
|
||||||
|
|
||||||
void perf_evlist__close(struct evlist *evlist)
|
void evlist__close(struct evlist *evlist)
|
||||||
{
|
{
|
||||||
struct evsel *evsel;
|
struct evsel *evsel;
|
||||||
|
|
||||||
|
@ -1412,7 +1412,7 @@ int evlist__open(struct evlist *evlist)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
out_err:
|
out_err:
|
||||||
perf_evlist__close(evlist);
|
evlist__close(evlist);
|
||||||
errno = -err;
|
errno = -err;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ void perf_evlist__toggle_bkw_mmap(struct evlist *evlist, enum bkw_mmap_state sta
|
||||||
void perf_evlist__mmap_consume(struct evlist *evlist, int idx);
|
void perf_evlist__mmap_consume(struct evlist *evlist, int idx);
|
||||||
|
|
||||||
int evlist__open(struct evlist *evlist);
|
int evlist__open(struct evlist *evlist);
|
||||||
void perf_evlist__close(struct evlist *evlist);
|
void evlist__close(struct evlist *evlist);
|
||||||
|
|
||||||
struct callchain_param;
|
struct callchain_param;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue