From: Eric Biggers <ebiggers@kernel.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Namhyung Kim <namhyung@kernel.org>,
linux-perf-users@vger.kernel.org,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>,
Fangrui Song <maskray@sourceware.org>,
Pablo Galindo <pablogsal@gmail.com>,
"Jason A . Donenfeld" <Jason@zx2c4.com>,
linux-crypto@vger.kernel.org
Subject: Re: [PATCH v2 1/3] perf util: Add BLAKE2s support
Date: Tue, 13 Jan 2026 15:44:05 -0800 [thread overview]
Message-ID: <20260113234405.GA2178@quark> (raw)
In-Reply-To: <aWakZaNtNDTv2hFM@x1>
On Tue, Jan 13, 2026 at 05:00:37PM -0300, Arnaldo Carvalho de Melo wrote:
> On Mon, Dec 08, 2025 at 05:57:27PM -0800, Eric Biggers wrote:
> > Add BLAKE2s support to the perf utility library. The code is borrowed
> > from the kernel.
>
> We have tools/perf/check-headers.sh to check for drifts between things
> we borrow from the kernel, so that when the kernel fixes or improves
> things we borrowed, we notice and check if it makes sense for us to
> update the copy, see tools/include/uapi/README.
>
> In this case the copy isn't verbatim, as not all is needed, perhaps it
> could be just to facilitate? I haven't checked, just mentioning it while
> processing this series, I'll check that later, maybe.
>
> - Arnaldo
I think that would be more trouble than it's worth in this case. Every
time I make a change to a UAPI header, even something trivial like
updating a comment, I start getting emails about how a header changed
and perf's copy of it is being updated too. It's actually kind of
annoying. I don't think we need to add that for the BLAKE2s code too.
We can always resynchronize manually later if there's an important
change.
But ultimately this code just implements BLAKE2s, which is a fixed
algorithm. If it does so correctly, which I'm quite confident it does,
future changes will just be refactoring, optimization, etc.
Of course, the use of BLAKE2s in 'perf' doesn't seem to be
performance-critical, so any optimizations won't be that important for
it. It will include just the generic C code anyway -- no assembly code.
- Eric
next prev parent reply other threads:[~2026-01-13 23:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 1:57 [PATCH v2 0/3] perf genelf: BLAKE2s build ID generation Eric Biggers
2025-12-09 1:57 ` [PATCH v2 1/3] perf util: Add BLAKE2s support Eric Biggers
2026-01-13 20:00 ` Arnaldo Carvalho de Melo
2026-01-13 23:44 ` Eric Biggers [this message]
2025-12-09 1:57 ` [PATCH v2 2/3] perf genelf: Switch from SHA-1 to BLAKE2s for build ID generation Eric Biggers
2025-12-09 1:57 ` [PATCH v2 3/3] perf util: Remove SHA-1 code Eric Biggers
2025-12-17 15:25 ` [PATCH v2 0/3] perf genelf: BLAKE2s build ID generation Namhyung Kim
2026-01-09 2:24 ` Eric Biggers
2026-01-13 20:04 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260113234405.GA2178@quark \
--to=ebiggers@kernel.org \
--cc=Jason@zx2c4.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maskray@sourceware.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=pablogsal@gmail.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox