Skip to content

perf: Remove libcrypto dependency

Yuzhuo Jing linux-perf-users lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf utils: Add support functions for sha1 utilstools/include/linux/bitops.h tools/include/linux/compiler.h tools/include/linux/string.h+49 -00 replies
2/4perf tools: Add sha1 utilstools/perf/util/Build tools/perf/util/sha1.c tools/perf/util/sha1.h +2 more+317 -05 replies
3/4perf genelf: Remove libcrypto dependency and use sha1 utilstools/perf/util/genelf.c+6 -662 replies
4/4tools: Remove libcrypto dependencytools/build/Makefile.feature tools/build/feature/Makefile tools/build/feature/test-all.c +6 more+1 -571 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchIan Rogers
SeriesT-b
1/4
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 v1 0/4] perf: Remove libcrypto dependency

Currently, genelf.c is the only file in the perf tool that depends on libcrypto (e.g. openssl), which only uses it to calculate a SHA1/MD5 Build ID. This patch series pulls in the SHA1 implementation from the kernel tree, and removes the libcrypto dependency from perf. This also switches the default Build ID calculation method from MD5 to the more commonly used SHA1.

Yuzhuo Jing (4):
perf utils: Add support functions for sha1 utils perf tools: Add sha1 utils
perf genelf: Remove libcrypto dependency and use sha1 utils
tools: Remove libcrypto dependency

 tools/build/Makefile.feature            |   2 -
 tools/build/feature/Makefile            |   4 -
 tools/build/feature/test-all.c          |   5 -
 tools/build/feature/test-libcrypto.c    |  25 -----
 tools/include/linux/bitops.h            |  10 ++
 tools/include/linux/compiler.h          |  17 ++++
 tools/include/linux/string.h            |  22 +++++
 tools/perf/Documentation/perf-check.txt |   1 -
 tools/perf/Makefile.config              |  13 ---
 tools/perf/Makefile.perf                |   3 -
 tools/perf/builtin-check.c              |   1 -
 tools/perf/tests/make                   |   4 +-
 tools/perf/util/Build                   |   2 +
 tools/perf/util/genelf.c                |  72 ++------------
 tools/perf/util/sha1.c                  | 122 ++++++++++++++++++++++++
 tools/perf/util/sha1.h                  |  41 ++++++++
 tools/perf/util/sha1_base.h             | 103 ++++++++++++++++++++
 tools/perf/util/sha1_generic.c          |  49 ++++++++++
 18 files changed, 373 insertions(+), 123 deletions(-)
 delete mode 100644 tools/build/feature/test-libcrypto.c
 create mode 100644 tools/perf/util/sha1.c
 create mode 100644 tools/perf/util/sha1.h
 create mode 100644 tools/perf/util/sha1_base.h
 create mode 100644 tools/perf/util/sha1_generic.c
Signature · 1 line
2.49.0.1164.gab81da1b16-goog