On Mon, Nov 22, 2021 at 11:35 AM Max Krummenacher <max.oss...@gmail.com> wrote: > > I am trying out a kernel recipe using linux master, 5.16-rc2. I found > that perf fails to build in do_compile with such a setup. > Root cause is that the kernel did add 'static' and 'const' to the > arrays of structs which sort-pmuevents does sort. > This is addressed in the second commit. > > While at it I noticed that there are some struct arrays which neither > have a name or cpuid element with 1 array element. That 1 element was > dropped. I did not verify if that causes any issues at runtime, however > that behaviour was improved with the first commit. > > Note that the kernel itself doesn't build either as after 5.15 it now > does try to run the dt_binding_check for which the kernel recipe does > not provide whatever stuff is needed. > I just did a revert patch for commit 53182e81f47d ("kbuild: Enable > DT schema checks for %.dtb targets") to get over that.
I have a fixefor that particular problem (the bindings), so you can safely continue to ignore it .. but I hadn't gotten around to fixing perf yet. The changes look fine to me for perf. The sorting of events is hopefully something we can drop soon, as there have been other reproducibility changes to perf upstream, that will make it unnecessary. Bruce > > Max Krummenacher (2): > perf: sort-pmuevents: don't drop elements > perf: sort-pmuevents: allow for additional type qualifiers and storage > class > > .../perf/perf/sort-pmuevents.py | 28 +++++++++++-------- > 1 file changed, 16 insertions(+), 12 deletions(-) > > -- > 2.20.1 > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#158585): https://lists.openembedded.org/g/openembedded-core/message/158585 Mute This Topic: https://lists.openembedded.org/mt/87238903/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-