aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <[email protected]>2023-01-17 10:21:26 -0500
committerSteven Rostedt (Google) <[email protected]>2023-01-25 10:31:24 -0500
commit19ff80496450f58a148effa2551350f3b89e4990 (patch)
tree25565947fa2fdfc251c2605f03e9943213eee0a2 /lib/mpi/mpi-sub-ui.c
parent3e4272b9954094907f16861199728f14002fcaf6 (diff)
tracing: Simplify calculating entry size using struct_size()
When tracing a dynamic string field for a synthetic event, the offset calculation for where to write the next event can use struct_size() to find what the current size of the structure is. This simplifies the code and makes it less error prone. Link: https://lkml.kernel.org/r/[email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Tom Zanussi <[email protected]> Cc: Ross Zwisler <[email protected]> Cc: Ching-lin Yu <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions