Skip to content

perf symbols: Improve dso__synthesize_plt_symbols() for x86

Adrian Hunter linux-perf-users lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 3 repliesApplied
  2. v19 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9perf symbols: Correct plt entry sizes for x86tools/perf/util/symbol-elf.c+13 -40 replies
2/9perf symbols: Add support for x86 .plt.sectools/perf/util/symbol-elf.c+23 -70 replies
3/9perf symbols: Sort plt relocations for x86tools/perf/util/symbol-elf.c+57 -30 replies
4/9perf symbols: Record whether a symbol is an alias for an IFUNC symboltools/perf/util/symbol.c tools/perf/util/symbol.h+6 -00 replies
5/9perf symbols: Add support for IFUNC symbols for x86_64tools/perf/util/symbol-elf.c+37 -10 replies
6/9perf symbols: Allow for .plt without headertools/perf/util/symbol-elf.c+15 -10 replies
7/9perf symbols: Allow for static executables with .plttools/perf/util/symbol-elf.c tools/perf/util/symsrc.h+21 -100 replies
8/9perf symbols: Start adding support for .plt.got for x86tools/perf/util/symbol-elf.c+29 -01 reply
9/9perf symbols: Get symbols for .plt.got for x86-64tools/perf/util/symbol-elf.c+157 -40 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNamhyung Kim
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/9] perf symbols: Improve dso__synthesize_plt_symbols() for x86

Hi

This is version 2 of the second of 2 patchsets to improve dso__synthesize_plt_symbols().
This patchset focuses on getting rid of unknown symbols that show up in Intel PT traces.

x86 has 2 more plt's, namely .plt.sec and .plt.got, so support is added for synthesizing symbols for them. Special handing is needed for IFUNC symbols, and it is also possible to have a .plt for static executables, so support is added for that.

Changes in V2:

perf symbols: Add support for x86 .plt.sec
Amend commit message and example about -z plt

perf symbols: Get symbols for .plt.got for x86-64
Fix get_plt_got_name() not to segfault with EM_386

Adrian Hunter (9):
perf symbols: Correct plt entry sizes for x86
perf symbols: Add support for x86 .plt.sec
perf symbols: Sort plt relocations for x86
perf symbols: Record whether a symbol is an alias for an IFUNC symbol perf symbols: Add support for IFUNC symbols for x86_64 perf symbols: Allow for .plt without header
perf symbols: Allow for static executables with .plt
perf symbols: Start adding support for .plt.got for x86 perf symbols: Get symbols for .plt.got for x86-64

 tools/perf/util/symbol-elf.c | 365 ++++++++++++++++++++++++++++++++++++++++---
 tools/perf/util/symbol.c     |   4 +
 tools/perf/util/symbol.h     |   2 +
 tools/perf/util/symsrc.h     |   1 +
 4 files changed, 350 insertions(+), 22 deletions(-)

Regards
Adrian