OSDN Git Service

ftrace: Use fls() to get the bits for dup_hash()
authorWei Yang <richard.weiyang@linux.alibaba.com>
Mon, 31 Aug 2020 03:11:00 +0000 (11:11 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Oct 2020 19:29:06 +0000 (15:29 -0400)
commit59e65b3358f44d4d0134eca3b6c269f359f21cd5
treee874d9cc9d84a563d4dc87cfad0159c3796c71a3
parent8db4d6bfbbf9206567fd529dc73dc058b3929db0
ftrace: Use fls() to get the bits for dup_hash()

The effect here is to get the number of bits, lets use fls() to do
this job.

Link: https://lkml.kernel.org/r/20200831031104.23322-3-richard.weiyang@linux.alibaba.com
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c