forked from ShawnZhong/MadFS
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtimer_event.h
61 lines (50 loc) · 1.05 KB
/
timer_event.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
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include <cstddef>
namespace madfs {
enum class Event : std::size_t {
READ,
WRITE,
PREAD,
PWRITE,
OPEN,
OPEN_SYS,
MMAP,
CLOSE,
FSYNC,
UPDATE,
READ_TX,
READ_TX_CTOR,
READ_TX_UPDATE,
READ_TX_COPY,
READ_TX_VALIDATE,
ALIGNED_TX,
ALIGNED_TX_CTOR,
ALIGNED_TX_EXEC,
ALIGNED_TX_COPY,
ALIGNED_TX_PREPARE,
ALIGNED_TX_UPDATE,
ALIGNED_TX_RECYCLE,
ALIGNED_TX_WAIT_OFFSET,
ALIGNED_TX_COMMIT,
ALIGNED_TX_FREE,
SINGLE_BLOCK_TX,
SINGLE_BLOCK_TX_START,
SINGLE_BLOCK_TX_COPY,
SINGLE_BLOCK_TX_COMMIT,
MULTI_BLOCK_TX,
MULTI_BLOCK_TX_START,
MULTI_BLOCK_TX_COPY,
MULTI_BLOCK_TX_COMMIT,
TX_ENTRY_LOAD,
TX_ENTRY_STORE,
GC_CREATE,
};
// A list of events defined but not accounted for:
static constexpr Event disabled_events[] = {
Event::READ_TX_CTOR, Event::ALIGNED_TX_CTOR,
Event::ALIGNED_TX_EXEC, Event::ALIGNED_TX_PREPARE,
Event::ALIGNED_TX_RECYCLE, Event::ALIGNED_TX_WAIT_OFFSET,
Event::ALIGNED_TX_FREE, Event::TX_ENTRY_LOAD,
Event::TX_ENTRY_STORE,
};
} // namespace madfs