summaryrefslogtreecommitdiffstats
path: root/tools/lib/api/fd/array.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2016-05-24 02:28:59 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-05-30 12:41:45 -0300
commitf3058a1c1932aa1b027856945163144bda6366df (patch)
treeb03ada4b95c89a6fa12f8a1190f5ed83e667c96f /tools/lib/api/fd/array.c
parentc45628b0a3f90c4ffeca5f72f227008ceedc21c5 (diff)
downloadop-kernel-dev-f3058a1c1932aa1b027856945163144bda6366df.zip
op-kernel-dev-f3058a1c1932aa1b027856945163144bda6366df.tar.gz
perf evlist: Don't poll and mmap overwritable events
There's no need to receive events from overwritable ring buffer. Instead, perf should make them run in background until some external event of interest takes place. This patch makes ignores normal events from overwrite evlists. Overwritable events must be mapped readonly and backward, so if evlist and evsel doesn't match (evsel->overwrite is true but either evlist is read/write or evlist is not backward, and vice versa), skip mapping it. Signed-off-by: Wang Nan <wangnan0@huawei.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1464056944-166978-3-git-send-email-wangnan0@huawei.com Signed-off-by: He Kuang <hekuang@huawei.com> [ Split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/fd/array.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud