]> git.baikalelectronics.ru Git - kernel.git/commit
perf/core: Fix the address filtering fix
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 29 Mar 2019 09:12:12 +0000 (11:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Apr 2019 10:13:57 +0000 (12:13 +0200)
commit44333d9ee3e14766279e1eff1c107e41ae549f12
treebe73eab6eb5ffd1a8f9d08a884efbf434e6a26c6
parent23047014d83643f238efa3db49ac07cf94a137d4
perf/core: Fix the address filtering fix

The following recent commit:

  42de13f0d0cd ("perf, pt, coresight: Fix address filters for vmas with non-zero offset")

changes the address filtering logic to communicate filter ranges to the PMU driver
via a single address range object, instead of having the driver do the final bit of
math.

That change forgets to take into account kernel filters, which are not calculated
the same way as DSO based filters.

Fix that by passing the kernel filters the same way as file-based filters.
This doesn't require any additional changes in the drivers.

Reported-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Fixes: 42de13f0d0cd ("perf, pt, coresight: Fix address filters for vmas with non-zero offset")
Link: https://lkml.kernel.org/r/20190329091212.29870-1-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c