tracing: Add ftrace_hash_key() helper function
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 1 Feb 2017 17:19:33 +0000 (12:19 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Feb 2017 15:58:05 +0000 (10:58 -0500)
commit2b0cce0e190f8f0b37fe8102ae657f5d9eb0976d
tree8082aad134bb617cb902ed7813c7d1246efcf17a
parentb9b0c831bed2682c2e3e9f5420fb6985549ef020
tracing: Add ftrace_hash_key() helper function

Replace the couple of use cases that has small logic to produce the ftrace
function key id with a helper function. No need for duplicate code.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c