forked from boegel/MICA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmica_itypes.h
36 lines (27 loc) · 869 Bytes
/
mica_itypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* This file is part of MICA, a Pin tool to collect
* microarchitecture-independent program characteristics using the Pin
* instrumentation framework.
*
* Please see the README.txt file distributed with the MICA release for more
* information.
*/
#include "mica.h"
#ifndef MICA_ITYPES_H
#define MICA_ITYPES_H
typedef struct identifier_type{
// type of identifier
// SPECIAL includes stuff like memory reads/writes
enum {ID_TYPE_CATEGORY = 1, ID_TYPE_OPCODE, ID_TYPE_SPECIAL} type;
// string identifier for category/opcode
char* str;
} identifier;
VOID init_itypes();
VOID init_itypes_default_groups();
VOID instrument_itypes(INS ins, VOID* v);
VOID instrument_itypes_bbl(TRACE trace, VOID* v);
VOID fini_itypes(INT32 code, VOID* v);
VOID itypes_count(UINT32 gid);
VOID itypes_instr_interval_output();
VOID itypes_instr_interval_reset();
#endif