Skip to content

Fix alignment of custom sections made from structures (v2)

Mathieu Desnoyers lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3introduce __u64_packed_aligned, __u64_aligned and U64_ALIGN() for structure alignment in custom sectionsinclude/asm-generic/vmlinux.lds.h include/linux/align-section.h include/linux/compiler.h+70 -00 replies
2/3tracing: fix sparc64 alignment crash with __u64_packed_aligned/__u64_aligned/U64_ALIGN()include/asm-generic/vmlinux.lds.h include/linux/compiler.h include/linux/ftrace_event.h +5 more+29 -300 replies
3/3tracepoints: use __u64_packed_aligned/__u64_aligned/U64_ALIGN()include/asm-generic/vmlinux.lds.h include/linux/tracepoint.h+5 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/3] Fix alignment of custom sections made from structures (v2)

(sending v2 after properly refreshing my patches and re-reading through the posted version carefully)

Hello,

Here is a patchset that fixes the Ftrace-induced crash experienced on sparc64 discussed in the following thread: https://lkml.org/lkml/2011/1/16/2

The third patch changes the Tracepoints to use the more compact alignment scheme proposed here, even though their alignment on 32-byte works fine. This third patch is therefore not a fix per se.

The patchset is based on 2.6.37. Hopefully there are not too many things to update for the current -git.

Comments, flames as well as acclamation are welcome. ;-)

Mathieu

Signature · 4 lines
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com