From: Steven Rostedt Date: Mon, 2 May 2011 21:34:47 +0000 (-0400) Subject: ftrace: Separate hash allocation and assignment X-Git-Tag: v3.0-rc1~404^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33dc9b1267d59cef46ff0bd6bc043190845dc919;p=pandora-kernel.git 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 --- Reading git-diff-tree failed