]> git.baikalelectronics.ru Git - kernel.git/commit
fgraph: Make overruns 4 bytes in graph stack structure
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 28 Oct 2020 12:19:24 +0000 (08:19 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 11 Nov 2020 01:39:36 +0000 (20:39 -0500)
commit53866571ba598a487ddc9dbf65444fc87c257aa5
treea20295d7f8aa5216ff7a504d313b79f52adab181
parent6a952b19b7d3e9d893037519276049e058c74b72
fgraph: Make overruns 4 bytes in graph stack structure

Inspecting the data structures of the function graph tracer, I found that
the overrun value is unsigned long, which is 8 bytes on a 64 bit machine,
and not only that, the depth is an int (4 bytes). The overrun can be simply
an unsigned int (4 bytes) and pack the ftrace_graph_ret structure better.

The depth is moved up next to the func, as it is used more often with func,
and improves cache locality.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/trace_entries.h
kernel/trace/trace_functions_graph.c