diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2021-11-22 17:34:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-26 17:01:08 +0000 |
commit | c67fab09fef16c092565d7be79fa8aff433af005 (patch) | |
tree | b90488d88146169cd02cf264a95f3a3101b50dd0 /meta/recipes-kernel/powertop | |
parent | 1bac831fbaafb6fd27addbb467b0815679a62319 (diff) | |
download | poky-c67fab09fef16c092565d7be79fa8aff433af005.tar.gz |
perf: sort-pmuevents: don't drop elements
If a struct element neither has an element cpuid or name it gets silenty
dropped.
Kernel 5.15 for some ARCHs have at least one array of structs matching
this.
e.g. for arm pmu-events.c:
|#include "pmu-events/pmu-events.h"
struct pmu_events_map pmu_events_map[] = {
{
.cpuid = 0,
.version = 0,
.type = 0,
.table = 0,
},
};
struct pmu_sys_events pmu_sys_event_tables[] = {
{
.table = 0
},
};
Before this patch the second struct is translated to an empty array::
struct pmu_sys_events pmu_sys_event_tables[] = {
};
(From OE-Core rev: e1382583cd5060be301afaa9998ccf250cc8bca3)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/powertop')
0 files changed, 0 insertions, 0 deletions