Skip to content

Commit d3da1f0

Browse files
Alexey Budankovacmel
authored andcommitted
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>
1 parent ab4c1f9 commit d3da1f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tools/lib/api/fd/array.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ int fdarray__filter(struct fdarray *fda, short revents,
109109
continue;
110110
}
111111

112-
++nr;
112+
if (!(fda->priv[fd].flags & fdarray_flag__nonfilterable))
113+
++nr;
113114
}
114115

115116
return nr;

0 commit comments

Comments
 (0)