tracing: Cleanup the convoluted softirq tracepoints
authorThomas Gleixner <tglx@linutronix.de>
Tue, 19 Oct 2010 13:00:13 +0000 (15:00 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Oct 2010 14:50:29 +0000 (16:50 +0200)
commitf4bc6bb2d562703eafc895c37e7be20906de139d
treee80d4ed1bc925a2236773eff7d68163c534efea3
parent750ed158bf6c782d2813da1bca2c824365a0b777
tracing: Cleanup the convoluted softirq tracepoints

With the addition of trace_softirq_raise() the softirq tracepoint got
even more convoluted. Why the tracepoints take two pointers to assign
an integer is beyond my comprehension.

But adding an extra case which treats the first pointer as an unsigned
long when the second pointer is NULL including the back and forth
type casting is just horrible.

Convert the softirq tracepoints to take a single unsigned int argument
for the softirq vector number and fix the call sites.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <alpine.LFD.2.00.1010191428560.6815@localhost6.localdomain6>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: mathieu.desnoyers@efficios.com
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
include/linux/interrupt.h
include/trace/events/irq.h
kernel/softirq.c