From: Steven Rostedt Date: Tue, 8 Jun 2010 15:22:06 +0000 (-0400) Subject: tracing: Use class->reg() for all registering of events X-Git-Tag: v2.6.36-rc1~532^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1d0ce8213e9ddf4046ef5ba95c55762d075f541;p=pandora-kernel.git 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 Acked-by: Peter Zijlstra Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed