-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.config
42 lines (32 loc) · 1.36 KB
/
Makefile.config
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
37
38
39
40
41
# Tweak this parameter according to your platform
# You can alternative have predefined values depending on the platform (See libsgxstep/config.h)
# Too high values will skip instructions
# Too small values will be stuck zero stepping or might produce errors
SGX_STEP_TIMER_INTERVAL = 42
# Number of times the loop should be run
NUM = 10000
## Choose between MICROBENCH or IPP_LIB here
ATTACK_SCENARIO = MICROBENCH
# ---- Parameters for the IPP_LIB ATTACK_SCENARIO
# Set INLINED_CALL to 0 to simulate the original IPP library
# without an attacker synchronizing instructions in the same core
# This parameter is only used if ATTACK_SCENARIO is set to IPP_LIB
INLINED_CALL = 0
# ---- Parameters for the MICROBENCH ATTACK_SCENARIO
# The following parameters are only relevant when
# the ATTACK_SCENARIO is set to MICROBENCH
# and are ignored if ATTACK_SCENARIO == IPP_LIB
# Alignment of the if branch. Should be a value between 0-15
# Important: This variable must be set!
ALIGN1=6
# Alignment of the else branch. Should be a value between 0-15
# Important: This variable must be set!
ALIGN2=3
# Number of pairs of (test-mov) per branch
NUM_INSTR = 25
# ---- PCM Variables
PCM_ENABLED = 0
# Add events here.
# Max four events at the same time can be recorded.
# See the skylake_events file for a list of supported performance counters
EVENTS += "UOPS_ISSUED.ANY-event=0xe,umask=0x1"