* [PATCH 1/2]: ftrace: Remove packed attribute on ftrace_page.
@ 2008-05-14 5:06 David Miller
2008-05-14 13:10 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2008-05-14 5:06 UTC (permalink / raw)
To: mingo; +Cc: acme, srostedt, linux-kernel
It causes unaligned access traps on platforms like sparc
(ftrace_page may be marked packed, but once we return
a dyn_ftrace sub-object from this array to another piece
of code, the "packed" part of the typing information doesn't
propagate).
But also, it didn't serve any purpose either. Even if packed,
on 64-bit or 32-bit, it didn't give us any more dyn_ftrace
entries per-page.
Signed-off-by: David S. Miller <davem@davemloft.net>
---
kernel/trace/ftrace.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index afd617b..5588c63 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -177,9 +177,9 @@ static DEFINE_MUTEX(ftrace_filter_lock);
struct ftrace_page {
struct ftrace_page *next;
- int index;
+ unsigned long index;
struct dyn_ftrace records[];
-} __attribute__((packed));
+};
#define ENTRIES_PER_PAGE \
((PAGE_SIZE - sizeof(struct ftrace_page)) / sizeof(struct dyn_ftrace))
--
1.5.5.rc0.16.g02b00
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2]: ftrace: Remove packed attribute on ftrace_page.
2008-05-14 5:06 [PATCH 1/2]: ftrace: Remove packed attribute on ftrace_page David Miller
@ 2008-05-14 13:10 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2008-05-14 13:10 UTC (permalink / raw)
To: David Miller; +Cc: mingo, acme, linux-kernel
David Miller wrote:
> It causes unaligned access traps on platforms like sparc
> (ftrace_page may be marked packed, but once we return
> a dyn_ftrace sub-object from this array to another piece
> of code, the "packed" part of the typing information doesn't
> propagate).
>
> But also, it didn't serve any purpose either. Even if packed,
> on 64-bit or 32-bit, it didn't give us any more dyn_ftrace
> entries per-page.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Steven Rostedt <srostedt@redhat.com>
-- Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-14 13:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 5:06 [PATCH 1/2]: ftrace: Remove packed attribute on ftrace_page David Miller
2008-05-14 13:10 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox