-
Notifications
You must be signed in to change notification settings - Fork 37
/
cjag.h
49 lines (34 loc) · 1 KB
/
cjag.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
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef BLACKHAT_CJAG_H
#define BLACKHAT_CJAG_H
#include "util/watchdog.h"
typedef struct _cjag_config_t {
int send;
int color_output;
int channels;
int cache_size;
int cache_ways;
int cache_slices;
int cache_miss_threshold;
int cache_kill_count;
int cache_probe_count;
int jag_send_count;
int jag_recv_count;
int set_offset;
int timeout;
watchdog_t *watchdog;
void *addresses;
volatile void **cache_sets;
int n_addr_per_set;
int n_pages;
void **addr;
} cjag_config_t;
void show_welcome(cjag_config_t *config);
void show_parameters(cjag_config_t *config);
void show_usage(char *binary, cjag_config_t *config);
void send_callback(cjag_config_t *config, int set);
void probe_callback(cjag_config_t *config, int set);
void receive_callback(cjag_config_t *config, int set);
void watch_callback(cjag_config_t *config, int set);
void timeout(void *arg);
void print_eviction_sets(void **addr, cjag_config_t *config);
#endif //BLACKHAT_CJAG_H