Skip to content

Commit

Permalink
update trace_read.h with opcodes and XED
Browse files Browse the repository at this point in the history
must add latency mapping for new opcodes (potentially add new map entirely for sapphire rapids?)
  • Loading branch information
mgoldstein322 committed Jan 31, 2024
1 parent 08541a7 commit 7954df1
Show file tree
Hide file tree
Showing 2 changed files with 426 additions and 390 deletions.
34 changes: 25 additions & 9 deletions src/trace_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ POSSIBILITY OF SUCH DAMAGE.

///////////////////////////////////////////////////////////////////////////////////////////////

#define MAX_TR_REG 321
#define MAX_TR_REG 330
//#define MAX_TR_OPCODE_NAME GPU_OPCODE_LAST
#define REP_MOV_MEM_SIZE_MAX 4
#define REP_MOV_MEM_SIZE_MAX_NEW \
Expand Down Expand Up @@ -286,6 +286,8 @@ typedef enum CPU_OPCODE_ENUM_ {
XED_CATEGORY_3DNOW,
XED_CATEGORY_ADOX_ADCX,
XED_CATEGORY_AES,
XED_CATEGORY_AMX_TILE, //new
XED_CATEGORY_APX, //new
XED_CATEGORY_AVX,
XED_CATEGORY_AVX2,
XED_CATEGORY_AVX2GATHER,
Expand All @@ -294,7 +296,8 @@ typedef enum CPU_OPCODE_ENUM_ {
XED_CATEGORY_AVX512_4VNNIW,
XED_CATEGORY_AVX512_BITALG,
XED_CATEGORY_AVX512_VBMI,
XED_CATEGORY_AVX512_VP2INTERSECT,
XED_CATEGORY_AVX512_VP2INTERSECT, //new
XED_CATEGORY_AVX_IFMA, //new
XED_CATEGORY_BINARY,
XED_CATEGORY_BITBYTE,
XED_CATEGORY_BLEND,
Expand All @@ -303,7 +306,7 @@ typedef enum CPU_OPCODE_ENUM_ {
XED_CATEGORY_BROADCAST,
XED_CATEGORY_CALL,
XED_CATEGORY_CET,
XED_CATEGORY_CLDEMOTE,
XED_CATEGORY_CLDEMOTE, //new
XED_CATEGORY_CLFLUSHOPT,
XED_CATEGORY_CLWB,
XED_CATEGORY_CLZERO,
Expand All @@ -314,36 +317,43 @@ typedef enum CPU_OPCODE_ENUM_ {
XED_CATEGORY_CONVERT,
XED_CATEGORY_DATAXFER,
XED_CATEGORY_DECIMAL,
XED_CATEGORY_ENQCMD,
XED_CATEGORY_ENQCMD, //new
XED_CATEGORY_EXPAND,
XED_CATEGORY_FCMOV,
XED_CATEGORY_FLAGOP,
XED_CATEGORY_FMA4,
XED_CATEGORY_FP16, //new
XED_CATEGORY_GATHER,
XED_CATEGORY_GFNI,
XED_CATEGORY_HRESET, //new
XED_CATEGORY_IFMA,
XED_CATEGORY_INTERRUPT,
XED_CATEGORY_IO,
XED_CATEGORY_IOSTRINGOP,
XED_CATEGORY_KEYLOCKER, //new
XED_CATEGORY_KEYLOCKER_WIDE, //new
XED_CATEGORY_KMASK,
XED_CATEGORY_LEGACY, //new
XED_CATEGORY_LOGICAL,
XED_CATEGORY_LOGICAL_FP,
XED_CATEGORY_LZCNT,
XED_CATEGORY_MISC,
XED_CATEGORY_MMX,
XED_CATEGORY_MOVDIR,
XED_CATEGORY_MOVDIR, //new
XED_CATEGORY_MPX,
XED_CATEGORY_MSRLIST, //new
XED_CATEGORY_NOP,
XED_CATEGORY_PBNDKB, //new
XED_CATEGORY_PCLMULQDQ,
XED_CATEGORY_PCONFIG,
XED_CATEGORY_PKU,
XED_CATEGORY_POP,
XED_CATEGORY_PREFETCH,
XED_CATEGORY_PREFETCHWT1,
XED_CATEGORY_PT,
XED_CATEGORY_PTWRITE, //changed from XED_CATEGORY_PT?
XED_CATEGORY_PUSH,
XED_CATEGORY_RDPID,
XED_CATEGORY_RDPRU,
XED_CATEGORY_RDPRU, //new
XED_CATEGORY_RDRAND,
XED_CATEGORY_RDSEED,
XED_CATEGORY_RDWRFSGS,
Expand All @@ -352,9 +362,11 @@ typedef enum CPU_OPCODE_ENUM_ {
XED_CATEGORY_SCATTER,
XED_CATEGORY_SEGOP,
XED_CATEGORY_SEMAPHORE,
XED_CATEGORY_SERIALIZE, //new
XED_CATEGORY_SETCC,
XED_CATEGORY_SGX,
XED_CATEGORY_SHA,
XED_CATEGORY_SHA512, //new
XED_CATEGORY_SHIFT,
XED_CATEGORY_SMAP,
XED_CATEGORY_SSE,
Expand All @@ -364,15 +376,19 @@ typedef enum CPU_OPCODE_ENUM_ {
XED_CATEGORY_SYSRET,
XED_CATEGORY_SYSTEM,
XED_CATEGORY_TBM,
XED_CATEGORY_TSX_LDTRK, //new
XED_CATEGORY_UINTR, //new
XED_CATEGORY_UNCOND_BR,
XED_CATEGORY_VAES,
XED_CATEGORY_VBMI2,
XED_CATEGORY_VEX, //new
XED_CATEGORY_VFMA,
XED_CATEGORY_VIA_PADLOCK,
XED_CATEGORY_VIA_PADLOCK, //new
XED_CATEGORY_VPCLMULQDQ,
XED_CATEGORY_VTX,
XED_CATEGORY_WAITPKG,
XED_CATEGORY_WAITPKG, //new
XED_CATEGORY_WIDENOP,
XED_CATEGORY_WRMSRNS, //new
XED_CATEGORY_X87_ALU,
XED_CATEGORY_XOP,
XED_CATEGORY_XSAVE,
Expand Down
Loading

0 comments on commit 7954df1

Please sign in to comment.