Skip to content
Commit 187951b2 authored by Steven Rostedt's avatar Steven Rostedt Committed by Leann Ogasawara
Browse files

tracing: Add alignment to syscall metadata declarations



For some reason if we declare a static variable and then assign it
later, and the assignment contains a __attribute__((__aligned__(#))),
some versions of gcc will ignore it.

This caused the syscall meta data to not be compact in its section
and caused a kernel oops when the section was being read.

The fix for these versions of gcc seems to be to add the aligned
attribute to the declaration as well.

This fixes the BZ regression:

  https://bugzilla.kernel.org/show_bug.cgi?id=16353

Reported-by: default avatarZeev Tarantov <zeev.tarantov@gmail.com>
Tested-by: default avatarZeev Tarantov <zeev.tarantov@gmail.com>
Acked-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <AANLkTinkKVmB0fpVeqUkMeqe3ZYeXJdI8xDuzJEOjYwh@mail.gmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
(cherry picked from commit 44a54f78

)

Signed-off-by: default avatarLeann Ogasawara <leann.ogasawara@canonical.com>
parent 22cfcab4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment