From 8eebf9bcc51f9c3313487c16df43fcecc2e306f5 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Wed, 16 May 2007 01:28:56 -0400 Subject: Add time stamps for schedule(), the timer interrupt, and the plugin scheduler_tick() and schedule() callbacks. --- include/linux/trace.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'include/linux') 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; */ asmlinkage void save_timestamp(unsigned long event); +#define TIMESTAMP(id) ft_event0(id, save_timestamp) /* Convention for timestamps * ========================= @@ -33,11 +34,17 @@ asmlinkage void save_timestamp(unsigned long event); * an even event ID, the corresponding end time has the consecutive odd ID. */ -#define TS_SCHED_START 100 -#define TS_SCHED_END 101 +#define TS_SCHED_START TIMESTAMP(100) +#define TS_SCHED_END TIMESTAMP(101) -#define TS_TICK_START 110 -#define TS_TICK_END 111 +#define TS_TICK_START TIMESTAMP(110) +#define TS_TICK_END TIMESTAMP(111) + +#define TS_PLUGIN_SCHED_START TIMESTAMP(120) +#define TS_PLUGIN_SCHED_END TIMESTAMP(121) + +#define TS_PLUGIN_TICK_START TIMESTAMP(130) +#define TS_PLUGIN_TICK_END TIMESTAMP(131) -- cgit v1.2.2