Skip to content

Commit

Permalink
ocperf: Fix eventsel_mask & flame
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Nov 12, 2024
1 parent 4c19aef commit 998aef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def output_newstyle(self, extra="", noname=False, period=False, name="", noexplo
if self.pname:
e = self.pname
else:
e = "event=0x%x,umask=0x%x" % (val & 0xff,
e = "event=0x%x,umask=0x%x" % (val & 0xff,
((val >> 8) & 0xff) | (((val >> 40) & 0xff) << 8))
e += extra
if version.has_name:
Expand Down
2 changes: 1 addition & 1 deletion pmudef.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
EVENTSEL_INV = 1<<23
EVENTSEL_EQ = 1<<36
EVENTSEL_INTX = 1<<32
EVENTSEL_INTX_CP = 1<33
EVENTSEL_INTX_CP = 1<<33
EVENTSEL_CMASK = 0xff000000

EVMASK = (EVENTSEL_EVENT | EVENTSEL_UMASK | EVENTSEL_EDGE | EVENTSEL_PC | EVENTSEL_ANY |
Expand Down

0 comments on commit 998aef2

Please sign in to comment.