Message ID | a6cc268224194218809b56874c70b87c7df4a94f.1652231471.git.anuj.mittal@intel.com |
---|---|
State | Accepted, archived |
Commit | a6cc268224194218809b56874c70b87c7df4a94f |
Headers | show |
Series | [honister,01/17] busybox: Use base_bindir instead of hardcoding /bin path | expand |
diff --git a/meta/recipes-kernel/perf/perf/sort-pmuevents.py b/meta/recipes-kernel/perf/perf/sort-pmuevents.py index 5ddf0f144f..4f841eb822 100755 --- a/meta/recipes-kernel/perf/perf/sort-pmuevents.py +++ b/meta/recipes-kernel/perf/perf/sort-pmuevents.py @@ -61,6 +61,8 @@ for struct in re.findall( struct_block_regex, data ): #print( " name found: %s" % name.group(1) ) entry_dict[struct[1]]['fields'][name.group(1)] = entry + if not entry_dict[struct[1]]['fields']: + entry_dict[struct[1]]['fields']['0'] = entry # created ordered dictionaries from the captured values. These are ordered by # a sorted() iteration of the keys. We don't care about the order we read