treewide: remove large struct-pass-by-value from tracepoint arguments
authorAlexei Starovoitov <ast@kernel.org>
Wed, 28 Mar 2018 19:05:32 +0000 (12:05 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 28 Mar 2018 20:55:18 +0000 (22:55 +0200)
commitc105547501016897194358b11451608a8d5f9a02
tree36732a6cb7c40dab79b0bcacbb6fcaca61729024
parent6f5c39fa5cd4a78c5432021e981aa8f79437a32c
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 <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/trace_ctxts.h
include/trace/events/f2fs.h
net/wireless/trace.h
sound/firewire/amdtp-stream-trace.h