Logo
Explore Help
Sign In
admin/linux
1
0
Fork 0
You've already forked linux
mirror of https://github.com/torvalds/linux.git synced 2025-12-07 20:06:24 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
v6.0
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
tracing: Rename the staging files for trace_events
2022-04-02 08:40:04 -04:00
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
tracing: Rename the staging files for trace_events
2022-04-02 08:40:04 -04:00
Powered by Gitea Version: 1.25.4 Page: 1045ms Template: 2ms
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