aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/timestamp.h20
-rw-r--r--src/timestamp.c10
2 files changed, 29 insertions, 1 deletions
diff --git a/include/timestamp.h b/include/timestamp.h
index 7d8b112..6d69150 100644
--- a/include/timestamp.h
+++ b/include/timestamp.h
@@ -29,6 +29,26 @@ const char* event2str(unsigned long id);
29#define TS_PLUGIN_TICK_START TIMESTAMP(130) 29#define TS_PLUGIN_TICK_START TIMESTAMP(130)
30#define TS_PLUGIN_TICK_END TIMESTAMP(131) 30#define TS_PLUGIN_TICK_END TIMESTAMP(131)
31 31
32#define TS_ENTER_NP_START TIMESTAMP(140)
33#define TS_ENTER_NP_END TIMESTAMP(141)
34
35#define TS_EXIT_NP_START TIMESTAMP(150)
36#define TS_EXIT_NP_END TIMESTAMP(151)
37
38#define TS_SRP_UP_START TIMESTAMP(160)
39#define TS_SRP_UP_END TIMESTAMP(161)
40#define TS_SRP_DOWN_START TIMESTAMP(162)
41#define TS_SRP_DOWN_END TIMESTAMP(163)
42
43#define TS_PI_UP_START TIMESTAMP(170)
44#define TS_PI_UP_END TIMESTAMP(171)
45#define TS_PI_DOWN_START TIMESTAMP(172)
46#define TS_PI_DOWN_END TIMESTAMP(173)
47
48#define TS_FIFO_UP_START TIMESTAMP(180)
49#define TS_FIFO_UP_END TIMESTAMP(181)
50#define TS_FIFO_DOWN_START TIMESTAMP(182)
51#define TS_FIFO_DOWN_END TIMESTAMP(183)
32 52
33 53
34 54
diff --git a/src/timestamp.c b/src/timestamp.c
index b787bbd..b7e78c9 100644
--- a/src/timestamp.c
+++ b/src/timestamp.c
@@ -15,7 +15,15 @@ static struct event_name event_table[] =
15 EVENT(TICK), 15 EVENT(TICK),
16 EVENT(PLUGIN_SCHED), 16 EVENT(PLUGIN_SCHED),
17 EVENT(PLUGIN_TICK), 17 EVENT(PLUGIN_TICK),
18 EVENT(CXS) 18 EVENT(CXS),
19 EVENT(ENTER_NP),
20 EVENT(EXIT_NP),
21 EVENT(SRP_UP),
22 EVENT(SRP_DOWN),
23 EVENT(PI_UP),
24 EVENT(PI_DOWN),
25 EVENT(FIFO_UP),
26 EVENT(FIFO_DOWN)
19}; 27};
20 28
21int str2event(const char* str, unsigned long *id) 29int str2event(const char* str, unsigned long *id)