From 5fc2f4309c51774deb336d941ab167607918af1c Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Fri, 26 Feb 2010 16:37:45 -0500 Subject: 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). --- litmus/sched_trace.c | 6 +++--- 1 file 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 @@ #define SCHED_TRACE_NAME "litmus/log" -/* Allocate a buffer of about 1 MB per CPU */ -#define LITMUS_TRACE_BUF_ORDER 8 -#define LITMUS_TRACE_BUF_SIZE (PAGE_SIZE * LITMUS_TRACE_BUF_ORDER) +/* Allocate a buffer of about 32k per CPU */ +#define LITMUS_TRACE_BUF_PAGES 8 +#define LITMUS_TRACE_BUF_SIZE (PAGE_SIZE * LITMUS_TRACE_BUF_PAGES * NR_CPUS) /* Max length of one read from the buffer */ #define MAX_READ_LEN (64 * 1024) -- cgit v1.2.2