linux/include/trace/stages
Steven Rostedt (Google) 09794a5a6c tracing: Use alignof__(struct {type b;}) instead of offsetof()
Simplify:

  #define ALIGN_STRUCTFIELD(type) ((int)(offsetof(struct {char a; type b;}, b)))

with

  #define  ALIGN_STRUCTFIELD(type) __alignof__(struct {type b;})

Which works just the same.

Link: https://lore.kernel.org/all/a7d202457150472588df0bd3b7334b3f@AcuMS.aculab.com/
Link: https://lkml.kernel.org/r/20220802154412.513c50e3@gandalf.local.home

Suggested-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2022-08-02 16:01:12 -04:00
..
init.h
stage1_struct_define.h tracing/events: Add __vstring() and __assign_vstr() helper macros 2022-07-15 17:42:34 -04:00
stage2_data_offsets.h tracing/events: Add __vstring() and __assign_vstr() helper macros 2022-07-15 17:42:34 -04:00
stage3_trace_output.h
stage4_event_fields.h tracing: Use alignof__(struct {type b;}) instead of offsetof() 2022-08-02 16:01:12 -04:00
stage5_get_offsets.h tracing/events: Add __vstring() and __assign_vstr() helper macros 2022-07-15 17:42:34 -04:00
stage6_event_callback.h tracing: Use a copy of the va_list for __assign_vstr() 2022-07-30 13:56:09 -04:00
stage7_class_define.h