diff options
| author | Alexander Shishkin <[email protected]> | 2017-01-26 09:40:56 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-02-10 08:08:09 +0000 |
| commit | 9ccbfbb157a38921702402281ca7be530b4c3669 (patch) | |
| tree | 77bdc61d28251d3a8c9ffa265407a63e25de7127 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | Merge tag 'perf-core-for-mingo-4.11-20170209' of git://git.kernel.org/pub/scm... (diff) | |
| download | kernel-9ccbfbb157a38921702402281ca7be530b4c3669.tar.gz kernel-9ccbfbb157a38921702402281ca7be530b4c3669.zip | |
perf/core: Do error out on a kernel filter on an exclude_filter event
It is currently possible to configure a kernel address filter for a
event that excludes kernel from its traces (attr.exclude_kernel==1).
While in reality this doesn't make sense, the SET_FILTER ioctl() should
return a error in such case, currently it does not. Furthermore, it
will still silently discard the filter and any potentially valid filters
that came with it.
This patch makes the SET_FILTER ioctl() error out in such cases.
Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Mathieu Poirier <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
