Skip to content

perf genelf: BLAKE2s build ID generation

Eric Biggers linux-crypto linux-perf-users 1 version Applied

Status from this message: Thanks, applied to perf-tools-next,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 5 repliesApplied

Changes in v2 from the cover letter

- Split into three patches
- Improved a couple comments

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3perf util: Add BLAKE2s supporttools/perf/tests/util.c tools/perf/util/Build tools/perf/util/blake2s.c +1 more+302 -12 replies
2/3perf genelf: Switch from SHA-1 to BLAKE2s for build ID generationtools/perf/util/genelf.c+28 -300 replies
3/3perf util: Remove SHA-1 codetools/perf/tests/util.c tools/perf/util/Build tools/perf/util/sha1.c +1 more+0 -1530 replies

Reviews trailers per patch

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

PatchIan RogersNamhyung Kim
SeriesA-b
1/3T-b
2/3T-b
3/3T-b

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/3] perf genelf: BLAKE2s build ID generation

This series upgrades perf's build ID generation to a more modern hash algorithm and switches to an incremental hashing API.

It also fixes an issue where different (code, symtab, strsym) tuples didn't necessarily result in different hashes.

Note that the size of the build ID field stays the same.

This applies to the perf-tools-next branch of
https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git

Changed in v2:
- Split into three patches
- Improved a couple comments

Eric Biggers (3):
perf util: Add BLAKE2s support
perf genelf: Switch from SHA-1 to BLAKE2s for build ID generation perf util: Remove SHA-1 code

 tools/perf/tests/util.c   |  85 +++++++++++++--------
 tools/perf/util/Build     |   2 +-
 tools/perf/util/blake2s.c | 151 ++++++++++++++++++++++++++++++++++++++
 tools/perf/util/blake2s.h |  73 ++++++++++++++++++
 tools/perf/util/genelf.c  |  58 +++++++--------
 tools/perf/util/sha1.c    |  97 ------------------------
 tools/perf/util/sha1.h    |   6 --
 7 files changed, 309 insertions(+), 163 deletions(-)
 create mode 100644 tools/perf/util/blake2s.c
 create mode 100644 tools/perf/util/blake2s.h
 delete mode 100644 tools/perf/util/sha1.c
 delete mode 100644 tools/perf/util/sha1.h

base-commit: 2eeb09fe1c5173b659929f92fee4461796ca8c14

Signature · 1 line
2.52.0