Skip to content

Commit 75b8e98

Browse files
Steven Rostedtrostedt
authored andcommitted
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 <tzanussi@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent bf93f9e commit 75b8e98

File tree

1 file changed

+146
-105
lines changed

1 file changed

+146
-105
lines changed

0 commit comments

Comments
 (0)