aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_task_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r--litmus/sched_task_trace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c
index 39a543e22d41..5fcabb55eb8f 100644
--- a/litmus/sched_task_trace.c
+++ b/litmus/sched_task_trace.c
@@ -18,7 +18,7 @@
18 18
19/* set MAJOR to 0 to have it dynamically assigned */ 19/* set MAJOR to 0 to have it dynamically assigned */
20#define FT_TASK_TRACE_MAJOR 253 20#define FT_TASK_TRACE_MAJOR 253
21#define NO_EVENTS 4096 /* this is a buffer of 12 4k pages per CPU */ 21#define NO_EVENTS (1 << CONFIG_SCHED_TASK_TRACE_SHIFT)
22 22
23#define now() litmus_clock() 23#define now() litmus_clock()
24 24
@@ -41,6 +41,9 @@ static int __init init_sched_task_trace(void)
41{ 41{
42 struct local_buffer* buf; 42 struct local_buffer* buf;
43 int i, ok = 0; 43 int i, ok = 0;
44 printk("Allocated %u sched_trace_xxx() events per CPU "
45 "(buffer size: %u bytes)\n",
46 NO_EVENTS, sizeof(struct local_buffer));
44 ftdev_init(&st_dev, THIS_MODULE); 47 ftdev_init(&st_dev, THIS_MODULE);
45 for (i = 0; i < NR_CPUS; i++) { 48 for (i = 0; i < NR_CPUS; i++) {
46 buf = &per_cpu(st_event_buffer, i); 49 buf = &per_cpu(st_event_buffer, i);