Commit 0f98b11c authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

perf evlist: Rename perf_evlist__new() to evlist__new()



Rename perf_evlist__new() to evlist__new(), so we don't have a name
clash when we add perf_evlist__new() in libperf.

Signed-off-by: default avatarJiri 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-9-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 52c86bca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ static int ppc__setup_book3s_hv(struct perf_kvm_stat *kvm,
/* Wrapper to setup kvm tracepoints */
static int ppc__setup_kvm_tp(struct perf_kvm_stat *kvm)
{
	struct evlist *evlist = perf_evlist__new();
	struct evlist *evlist = evlist__new();

	if (evlist == NULL)
		return -ENOMEM;
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ int test__intel_cqm_count_nmi_context(struct test *test __maybe_unused, int subt

	flag = perf_event_open_cloexec_flag();

	evlist = perf_evlist__new();
	evlist = evlist__new();
	if (!evlist) {
		pr_debug("perf_evlist__new failed\n");
		return TEST_FAIL;
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest __maybe
	cpus = cpu_map__new(NULL);
	CHECK_NOT_NULL__(cpus);

	evlist = perf_evlist__new();
	evlist = evlist__new();
	CHECK_NOT_NULL__(evlist);

	perf_evlist__set_maps(evlist, cpus, threads);
+1 −1
Original line number Diff line number Diff line
@@ -495,7 +495,7 @@ int cmd_ftrace(int argc, const char **argv)
		goto out_delete_filters;
	}

	ftrace.evlist = perf_evlist__new();
	ftrace.evlist = evlist__new();
	if (ftrace.evlist == NULL) {
		ret = -ENOMEM;
		goto out_delete_filters;
+1 −1
Original line number Diff line number Diff line
@@ -1290,7 +1290,7 @@ static struct evlist *kvm_live_event_list(void)
	int err = -1;
	const char * const *events_tp;

	evlist = perf_evlist__new();
	evlist = evlist__new();
	if (evlist == NULL)
		return NULL;

Loading