libperf: Avoid counting of nonfilterable fdarray fds
authorAlexey Budankov <alexey.budankov@linux.intel.com>
Fri, 17 Jul 2020 07:00:15 +0000 (10:00 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Jul 2020 12:53:22 +0000 (09:53 -0300)
commitd3da1f0900891eec10c2a83422ba53c19a7b6380
tree56b55d234cc1d78a36d60619d5dc39fb831fc07b
parentab4c1f9f686836e7a772af0c6dd71fe9efa2609c
libperf: Avoid counting of nonfilterable fdarray fds

Avoid counting of struct pollfd *entries objects with
fdarray_flag__nonfilterable flag by fdarray__filter().

Nonfilterable objects are still processed if requested revents have been
signaled for them.

Signed-off-by: Alexey Budankov <alexey.budankov@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/b5ab0d2c-b742-0032-e8d3-c8e2eb423c42@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fd/array.c