]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Separate out the copying of a ftrace_hash from __ftrace_hash_move()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Nov 2019 17:25:46 +0000 (12:25 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Nov 2019 17:25:46 +0000 (12:25 -0500)
commit2cb2af04964b2121f2ec9a70e23f56e937071205
treeafff8b9afc93f0885bf7aeaea2a24e3ad6f7bdbc
parent63fb7e96b0bb6bdbddc1ad52001a2f281c9c77af
ftrace: Separate out the copying of a ftrace_hash from __ftrace_hash_move()

Most of the functionality of __ftrace_hash_move() can be reused, but not all
of it. That is, __ftrace_hash_move() is used to simply make a new hash from
an existing one, using the same size as the original. Creating a dup_hash(),
where we can specify a new size will be useful when we want to create a hash
with a default size, or simply copy the old one.

Signed-off-by: Steven Rostedt (VMWare) <rostedt@goodmis.org>
kernel/trace/ftrace.c