acrntrace: break when finding the matching key
The key in the list is unique. So, it is better to break the loop
when find the matching key instead of traversing the whole list.
Acked-by: Yan, Like
@@ -137,6 +137,7 @@ def parse_trace_data(ifile):
if event == LIST_EVENTS.get(key):
NR_EXITS[key] += 1
last_ev_id = key
+ break
else:
# Skip the non-VMEXIT trace event
