Commit e3f612c1 authored by Yuzhuo Jing's avatar Yuzhuo Jing Committed by Namhyung Kim
Browse files

perf genelf: Remove libcrypto dependency and use built-in sha1()



genelf is the only file in perf that depends on libcrypto (or openssl)
which only calculates a Build ID (SHA1, MD5, or URANDOM).  SHA1 was
expected to be the default option, but MD5 was used by default due to
previous issues when linking against Java.  This commit switches genelf
to use the in-house sha1(), and also removes MD5 and URANDOM options
since we have a reliable SHA1 implementation to rely on.  It passes the
tools/perf/tests/shell/test_java_symbol.sh test.

Signed-off-by: default avatarYuzhuo Jing <yuzhuo@google.com>
Co-developed-by: default avatarEric Biggers <ebiggers@kernel.org>
Signed-off-by: default avatarEric Biggers <ebiggers@kernel.org>
Reviewed-by: default avatarIan Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250625202311.23244-4-ebiggers@kernel.org


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 43830468
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment