perf evsel: Mark a evsel as disabled when asking the kernel do disable it
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 20 Oct 2018 12:04:41 +0000 (09:04 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Oct 2018 15:37:45 +0000 (12:37 -0300)
commitb7e8452b860c299f342a012922bdd9ab8f2bb722
treebc5d86371df6c86237836ec0b62294bca7f86bb9
parent2fda5ada07f36f6cde39a52e7f05d86ea8ffdc33
perf evsel: Mark a evsel as disabled when asking the kernel do disable it

Because there may be more such events in the ring buffer that should be
discarded when an app decides to stop considering them.

At some point we'll do this with eBPF, this way we stop them at origin,
before they are placed in the ring buffer.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-uzufuxws4hufigx07ue1dpv6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h