From: Steven Rostedt Date: Fri, 4 Feb 2011 04:25:46 +0000 (-0500) Subject: tracing/filter: Swap entire filter of events X-Git-Tag: v2.6.39-rc1~510^2~39^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b8e98263fdb0bfbdeba60d4db463259f1fe8a2;p=pandora-kernel.git tracing/filter: Swap entire filter of events When creating a new filter, instead of allocating the filter to the event call first and then processing the filter, it is easier to process a temporary filter and then just swap it with the call filter. By doing this, it simplifies the code. A filter is allocated and processed, when it is done, it is swapped with the call filter, synchronize_sched() is called to make sure all callers are done with the old filter (filters are called with premption disabled), and then the old filter is freed. Cc: Tom Zanussi Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed