mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
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. Tracked-On: #4175 Acked-by: Yan, Like <like.yan@intel.com> Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
parent
9655b9de15
commit
1e192f05d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user