diff options
-rwxr-xr-x | meta/recipes-kernel/perf/perf/sort-pmuevents.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 ): | |||
61 | #print( " name found: %s" % name.group(1) ) | 61 | #print( " name found: %s" % name.group(1) ) |
62 | entry_dict[struct[1]]['fields'][name.group(1)] = entry | 62 | entry_dict[struct[1]]['fields'][name.group(1)] = entry |
63 | 63 | ||
64 | if not entry_dict[struct[1]]['fields']: | ||
65 | entry_dict[struct[1]]['fields']['0'] = entry | ||
64 | 66 | ||
65 | # created ordered dictionaries from the captured values. These are ordered by | 67 | # created ordered dictionaries from the captured values. These are ordered by |
66 | # a sorted() iteration of the keys. We don't care about the order we read | 68 | # a sorted() iteration of the keys. We don't care about the order we read |