Commit d3da1f09 authored by Alexey Budankov's avatar Alexey Budankov Committed by Arnaldo Carvalho de Melo

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: default avatarAlexey Budankov <alexey.budankov@linux.intel.com>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Acked-by: default avatarNamhyung 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.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent ab4c1f9f
...@@ -109,6 +109,7 @@ int fdarray__filter(struct fdarray *fda, short revents, ...@@ -109,6 +109,7 @@ int fdarray__filter(struct fdarray *fda, short revents,
continue; continue;
} }
if (!(fda->priv[fd].flags & fdarray_flag__nonfilterable))
++nr; ++nr;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment