diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2014-08-13 02:04:11 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-09-25 19:46:53 +0000 |
| commit | 1ddec7f0d0ab5b71cf2cc5a782441c20e7afbcfb (patch) | |
| tree | baae592cdbb5f1d443136fda8757a9fcd06412e0 /tools/lib/api/fd/array.c | |
| parent | perf/x86/intel/uncore: Update support for client uncore IMC PMU (diff) | |
| download | kernel-1ddec7f0d0ab5b71cf2cc5a782441c20e7afbcfb.tar.gz kernel-1ddec7f0d0ab5b71cf2cc5a782441c20e7afbcfb.zip | |
perf evlist: Introduce perf_evlist__filter_pollfd method
To remove all entries in evlist->pollfd[] that have revents matching at
least one of the bits in the specified mask.
It'll adjust evlist->nr_fds to the number of unfiltered fds and will
return this value, as a convenience and to avoid requiring direct access
to internal state of perf_evlist objects.
This will be used after polling the evlist fds so that we remove fds
that were closed by the kernel.
Acked-by: Jiri Olsa <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/fd/array.c')
0 files changed, 0 insertions, 0 deletions
