Adrian Hunter
8e38ea68da
perf symbols: Fix kernel maps for kcore and eBPF
commit 0affd0e526 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: fb5a88d413 ("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-03-12 13:00:22 +01:00
2020-03-18 07:17:57 +01:00
2019-09-30 17:29:51 -03:00
2019-08-26 11:58:29 -03:00
2019-10-15 11:47:38 -03:00
2019-09-25 09:51:49 -03:00
2020-01-17 19:48:30 +01:00
2019-12-13 08:42:16 +01:00
2019-12-31 16:44:12 +01:00
2019-08-26 11:58:29 -03:00
2020-03-05 16:43:50 +01:00
2020-06-22 09:31:27 +02:00
2019-08-31 22:27:52 -03:00
2019-09-20 15:58:11 -03:00
2019-08-29 17:38:32 -03:00
2019-09-20 15:58:11 -03:00
2019-09-20 15:58:11 -03:00
2020-02-05 21:22:40 +00:00
2019-09-20 09:19:20 -03:00
2019-08-31 19:10:19 -03:00
2020-01-04 19:18:26 +01:00
2019-09-25 16:26:34 -03:00
2019-08-31 22:24:10 -03:00
2019-08-31 19:10:19 -03:00
2019-09-20 15:58:11 -03:00
2019-08-31 22:24:10 -03:00
2019-10-16 10:08:32 -03:00
2019-09-30 17:29:54 -03:00
2019-09-25 09:51:42 -03:00
2019-09-20 15:58:11 -03:00
2019-09-20 15:58:11 -03:00
2020-06-22 09:31:27 +02:00
2019-09-25 09:51:49 -03:00
2020-04-21 09:04:52 +02:00
2019-09-25 16:26:34 -03:00
2020-01-23 08:23:01 +01:00
2019-09-25 09:51:47 -03:00
2019-09-20 15:58:11 -03:00
2019-09-25 16:26:40 -03:00
2019-09-25 16:26:34 -03:00
2019-08-31 22:27:48 -03:00
2019-08-28 17:19:34 -03:00
2019-09-30 17:29:22 -03:00
2020-04-01 11:02:00 +02:00
2020-04-17 10:50:21 +02:00
2019-09-25 09:51:43 -03:00
2019-10-31 21:38:41 +01:00
2019-09-25 09:51:49 -03:00
2019-08-29 17:38:32 -03:00