diff options
author | Alexei Starovoitov <[email protected]> | 2018-03-28 12:05:32 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2018-03-28 22:55:18 +0200 |
commit | c105547501016897194358b11451608a8d5f9a02 (patch) | |
tree | 36732a6cb7c40dab79b0bcacbb6fcaca61729024 /net/unix/sysctl_net_unix.c | |
parent | 6f5c39fa5cd4a78c5432021e981aa8f79437a32c (diff) |
treewide: remove large struct-pass-by-value from tracepoint arguments
- fix trace_hfi1_ctxt_info() to pass large struct by reference instead of by value
- convert 'type array[]' tracepoint arguments into 'type *array',
since compiler will warn that sizeof('type array[]') == sizeof('type *array')
and later should be used instead
The CAST_TO_U64 macro in the later patch will enforce that tracepoint
arguments can only be integers, pointers, or less than 8 byte structures.
Larger structures should be passed by reference.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions