Skip to content

Commit 993e5ee

Browse files
author
Ingo Molnar
committed
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fixes from Arnaldo Carvalho de Melo: * Fix traceevent plugin path definitions (Josh Boyer) * Load map before using map->map_ip() (Masami Hiramatsu) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents bb236de + 4afc81c commit 993e5ee

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

tools/lib/traceevent/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ endif
6363
endif
6464

6565
ifeq ($(set_plugin_dir),1)
66-
PLUGIN_DIR = -DPLUGIN_DIR="$(DESTDIR)/$(plugin_dir)"
66+
PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
6767
PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
6868
endif
6969

tools/perf/config/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,5 +600,5 @@ perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
600600
# Otherwise we install plugins into the global $(libdir).
601601
ifdef DESTDIR
602602
plugindir=$(libdir)/traceevent/plugins
603-
plugindir_SQ= $(subst ','\'',$(prefix)/$(plugindir))
603+
plugindir_SQ= $(subst ','\'',$(plugindir))
604604
endif

tools/perf/util/map.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ struct symbol *map_groups__find_symbol(struct map_groups *mg,
386386
{
387387
struct map *map = map_groups__find(mg, type, addr);
388388

389-
if (map != NULL) {
389+
/* Ensure map is loaded before using map->map_ip */
390+
if (map != NULL && map__load(map, filter) >= 0) {
390391
if (mapp != NULL)
391392
*mapp = map;
392393
return map__find_symbol(map, map->map_ip(map, addr), filter);

0 commit comments

Comments
 (0)