Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

perf tools: Rename perf_evlist__purge() to evlist__purge()



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

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lore.kernel.org/lkml/20190913132355.21634-9-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 470579b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ static void perf_evlist__update_id_pos(struct evlist *evlist)
	perf_evlist__set_id_pos(evlist);
}

static void perf_evlist__purge(struct evlist *evlist)
static void evlist__purge(struct evlist *evlist)
{
	struct evsel *pos, *n;

@@ -155,7 +155,7 @@ void evlist__delete(struct evlist *evlist)
	perf_thread_map__put(evlist->core.threads);
	evlist->core.cpus = NULL;
	evlist->core.threads = NULL;
	perf_evlist__purge(evlist);
	evlist__purge(evlist);
	evlist__exit(evlist);
	free(evlist);
}