aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 11:57:36 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 11:57:36 -0400
commit9bee556de7489579c3bdd0d2d4d457ffa72168eb (patch)
tree717d15ada509379ff052fd50455e0089891f76b2 /include
parentd4f334c3e019d4fa1f50e33c51146dd469ee4178 (diff)
Nicer structure
Diffstat (limited to 'include')
-rw-r--r--include/timestamp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
new file mode 100644
index 0000000..ae50ae1
--- /dev/null
+++ b/include/timestamp.h
@@ -0,0 +1,31 @@
1#ifndef TIMESTAMP_H
2#define TIMESTAMP_H
3
4struct timestamp {
5 unsigned long event;
6 unsigned long long timestamp;
7 unsigned int seq_no;
8 int cpu;
9};
10
11#define ENABLE_CMD 0L
12
13#define TIMESTAMP(id) id ## L
14
15#define TS_SCHED_START TIMESTAMP(100)
16#define TS_SCHED_END TIMESTAMP(101)
17
18#define TS_TICK_START TIMESTAMP(110)
19#define TS_TICK_END TIMESTAMP(111)
20
21#define TS_PLUGIN_SCHED_START TIMESTAMP(120)
22#define TS_PLUGIN_SCHED_END TIMESTAMP(121)
23
24#define TS_PLUGIN_TICK_START TIMESTAMP(130)
25#define TS_PLUGIN_TICK_END TIMESTAMP(131)
26
27
28
29
30
31#endif