aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2017-09-22 14:58:23 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-10-04 13:10:39 -0400
commit5819eaddf35b24d628ddfa4fbb5f8d4026e44b96 (patch)
treedff913d4ff34893f9e3ded5ca780832c8b6c74c3 /include/linux/ftrace.h
parenttracing: Add hist_field_name() accessor (diff)
downloadwireguard-linux-5819eaddf35b24d628ddfa4fbb5f8d4026e44b96.tar.xz
wireguard-linux-5819eaddf35b24d628ddfa4fbb5f8d4026e44b96.zip
tracing: Reimplement log2
log2 as currently implemented applies only to u64 trace_event_field derived fields, and assumes that anything it's applied to is a u64 field. To prepare for synthetic fields like latencies, log2 should be applicable to those as well, so take the opportunity now to fix the current problems as well as expand to more general uses. log2 should be thought of as a chaining function rather than a field type. To enable this as well as possible future function implementations, add a hist_field operand array into the hist_field definition for this purpose, and make use of it to implement the log2 'function'. Link: http://lkml.kernel.org/r/b47f93fc0b87b36eccf716b0c018f3a71e1f1111.1506105045.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
0 files changed, 0 insertions, 0 deletions