diff options
author | Namhyung Kim <[email protected]> | 2016-06-29 19:56:48 +0900 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2016-07-05 17:28:30 -0400 |
commit | a4a551b8f1d4c4ebffd0f49dfef44df3128546f8 (patch) | |
tree | f59e73d2d4265f88018dea61756793eb15797604 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 7ad8fb61c4abf589596f0a4da34d987471481569 (diff) |
ftrace: Reduce size of function graph entries
Currently ftrace_graph_ent{,_entry} and ftrace_graph_ret{,_entry} struct
can have padding bytes at the end due to alignment in 64-bit data type.
As these data are recorded so frequently, those paddings waste
non-negligible space. As the ring buffer maintains alignment properly
for each architecture, just to remove the extra padding using 'packed'
attribute.
ftrace_graph_ent_entry: 24 -> 20
ftrace_graph_ret_entry: 48 -> 44
Also I moved the 'overrun' field in struct ftrace_graph_ret to minimize
the padding in the middle.
Tested on x86_64 only.
Link: http://lkml.kernel.org/r/[email protected]
Cc: Ingo Molnar <[email protected]>
Cc: [email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions