Eric Biggers
e35dd81017
perf util: Remove SHA-1 code
...
Now that the SHA-1 code is no longer used, remove it.
Signed-off-by: Eric Biggers <[email protected] >
Tested-by: Ian Rogers <[email protected] >
Acked-by: Namhyung Kim <[email protected] >
Cc: Adrian Hunter <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Fangrui Song <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: James Clark <[email protected] >
Cc: Jason A. Donenfeld <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Pablo Galindo <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2026-01-13 17:03:32 -03:00
Eric Biggers
8d3b664949
perf util: Add BLAKE2s support
...
Add BLAKE2s support to the perf utility library. The code is borrowed
from the kernel. This will replace the use of SHA-1 in genelf.c.
Signed-off-by: Eric Biggers <[email protected] >
Tested-by: Ian Rogers <[email protected] >
Acked-by: Namhyung Kim <[email protected] >
Cc: Adrian Hunter <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Fangrui Song <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: James Clark <[email protected] >
Cc: Jason A. Donenfeld <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Pablo Galindo <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2026-01-13 17:03:25 -03:00
Eric Biggers
43830468b6
perf util: add a basic SHA-1 implementation
...
SHA-1 can be written in fewer than 100 lines of code. Just add a basic
SHA-1 implementation so that there's no need to use an external library
or try to pull in the kernel's SHA-1 implementation. The kernel's SHA-1
implementation is not really intended to be pulled into userspace
programs in the way that it was proposed to do so for perf
(https://lore.kernel.org/r/[email protected] / ),
and it's also likely to undergo some refactoring in the future. There's
no need to tie userspace tools to it.
Include a test for sha1() in the util test suite.
Signed-off-by: Eric Biggers <[email protected] >
Reviewed-by: Ian Rogers <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected] >
2025-06-26 10:51:40 -07:00
James Clark
8a55c1e2c9
perf util: Add a function for replacing characters in a string
...
It finds all occurrences of a single character and replaces them with
a multi character string. This will be used in a test in a following
commit.
Reviewed-by: Ian Rogers <[email protected] >
Signed-off-by: James Clark <[email protected] >
Cc: Adrian Hunter <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Chen Zhongjin <[email protected] >
Cc: Eduard Zingerman <[email protected] >
Cc: Haixin Yu <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jing Zhang <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: John Garry <[email protected] >
Cc: Kajol Jain <[email protected] >
Cc: Kan Liang <[email protected] >
Cc: Leo Yan <[email protected] >
Cc: Liam Howlett <[email protected] >
Cc: Madhavan Srinivasan <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Mike Leach <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Ravi Bangoria <[email protected] >
Cc: Will Deacon <[email protected] >
Cc: Yang Jihong <[email protected] >
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2023-09-12 17:32:00 -03:00
Arnaldo Carvalho de Melo
a60d79535c
perf test: Use perf_evsel__newtp constructor in the tracepoint tests
...
Removing one trace_event__id function, not used anymore.
Cc: David Ahern <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Mike Galbraith <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-12-10 15:11:43 -03:00
Jiri Olsa
d3b59a38bc
perf tests: Move test__open_syscall_event into separate object
...
Separating test__open_syscall_event test from the builtin-test into
open-syscall object.
Adding util object under tests directory to gather help functions common
to more tests.
Signed-off-by: Jiri Olsa <[email protected] >
Cc: Corey Ashford <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-11-14 16:49:17 -03:00