Re: [PATCH 07/15] ftrace: fix event alignment: kvm:kvm_hv_hypercall

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Sharp
Date: Tuesday, December 7, 2010 - 2:16 pm

On Tue, Dec 7, 2010 at 1:22 AM, Avi Kivity <avi@redhat.com> wrote:

The ring buffer gives you space that is a multiple of 4 bytes in
length, and 32-bit aligned. Therefore it is useless to attempt to
align the structure beyond 32-bit boundaries, eg, a 64-bit boundary,
because it is unpredictable if the memory the structure will be
written to is at a 64-bit boundary (addr % 8 could be 0 or 4).


It is not packed in Linus' tree, but one of the patches before this
patch in this patch series adds __attribute__((packed)). This patch
assumes that the event packing patch has been applied. This patch
should not be applied if the packing patch is not (hence,
"predicated").

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch 00/15] Reduce tracing payload size., David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 04/15] ftrace: pack event structures., David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 10/15] ftrace: fix event alignment: jbd2:*, David Sharp, (Fri Dec 3, 5:13 pm)
[PATCH 11/15] ftrace: fix event alignment: ext4:*, David Sharp, (Fri Dec 3, 5:13 pm)
Re: [PATCH 10/15] ftrace: fix event alignment: jbd2:*, Steven Rostedt, (Fri Dec 3, 6:52 pm)
Re: [PATCH 11/15] ftrace: fix event alignment: ext4:*, Steven Rostedt, (Fri Dec 3, 6:53 pm)
Re: [Patch 00/15] Reduce tracing payload size., Andi Kleen, (Mon Dec 6, 6:22 am)
Re: [Patch 00/15] Reduce tracing payload size., Ted Ts'o, (Mon Dec 6, 6:56 am)
Re: [Patch 00/15] Reduce tracing payload size., Andi Kleen, (Mon Dec 6, 7:58 am)
Re: [Patch 00/15] Reduce tracing payload size., Steven Rostedt, (Mon Dec 6, 9:17 am)
Re: [Patch 00/15] Reduce tracing payload size., Miguel Ojeda, (Mon Dec 6, 9:31 am)
Re: [Patch 00/15] Reduce tracing payload size., Andi Kleen, (Mon Dec 6, 9:41 am)
Re: [PATCH 07/15] ftrace: fix event alignment: kvm:kvm_hv_ ..., David Sharp, (Tue Dec 7, 2:16 pm)
[PATCH] tracing: Add an 'overwrite' trace_option., David Sharp, (Wed Dec 8, 2:46 pm)
Re: [PATCH 08/15] ftrace: fix event alignment: mce:mce_record, Frederic Weisbecker, (Thu Dec 9, 6:33 am)
Re: [PATCH 13/15] small_traces: Add config option to shrin ..., Frederic Weisbecker, (Thu Dec 9, 7:55 am)
Re: [PATCH 13/15] small_traces: Add config option to shrin ..., Frederic Weisbecker, (Thu Dec 9, 8:28 am)
Re: [PATCH] tracing: Add an 'overwrite' trace_option., David Sharp, (Mon Dec 13, 5:39 pm)