]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
perf: Fix 6.1 kernel reproducibility issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Feb 2023 12:06:08 +0000 (12:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Feb 2023 15:44:39 +0000 (15:44 +0000)
commitd2c27ae5c0d06363d2f0a2a8eb4e8e492df58444
tree1a30eec248aff411937a904c72742007c37381bc
parentec73d19d78e8f30ff9b817490c23bcdf8ea47c86
perf: Fix 6.1 kernel reproducibility issue

The pmu-events.c file is generated by a python script making os.scandir()
calls. The return value is "order on disk" which can cary between machines.

Add in a sed to fix the perf source to sort this data which makes
the pmu-events.c file deterministic.

We should try and upstream this change but we'll need to sed for varying
kernel versions. We should also try and get the perf source being added
to the perf-devsrc package so when failures like this occur, diffoscope
is much more helpful!

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb