aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 01:28:56 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 01:28:56 -0400
commit8eebf9bcc51f9c3313487c16df43fcecc2e306f5 (patch)
treea0067f04bb7a3c96c3c632f6bcbb00cc4289dbc5 /include/linux
parent5f979b598981f99b0ebb324f56be9d4ca0d751bd (diff)
Add time stamps for schedule(), the timer interrupt, and the plugin
scheduler_tick() and schedule() callbacks.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/trace.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/trace.h b/include/linux/trace.h
index 9cbcbf4295..0d05e6eda2 100644
--- a/include/linux/trace.h
+++ b/include/linux/trace.h
@@ -24,6 +24,7 @@ extern struct ft_buffer* trace_ts_buf;
24 */ 24 */
25asmlinkage void save_timestamp(unsigned long event); 25asmlinkage void save_timestamp(unsigned long event);
26 26
27#define TIMESTAMP(id) ft_event0(id, save_timestamp)
27 28
28/* Convention for timestamps 29/* Convention for timestamps
29 * ========================= 30 * =========================
@@ -33,11 +34,17 @@ asmlinkage void save_timestamp(unsigned long event);
33 * an even event ID, the corresponding end time has the consecutive odd ID. 34 * an even event ID, the corresponding end time has the consecutive odd ID.
34 */ 35 */
35 36
36#define TS_SCHED_START 100 37#define TS_SCHED_START TIMESTAMP(100)
37#define TS_SCHED_END 101 38#define TS_SCHED_END TIMESTAMP(101)
38 39
39#define TS_TICK_START 110 40#define TS_TICK_START TIMESTAMP(110)
40#define TS_TICK_END 111 41#define TS_TICK_END TIMESTAMP(111)
42
43#define TS_PLUGIN_SCHED_START TIMESTAMP(120)
44#define TS_PLUGIN_SCHED_END TIMESTAMP(121)
45
46#define TS_PLUGIN_TICK_START TIMESTAMP(130)
47#define TS_PLUGIN_TICK_END TIMESTAMP(131)
41 48
42 49
43 50