Skip to contentSkip to conversation

preempt_max_latency_us undeclared for latency tracer

DISCUSSION Robert Schwebel 2 participants 2 messages Jan 12, 2008

lore
Share & tools
lore
#0 lore raw

Hi Steven,

Something seems to be missing in 2.6.24-pre7-rt1-pre1; when I switch on the latency tracer in a powerpc32 project, I get this:

kernel/sysctl.c:425: error: 'preempt_max_latency_us' undeclared here (not in a function) kernel/sysctl.c:433: error: 'preempt_thresh_us' undeclared here (not in a function)

rsc@octopus:linux-2.6.24-rc7> g preempt_max_latency_us

./kernel/sysctl.c:              .data           = &preempt_max_latency_us,
./kernel/sysctl.c:              .maxlen         = sizeof(preempt_max_latency_us),

./kernel/latency_trace.c: __preempt_max_latency = usecs_to_cycles(preempt_max_latency_us);

Any patch missign?

Robert

Signature · 2 lines
 Robert Schwebel              |  http://www.pengutronix.de
 OSADL Testlab @ Pengutronix  |  http://www.osadl.org
#1 lore raw
Quoted 7 lines · Robert Schwebel

rsc@octopus:linux-2.6.24-rc7> g preempt_max_latency_us

../kernel/sysctl.c:              .data           = &preempt_max_latency_us,
../kernel/sysctl.c:              .maxlen         = sizeof(preempt_max_latency_us),

../kernel/latency_trace.c: __preempt_max_latency = usecs_to_cycles(preempt_max_latency_us);

Any patch missign?

Crap, no, that was simply me. I'm only to the point of testing my default config (no latency tracer). That's why it was a pre release and not an official one. I've monkeyed with Daniel's patch to get rid of the "_us" variants and have all user space only see those in microsec units. But as you can see, I haven't even tried compiling my changes.

-- Steve