Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5357413f authored by Thomas Richter's avatar Thomas Richter Committed by Arnaldo Carvalho de Melo
Browse files

perf test: Fix vmlinux failure on s390x part 2



On s390x perf test 1 failed. It turned out that commit cf6383f7
("perf report: Fix kernel symbol adjustment for s390x") was incorrect.

The previous implementation in dso__load_sym() is also suitable for
s390x.

Therefore this patch undoes commit cf6383f7

Signed-off-by: default avatarThomas-Mich Richter <tmricht@linux.vnet.ibm.com>
Cc: Zvonko Kosic <zvonko.kosic@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Fixes: cf6383f7 ("perf report: Fix kernel symbol adjustment for s390x")
LPU-Reference: 20170915071404.58398-2-tmricht@linux.vnet.ibm.com
Link: http://lkml.kernel.org/n/tip-v101o8k25vuja2ogosgf15yy@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b28503a3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
libperf-y += header.o
libperf-y += sym-handling.o
libperf-y += kvm-stat.o

libperf-$(CONFIG_DWARF) += dwarf-regs.o
+0 −21
Original line number Diff line number Diff line
/*
 * Architecture specific ELF symbol handling and relocation mapping.
 *
 * Copyright 2017 IBM Corp.
 * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License (version 2 only)
 * as published by the Free Software Foundation.
 */

#include "symbol.h"

#ifdef HAVE_LIBELF_SUPPORT
bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
{
	if (ehdr.e_type == ET_EXEC)
		return false;
	return ehdr.e_type == ET_REL || ehdr.e_type == ET_DYN;
}
#endif