mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
perf evsel: Rename perf_evsel__exit() to evsel__exit()
As it is a 'struct evsel' method, not part of tools/lib/perf/, aka libperf, to whom the perf_ prefix belongs. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
39453ed559
commit
30f7c59124
@ -1259,7 +1259,7 @@ static void perf_evsel__free_config_terms(struct evsel *evsel)
|
||||
}
|
||||
}
|
||||
|
||||
void perf_evsel__exit(struct evsel *evsel)
|
||||
void evsel__exit(struct evsel *evsel)
|
||||
{
|
||||
assert(list_empty(&evsel->core.node));
|
||||
assert(evsel->evlist == NULL);
|
||||
@ -1279,7 +1279,7 @@ void perf_evsel__exit(struct evsel *evsel)
|
||||
|
||||
void evsel__delete(struct evsel *evsel)
|
||||
{
|
||||
perf_evsel__exit(evsel);
|
||||
evsel__exit(evsel);
|
||||
free(evsel);
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ struct evsel *perf_evsel__new_cycles(bool precise);
|
||||
struct tep_event *event_format__new(const char *sys, const char *name);
|
||||
|
||||
void evsel__init(struct evsel *evsel, struct perf_event_attr *attr, int idx);
|
||||
void perf_evsel__exit(struct evsel *evsel);
|
||||
void evsel__exit(struct evsel *evsel);
|
||||
void evsel__delete(struct evsel *evsel);
|
||||
|
||||
struct callchain_param;
|
||||
|
@ -801,7 +801,7 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel,
|
||||
|
||||
static void pyrf_evsel__delete(struct pyrf_evsel *pevsel)
|
||||
{
|
||||
perf_evsel__exit(&pevsel->evsel);
|
||||
evsel__exit(&pevsel->evsel);
|
||||
Py_TYPE(pevsel)->tp_free((PyObject*)pevsel);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user