kernel_samsung_a53x/tools/perf
Namhyung Kim e12a8374f2 perf genelf: Set ELF program header addresses properly
[ Upstream commit 1af478903fc48c1409a8dd6b698383b62387adf1 ]

The text section starts after the ELF headers so PHDR.p_vaddr and
others should have the correct addresses.

Fixes: babd04386b1df8c3 ("perf jit: Include program header in ELF files")
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Fangrui Song <maskray@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Lieven Hey <lieven.hey@kdab.com>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Pablo Galindo <pablogsal@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231212070547.612536-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:49 +01:00
..
arch Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bench Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Documentation Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
examples/bpf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
include/bpf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jvmti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu-events Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
python Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scripts Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tests Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ui Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util perf genelf: Set ELF program header addresses properly 2024-11-18 12:12:49 +01:00
Build Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-annotate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-bench.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-buildid-cache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-buildid-list.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-c2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-data.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-diff.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-evlist.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-ftrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-help.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-kallsyms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-kmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-kvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-list.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-lock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-probe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-record.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-report.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-sched.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-script.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-stat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-timechart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-top.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin-version.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
builtin.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
check-headers.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
command-list.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
CREDITS Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
design.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.config Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.perf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
MANIFEST Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-archive.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-completion.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-read-vdso.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-sys.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf-with-kcore.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00