]> git.baikalelectronics.ru Git - kernel.git/commit
perf evlist: Add perf_evlist__remove()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:53 +0000 (16:15 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Sep 2015 20:15:31 +0000 (17:15 -0300)
commitf03f09e8cda57fa51bb785163fd968b8615959f2
treeef9e1ab3339acb1a00ae0d20474adcc0892290e7
parentcf1dffe3e51ccf0ed4c3f804b76f9dc325731ff7
perf evlist: Add perf_evlist__remove()

Add a counterpart to perf_evlist__add() that does the opposite and
deletes the evsel.

This will be used by perf inject to remove unwanted evsels.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-23-git-send-email-adrian.hunter@intel.com
[ Renamed it from perf_evlist__del() to perf_evlist__remove() and removed the perf_evsel__delete() call ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h