Files
linux-stable-mirror/include/linux
Steven Rostedt a1d0ce8213 tracing: Use class->reg() for all registering of events
Because kprobes and syscalls need special processing to register
events, the class->reg() method was created to handle the differences.

But instead of creating a default ->reg for perf and ftrace events,
the code was scattered with:

	if (class->reg)
		class->reg();
	else
		default_reg();

This is messy and can also lead to bugs.

This patch cleans up this code and creates a default reg() entry for
the events allowing for the code to directly call the class->reg()
without the condition.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-06-28 21:13:14 -04:00
..
2010-05-28 01:38:00 +02:00
2010-06-08 18:44:04 +02:00
2010-06-01 11:12:28 +02:00
2010-05-27 22:05:02 -04:00
2010-06-07 16:03:10 -04:00
2010-05-30 09:02:47 -07:00
2010-06-03 13:13:34 +10:00