Re: [PATCH] tracing: fix a build error on alpha and m68k

From
Ingo Molnar <hidden>
Date
2008-10-23 16:55:34
Also in
lkml
Reply to
Frédéric Weisbecker, 2008-10-23
* Frédéric Weisbecker [off-list ref] wrote:
But they should be able to use the tracing for several other tracers. 
One other problem is that you need CONFIG_TRACE_IRQFLAGS (is that a 
lockdep or just trace feature?) to use any tracer since the 
tracing_cpumask file is always created for all tracer. This file has 
tracing_cpumask_write() as a write operation, and this func uses 
raw_local_funcs....

Perhaps we should disable the tracing_cpu_mask related things if 
TRACE_IRQFLAGS in not configured?
to answer the "is that a lockdep or just trace feature" question:

trace-irqflags was first written by me for the (crude) ftrace-precursor 
latency tracer code in -rt, years ago. Then i reused it (and changed it 
alot) for upstream lockdep, two years ago. Then ftrace came in this year 
and reused it.

so it's rather symbiotic ;-)

So ... the tracers that rely on irqflags-tracing should definitely be 
limited to architectures that provide TRACE_IRQFLAGS. The core trace.c 
itself should probably not be restricted ... (and it should definitely 
build)

	Ingo
Thread (53 messages) 53 messages, 12 authors, last reply 2008-11-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help