Commit 606e2c29 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf evlist: Use the right prefix for alternative 'struct evlist' constructors



perf_evlist__ is for 'struct perf_evlist' methods, in tools/lib/perf/,
go on completing this split.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 900c8ead
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ int test__intel_cqm_count_nmi_context(struct test *test __maybe_unused, int subt

	evlist = evlist__new();
	if (!evlist) {
		pr_debug("perf_evlist__new failed\n");
		pr_debug("evlist__new failed\n");
		return TEST_FAIL;
	}

+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ static int do_test(struct bpf_object *obj, int (*func)(void),
	pid[sizeof(pid) - 1] = '\0';
	opts.target.tid = opts.target.pid = pid;

	/* Instead of perf_evlist__new_default, don't add default events */
	/* Instead of evlist__new_default, don't add default events */
	evlist = evlist__new();
	if (!evlist) {
		pr_debug("Not enough memory to create evlist\n");
+1 −1
Original line number Diff line number Diff line
@@ -637,7 +637,7 @@ static int do_test_code_reading(bool try_kcore)

		evlist = evlist__new();
		if (!evlist) {
			pr_debug("perf_evlist__new failed\n");
			pr_debug("evlist__new failed\n");
			goto out_put;
		}

+1 −2
Original line number Diff line number Diff line
@@ -85,11 +85,10 @@ static int process_event_cpus(struct perf_tool *tool __maybe_unused,

int test__event_update(struct test *test __maybe_unused, int subtest __maybe_unused)
{
	struct evlist *evlist;
	struct evsel *evsel;
	struct event_name tmp;
	struct evlist *evlist = evlist__new_default();

	evlist = perf_evlist__new_default();
	TEST_ASSERT_VAL("failed to get evlist", evlist);

	evsel = evlist__first(evlist);
+1 −2
Original line number Diff line number Diff line
@@ -100,10 +100,9 @@ out: for (i = 0; i < nr_events; i++)
static int expand_default_events(void)
{
	int ret;
	struct evlist *evlist;
	struct rblist metric_events;
	struct evlist *evlist = evlist__new_default();

	evlist = perf_evlist__new_default();
	TEST_ASSERT_VAL("failed to get evlist", evlist);

	rblist__init(&metric_events);
Loading