Logo
Explore Help
Register Sign In
leandrof/linux
1
0
Fork 0
You've already forked linux
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
master
linux/include/trace/stages
History
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
…
Powered by Gitea Version: 1.25.1 Page: 1111ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API