From: Steven Rostedt (Red Hat) Date: Tue, 7 Jan 2014 02:32:10 +0000 (-0500) Subject: tracing: Consolidate event trigger code X-Git-Tag: v3.14-rc1~133^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a1e4aef53b2a7684ddee374e749999ba103b4a;p=pandora-kernel.git tracing: Consolidate event trigger code The event trigger code that checks for callback triggers before and after recording of an event has lots of flags checks. This code is duplicated throughout the ftrace events, kprobes and system calls. They all do the exact same checks against the event flags. Added helper functions ftrace_trigger_soft_disabled(), event_trigger_unlock_commit() and event_trigger_unlock_commit_regs() that consolidated the code and these are used instead. Link: http://lkml.kernel.org/r/20140106222703.5e7dbba2@gandalf.local.home Acked-by: Tom Zanussi Tested-by: Tom Zanussi Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed