android_kernel_xiaomi_sm8350/include
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
..
acpi Merge branch 'acpica-cherry-pick' into release 2010-06-12 00:56:15 -04:00
asm-generic Merge commit 'v2.6.35-rc3' into perf/core 2010-06-18 10:53:19 +02:00
crypto
drm drm/radeon/kms/evergreen: set accel_enabled 2010-06-08 09:34:42 +10:00
keys
linux tracing: Use class->reg() for all registering of events 2010-06-28 21:13:14 -04:00
math-emu
media V4L/DVB: saa7134: add RM-K6 remote control support for Avermedia M135A 2010-06-01 01:22:09 -03:00
mtd
net snmp: fix SNMP_ADD_STATS() 2010-06-23 11:48:19 -07:00
pcmcia
rdma
rxrpc
scsi SCSI: implement sd_unlock_native_capacity() 2010-06-02 13:50:04 -04:00
sound
trace tracing: Use class->reg() for all registering of events 2010-06-28 21:13:14 -04:00
video fbdev: move FBIO_WAITFORVSYNC to linux/fb.h 2010-05-25 08:07:09 -07:00
xen
Kbuild