Logo
Explore Help
Sign In
TWxSoftware/twx-linux
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
v6.0.4
twx-linux/include/trace/stages
T
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.27.3 Page: 1165ms Template: 16ms
Auto
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