Skip to content

perf: Fix archive/debugcache PE files

Nicholas Fraser lkml 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4perf buildid-cache: Don't skip 16-byte build-idstools/perf/util/build-id.c tools/perf/util/build-id.h+6 -36 replies
2/4perf report: Load PE files from debug cache onlytools/perf/util/symbol.c+1 -75 replies
3/4perf archive: Fix filtering of empty build-idstools/perf/perf-archive.sh+1 -23 replies
4/4perf report: Fix return value when loading PE DSOtools/perf/util/symbol.c+3 -11 reply

Reviews trailers per patch

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

PatchJiri Olsa
SeriesA-b
1/4A-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] perf: Fix archive/debugcache PE files

Hello perf maintainers,

I have some patches to get "perf archive" working with PE binaries (e.g. Wine DLLs or Windows executables.) The PE support in perf is fairly new and "perf archive" hasn't been updated to work with it. In getting this working I've come across a number of bugs in perf that these patches aim to fix. The patches are independent and can be committed in any order.

Some of these are because build-ids are now variable width. Build-ids in PE files are always 16-byte GUIDs; much of the existing code still assumes a 20-byte SHA-1 build-id. I've tried to make the minimal amount of changes to allow 16-byte build-ids to work with a debugcache from a perf archive.

I'm new to kernel development so I apologize if I'm doing this incorrectly.

Thanks,

Nick

Nicholas Fraser (4):
perf buildid-cache: Don't skip 16-byte build-ids perf report: Load PE files from debug cache only perf archive: Fix filtering of empty build-ids perf report: Fix return value when loading PE DSO

 tools/perf/perf-archive.sh |  3 +--
 tools/perf/util/build-id.c |  5 +++--
 tools/perf/util/build-id.h |  4 +++-
 tools/perf/util/symbol.c   | 12 ++++--------
 4 files changed, 11 insertions(+), 13 deletions(-)
Signature · 1 line
2.30.0