Adrian Hunter
8e38ea68da
perf symbols: Fix kernel maps for kcore and eBPF
...
commit 0affd0e5262b6d40f5f63466d88933e99698e240 upstream.
Adjust 'map->pgoff' also when moving a map's start address.
Example with v5.4.34 based kernel:
Before:
$ sudo tools/perf/perf record -a --kcore -e intel_pt//k sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 1.958 MB perf.data ]
$ sudo tools/perf/perf script --itrace=e >/dev/null
Warning:
961 instruction trace errors
After:
$ sudo tools/perf/perf script --itrace=e >/dev/null
$
Committer testing:
# uname -a
Linux seventh 5.6.10-100.fc30.x86_64 #1 SMP Mon May 4 15:36:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
#
Before:
# perf record -a --kcore -e intel_pt//k sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.923 MB perf.data ]
# perf script --itrace=e >/dev/null
Warning:
295 instruction trace errors
#
After:
# perf record -a --kcore -e intel_pt//k sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.919 MB perf.data ]
# perf script --itrace=e >/dev/null
#
Fixes: fb5a88d4131a ("perf tools: Preserve eBPF maps when loading kcore")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org
Link: http://lore.kernel.org/lkml/20200602112505.1406-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-22 09:31:27 +02:00
..
2020-04-13 10:48:08 +02:00
2020-06-03 08:21:29 +02:00
2020-02-24 08:36:40 +01:00
2019-08-12 17:14:14 -03:00
2020-06-22 09:31:01 +02:00
2019-05-30 11:26:35 -07:00
2019-07-12 12:24:03 -07:00
2020-04-17 10:50:17 +02:00
2019-09-24 12:36:31 -07:00
2019-08-18 20:45:57 +01:00
2020-02-05 21:22:40 +00:00
2019-05-23 10:25:26 -06:00
2020-02-11 04:35:36 -08:00
2019-06-19 17:11:22 +02:00
2019-07-25 20:07:52 +02:00
2020-06-22 09:31:11 +02:00
2019-12-31 16:43:40 +01:00
2020-06-22 09:30:50 +02:00
2020-01-17 19:48:54 +01:00
2019-06-19 17:09:08 +02:00
2020-06-22 09:31:27 +02:00
2020-04-08 09:08:39 +02:00
2020-04-01 11:02:00 +02:00
2019-05-30 11:29:19 -07:00
2020-06-22 09:31:12 +02:00
2019-05-24 17:37:52 +02:00
2019-06-05 17:36:37 +02:00
2020-02-24 08:36:44 +01:00
2019-10-13 09:38:27 -04:00
2020-04-29 16:33:15 +02:00
2019-06-19 17:09:55 +02:00
2019-08-14 10:59:59 -03:00