Skip to content

Commit

Permalink
create_perf_json: Drop UMaskExt depending on FCMask and PortMask
Browse files Browse the repository at this point in the history
This commit unsets UMaskExt for events which also set PortMask and
FCMask.
  • Loading branch information
edwarddavidbaker committed Dec 6, 2024
1 parent 01f6691 commit d78e8a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/create_perf_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ def get(key: str) -> str:
if self.umask:
self.umask = self.umask.split(",")[0]
umask_ext = get('UMaskExt')

# Unset UMaskExt if PortMask or FCMask are set. For future platforms
# PortMask and FCMask won't be present and only UMaskExt will be available.
if umask_ext and int(umask_ext, 16):
if (self.port_mask and int(self.port_mask, 16)) or (self.fc_mask and int(self.fc_mask, 16)):
umask_ext = None

if umask_ext:
self.umask = umask_ext + self.umask[2:]
self.umask = f'0x{int(self.umask, 16):x}'
Expand Down

0 comments on commit d78e8a1

Please sign in to comment.