diff options
author | Alexander Shishkin <[email protected]> | 2019-02-15 13:56:55 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-02-22 16:52:07 -0300 |
commit | c60f83b813e5b25ccd5de7e8c8925c31b3aebcc1 (patch) | |
tree | b17b0a30fab156a840ab55518337db38f6e9fac7 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 18736eef12137c59f60cc9f56dc5bea05c92e0eb (diff) |
perf, pt, coresight: Fix address filters for vmas with non-zero offset
Currently, the address range calculation for file-based filters works as
long as the vma that maps the matching part of the object file starts
from offset zero into the file (vm_pgoff==0). Otherwise, the resulting
filter range would be off by vm_pgoff pages. Another related problem is
that in case of a partially matching vma, that is, a vma that matches
part of a filter region, the filter range size wouldn't be adjusted.
Fix the arithmetics around address filter range calculations, taking
into account vma offset, so that the entire calculation is done before
the filter configuration is passed to the PMU drivers instead of having
those drivers do the final bit of arithmetics.
Based on the patch by Adrian Hunter <adrian.hunter.intel.com>.
Reported-by: Adrian Hunter <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Tested-by: Mathieu Poirier <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Jiri Olsa <[email protected]>
Fixes: 375637bc5249 ("perf/core: Introduce address range filtering")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions