summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-19 15:54:37 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-19 15:54:37 +0100
commitb80d6c781e7eb16e24c2a04a88ab6b230bcbbb35 (patch)
treeaeb0885a6a3499ef96b2472be323965db8e1295e /tools/perf/util
parent262ca2b08fbdb9346e66ef30424b2226a00e0ffc (diff)
parent0b99836f238f37a8632a3ab4f9a8cc2346a36d40 (diff)
downloadblackbird-op-linux-b80d6c781e7eb16e24c2a04a88ab6b230bcbbb35.tar.gz
blackbird-op-linux-b80d6c781e7eb16e24c2a04a88ab6b230bcbbb35.zip
Merge branch 'topic/dp-aux-rework' into drm-intel-next-queued
Conflicts: drivers/gpu/drm/i915/intel_dp.c A bit a mess with reverts which differe in details between -fixes and -next and some other unrelated shuffling. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/machine.c2
-rw-r--r--tools/perf/util/symbol-elf.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index c872991e0f65..620a1983b76b 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -1213,7 +1213,7 @@ static void ip__resolve_ams(struct machine *machine, struct thread *thread,
*/
thread__find_addr_location(thread, machine, m, MAP__FUNCTION,
ip, &al);
- if (al.sym)
+ if (al.map)
goto found;
}
found:
diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c
index 3e9f336740fa..516d19fb999b 100644
--- a/tools/perf/util/symbol-elf.c
+++ b/tools/perf/util/symbol-elf.c
@@ -151,15 +151,15 @@ Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep,
gelf_getshdr(sec, shp);
str = elf_strptr(elf, ep->e_shstrndx, shp->sh_name);
- if (!strcmp(name, str)) {
+ if (str && !strcmp(name, str)) {
if (idx)
*idx = cnt;
- break;
+ return sec;
}
++cnt;
}
- return sec;
+ return NULL;
}
#define elf_section__for_each_rel(reldata, pos, pos_mem, idx, nr_entries) \
OpenPOWER on IntegriCloud