Skip to content

Commit edcf497

Browse files
committed
refactoring
Change-Id: Idb5293444ab1947d49b6af3c61d4ce0806e7c35e
1 parent 413eed7 commit edcf497

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/types.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,11 @@ constexpr auto CMT_MEM_LOAD_RETIRED_L2_HIT_EVTNR = 0xD1;
143143
constexpr auto CMT_MEM_LOAD_RETIRED_L2_HIT_UMASK = 0x02;
144144

145145
// architectural on-core events
146+
constexpr auto ARCH_LLC_REFERENCE_EVTNR = 0x2E;
147+
constexpr auto ARCH_LLC_REFERENCE_UMASK = 0x4F;
146148

147-
#define ARCH_LLC_REFERENCE_EVTNR (0x2E)
148-
#define ARCH_LLC_REFERENCE_UMASK (0x4F)
149-
150-
#define ARCH_LLC_MISS_EVTNR (0x2E)
151-
#define ARCH_LLC_MISS_UMASK (0x41)
152-
149+
constexpr auto ARCH_LLC_MISS_EVTNR = 0x2E;
150+
constexpr auto ARCH_LLC_MISS_UMASK = 0x41;
153151
// Atom on-core events
154152

155153
#define ATOM_MEM_LOAD_RETIRED_L2_HIT_EVTNR (0xCB)

0 commit comments

Comments
 (0)