perf evsel: Rename perf_evsel__new*() to evsel__new*()

As these are 'struct evsel' methods, 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:
Arnaldo Carvalho de Melo
2020-05-06 13:27:04 -03:00
parent 35ac0cad7d
commit 8f6725a2c9
12 changed files with 32 additions and 33 deletions

View File

@@ -258,7 +258,7 @@ void evsel__init(struct evsel *evsel,
evsel->pmu_name = NULL;
}
struct evsel *perf_evsel__new_idx(struct perf_event_attr *attr, int idx)
struct evsel *evsel__new_idx(struct perf_event_attr *attr, int idx)
{
struct evsel *evsel = zalloc(perf_evsel__object.size);
@@ -291,7 +291,7 @@ static bool perf_event_can_profile_kernel(void)
return perf_event_paranoid_check(1);
}
struct evsel *perf_evsel__new_cycles(bool precise)
struct evsel *evsel__new_cycles(bool precise)
{
struct perf_event_attr attr = {
.type = PERF_TYPE_HARDWARE,
@@ -333,7 +333,7 @@ error_free:
/*
* Returns pointer with encoded error via <linux/err.h> interface.
*/
struct evsel *perf_evsel__newtp_idx(const char *sys, const char *name, int idx)
struct evsel *evsel__newtp_idx(const char *sys, const char *name, int idx)
{
struct evsel *evsel = zalloc(perf_evsel__object.size);
int err = -ENOMEM;