aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-26 16:37:45 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-26 16:37:45 -0500
commit5fc2f4309c51774deb336d941ab167607918af1c (patch)
tree7585ceefc706a6e3baaff78e79df3d6e4c80ed83
parent61bd58a6f6c773cc3057ad08319eaf7f3e9ca3ab (diff)
Let TRACE() log buffer size and comment converge.
Make the allocation size actually dependent on the number of CPUs (as the comment claims). Update the comment and the macro name to actually reflect the per-CPU allocation size (which is much smaller than 1MB).
-rw-r--r--litmus/sched_trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/litmus/sched_trace.c b/litmus/sched_trace.c
index cea227b13785..ad0b138d4b01 100644
--- a/litmus/sched_trace.c
+++ b/litmus/sched_trace.c
@@ -17,9 +17,9 @@
17 17
18#define SCHED_TRACE_NAME "litmus/log" 18#define SCHED_TRACE_NAME "litmus/log"
19 19
20/* Allocate a buffer of about 1 MB per CPU */ 20/* Allocate a buffer of about 32k per CPU */
21#define LITMUS_TRACE_BUF_ORDER 8 21#define LITMUS_TRACE_BUF_PAGES 8
22#define LITMUS_TRACE_BUF_SIZE (PAGE_SIZE * LITMUS_TRACE_BUF_ORDER) 22#define LITMUS_TRACE_BUF_SIZE (PAGE_SIZE * LITMUS_TRACE_BUF_PAGES * NR_CPUS)
23 23
24/* Max length of one read from the buffer */ 24/* Max length of one read from the buffer */
25#define MAX_READ_LEN (64 * 1024) 25#define MAX_READ_LEN (64 * 1024)