]> code.ossystems Code Review - openembedded-core.git/commit
perf: reproducibility fixes for pmu-events.c
authorBruce Ashfield <bruce.ashfield@gmail.com>
Thu, 11 Mar 2021 01:52:14 +0000 (20:52 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Mar 2021 15:25:59 +0000 (15:25 +0000)
commit5281b2a6e16b6d24b66172b8269478356c0ce6c9
tree72e21b3380dae86d7b8d8701820ae581b43103a4
parent69f8f3e21324223c8e68a34db156e4472acfba6d
perf: reproducibility fixes for pmu-events.c

perf generates pmu-events.c as part of the build process. The
code that generates the events is doing tree walks and potentially
other non-determinstic things.

We'd rather not mess with that implementation, so we add a script
that knows how to read the pmu-events.c, sort the entries and then
copy it over the generated one.

With this, we should always have events in the same order, improving
reproducibility.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb
meta/recipes-kernel/perf/perf/sort-pmuevents.py [new file with mode: 0755]