tracing/filter: Allocate the preds in an array
authorSteven Rostedt <srostedt@redhat.com>
Fri, 28 Jan 2011 03:49:48 +0000 (22:49 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Feb 2011 01:56:18 +0000 (20:56 -0500)
commit74e9e58c350a24139e268dd6857bbaa55c5aafcf
tree26f4769080314a042d67a73975656331add7648d
parent0fc3ca9a10a61a77f18710fb708b41fd99c79a56
tracing/filter: Allocate the preds in an array

Currently we allocate an array of pointers to filter_preds, and then
allocate a separate filter_pred for each item in the array.
This adds slight overhead in the filters as it needs to derefernce
twice to get to the op condition.

Allocating the preds themselves in a single array removes a dereference
as well as helps on the cache footprint.

Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.h
kernel/trace/trace_events_filter.c