]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
perf evlist: Add perf_evlist__id2evsel_strict()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:52 +0000 (16:15 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Sep 2015 20:11:00 +0000 (17:11 -0300)
commitdddcf6abbf5946f9ec1183dd2099cede6dbe12fc
treeeee8ae60104dbfcbda2b3eaaaa65b5108884a034
parent3c5b645faee7afbd417f6127694adbd26778a9eb
perf evlist: Add perf_evlist__id2evsel_strict()

perf_evlist__id2evsel_strict() is the same as perf_evlist__id2evsel()
except that it ensures that the id must match.

This will be used by perf inject to find a specific evsel that is to be
deleted, hence the need to match exactly.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-22-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h