Adrian Hunter
03db8b583d
perf tools: Fix maps__find_symbol_by_name()
...
Commit 1c5aae7710 ("perf machine: Create maps for x86 PTI entry
trampolines") revealed a problem with maps__find_symbol_by_name() that
resulted in probes not being found e.g.
$ sudo perf probe xsk_mmap
xsk_mmap is out of .text, skip it.
Probe point 'xsk_mmap' not found.
Error: Failed to add events.
maps__find_symbol_by_name() can optionally return the map of the found
symbol. It can get the map wrong because, in fact, the symbol is found
on the map's dso, not allowing for the possibility that the dso has more
than one map. Fix by always checking the map contains the symbol.
Reported-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Björn Töpel <bjorn.topel@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 1c5aae7710 ("perf machine: Create maps for x86 PTI entry trampolines")
Link: http://lkml.kernel.org/r/20180907085116.25782-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-09-11 14:12:51 -03:00
..
arch
perf probe powerpc: Ignore SyS symbols irrespective of endianness
2018-08-30 15:15:11 -03:00
bench
tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'
2018-07-30 12:36:51 -03:00
Documentation
perf report: Add --percent-type option
2018-08-08 15:55:54 -03:00
examples /bpf
perf trace: Handle "bpf-output" events associated with "__augmented_syscalls__" BPF map
2018-08-08 15:55:57 -03:00
include /bpf
perf bpf: Add wrappers to BPF_FUNC_probe_read(_str) functions
2018-08-08 15:55:57 -03:00
jvmti
perf tools: Fix compilation errors on gcc8
2018-07-11 09:39:57 -04:00
pmu-events
perf vendor events arm64: Enable JSON events for eMAG
2018-08-08 15:55:43 -03:00
python
perf python: Make twatch.py work with both python2 and python3
2018-02-19 12:28:08 -03:00
scripts
perf scripts python: Add Python 3 support to EventClass.py
2018-07-11 10:01:50 -03:00
tests
perf tools: Remove ext from struct kmod_path
2018-08-20 08:54:59 -03:00
trace
perf trace beauty: Add beautifiers for 'socket''s 'protocol' arg
2018-07-31 10:52:47 -03:00
ui
perf annotate: Add support to toggle percent type
2018-08-08 15:55:52 -03:00
util
perf tools: Fix maps__find_symbol_by_name()
2018-09-11 14:12:51 -03:00
.gitignore
Build
builtin-annotate.c
perf annotate: Add --percent-type option
2018-08-08 15:55:53 -03:00
builtin-bench.c
builtin-buildid-cache.c
perf buildid-cache: Warn --purge-all failures
2018-05-15 10:32:16 -03:00
builtin-buildid-list.c
builtin-c2c.c
perf c2c report: Fix crash for empty browser
2018-07-31 10:53:20 -03:00
builtin-config.c
builtin-data.c
builtin-diff.c
perf hists: Clarify callchain disabling when available
2018-07-24 14:37:33 -03:00
builtin-evlist.c
builtin-ftrace.c
perf ftrace: Append an EOL when write tracing files
2018-02-19 09:49:12 -03:00
builtin-help.c
perf tools: Rename HAVE_SYSCALL_TABLE to HAVE_SYSCALL_TABLE_SUPPORT
2018-04-12 10:33:31 -03:00
builtin-inject.c
perf thread: Make thread__find_map() return the map
2018-04-26 13:47:08 -03:00
builtin-kallsyms.c
perf machine: Ditch find_kernel_function variants
2018-04-30 12:20:54 -03:00
builtin-kmem.c
tools lib traceevent, perf tools: Rename 'enum pevent_flag' to 'enum tep_flag'
2018-08-13 15:22:18 -03:00
builtin-kvm.c
perf tools: Ditch the symbol_conf.nr_events global
2018-06-04 10:28:52 -03:00
builtin-list.c
builtin-lock.c
builtin-mem.c
perf mem: Allow all record/report options
2018-04-18 15:35:48 -03:00
builtin-probe.c
perf tools: No need to check if the argument to __get() function is NULL
2018-06-04 10:28:50 -03:00
builtin-record.c
perf record: Synthesize features before events in pipe mode
2018-03-16 13:56:50 -03:00
builtin-report.c
tools lib traceevent, perf tools: Rename pevent_set_* APIs
2018-08-13 15:22:10 -03:00
builtin-sched.c
perf sched: Use sched->show_callchain where appropriate
2018-06-05 10:09:54 -03:00
builtin-script.c
tools lib traceevent, perf tools: Rename pevent_set_* APIs
2018-08-13 15:22:10 -03:00
builtin-stat.c
perf stat: Get rid of extra clock display function
2018-07-24 14:54:58 -03:00
builtin-timechart.c
perf thread: Make thread__find_symbol() return the symbol searched
2018-04-26 13:47:09 -03:00
builtin-top.c
perf hists: Clarify callchain disabling when available
2018-07-24 14:37:33 -03:00
builtin-trace.c
perf trace: Wire up the augmented syscalls with the syscalls:sys_enter_FOO beautifier
2018-08-08 15:55:59 -03:00
builtin-version.c
perf version: Print status for syscall_table
2018-04-12 10:33:34 -03:00
builtin.h
check-headers.sh
perf tools: Move syscall_64.tbl check into check-headers.sh
2018-08-14 15:10:40 -03:00
command-list.txt
CREDITS
design.txt
Makefile
perf tools: Disable parallelism for 'make clean'
2018-08-20 08:54:58 -03:00
Makefile.config
perf build: Fix installation directory for eBPF
2018-07-31 10:54:50 -03:00
Makefile.perf
perf tools: Streamline bpf examples and headers installation
2018-08-30 14:49:25 -03:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
Drop a bunch of metag references
2018-02-23 14:29:59 +00:00
perf-with-kcore.sh
perf.c
perf tools: Remove dead quote.[ch] code
2018-06-04 10:28:50 -03:00
perf.h
perf tools: Allow overriding MAX_NR_CPUS at compile time
2018-08-01 12:33:24 -03:00