summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_branch.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-05-02 17:34:47 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-05-18 15:29:46 -0400
commit33dc9b1267d59cef46ff0bd6bc043190845dc919 (patch)
treed5a3f78a6aabcd33b9848d3bf86b9b53ff6ea2e0 /kernel/trace/trace_branch.c
parentf45948e898e7bc76a73a468796d2ce80dd040058 (diff)
downloadblackbird-op-linux-33dc9b1267d59cef46ff0bd6bc043190845dc919.tar.gz
blackbird-op-linux-33dc9b1267d59cef46ff0bd6bc043190845dc919.zip
ftrace: Separate hash allocation and assignment
When filtering, allocate a hash to insert the function records. After the filtering is complete, assign it to the ftrace_ops structure. This allows the ftrace_ops structure to have a much smaller array of hash buckets instead of wasting a lot of memory. A read only empty_hash is created to be the minimum size that any ftrace_ops can point to. When a new hash is created, it has the following steps: o Allocate a default hash. o Walk the function records assigning the filtered records to the hash o Allocate a new hash with the appropriate size buckets o Move the entries from the default hash to the new hash. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_branch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud