summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/perf')
-rwxr-xr-xmeta/recipes-kernel/perf/perf/sort-pmuevents.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf/sort-pmuevents.py b/meta/recipes-kernel/perf/perf/sort-pmuevents.py
index 09ba3328a7..0362f2d8fa 100755
--- a/meta/recipes-kernel/perf/perf/sort-pmuevents.py
+++ b/meta/recipes-kernel/perf/perf/sort-pmuevents.py
@@ -62,7 +62,10 @@ for struct in re.findall( struct_block_regex, data ):
62 #print( " name found: %s" % name.group(1) ) 62 #print( " name found: %s" % name.group(1) )
63 entry_dict[struct[2]]['fields'][name.group(1)] = entry 63 entry_dict[struct[2]]['fields'][name.group(1)] = entry
64 64
65 if not entry_dict[struct[2]]['fields']: 65 # unmatched entries are most likely array terminators and
66 # should end up as the last element in the sorted list, which
67 # is achieved by using '0' as the key
68 if not cpuid and not name:
66 entry_dict[struct[2]]['fields']['0'] = entry 69 entry_dict[struct[2]]['fields']['0'] = entry
67 70
68# created ordered dictionaries from the captured values. These are ordered by 71# created ordered dictionaries from the captured values. These are ordered by