diff options
author | Glenn <gelliott@bonham.cs.unc.edu> | 2010-11-16 15:41:21 -0500 |
---|---|---|
committer | Glenn <gelliott@bonham.cs.unc.edu> | 2010-11-16 15:41:21 -0500 |
commit | 1b9caf2f95c97e27c91372bd41f79d3e96a99e62 (patch) | |
tree | a02ed0f31998ede99372964549e00216f0733e57 /litmus/sched_task_trace.c | |
parent | 9a4b9c5c9b2af2f69e7eb6d69893a767701b781b (diff) | |
parent | 1726017e944d0086f14f867befbf5ebf07adc7dd (diff) |
Merge branch 'wip-merge-2.6.36' of ssh://cvs.cs.unc.edu/cvs/proj/litmus/repo/litmus2010 into wip-merge-2.6.36
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r-- | litmus/sched_task_trace.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c index 39a543e22d41..e5098ddb1ec9 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: %d bytes)\n", | ||
46 | NO_EVENTS, (int) 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); |