Re: [BUG] percpu misaligned allocation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Li Zefan
Date: Wednesday, March 17, 2010 - 11:39 pm

David Miller wrote:

Yes, it's expanded by some crazy macro in include/trace/ftrace.h..

In linus' tree, it's called ftrace_profile_lock_acquire(), and it's
renamed to perf_trace_lock_acquire() in -tip tree by commit
97d5a22005f38057b4bc0d95f81cd26510268794.

#undef DECLARE_EVENT_CLASS
#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print)  \
static notrace void                                                     \
ftrace_profile_templ_##call(struct ftrace_event_call *event_call,       \
                            proto)                                      \
{                                                                       \
        struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\
        struct ftrace_raw_##call *entry;                                \
        u64 __addr = 0, __count = 1;                                    \
        unsigned long irq_flags;                                        \
        int __entry_size;                                               \
        int __data_size;                                                \
        int rctx;                                                       \
                                                                        \
...
}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] percpu misaligned allocation, Frederic Weisbecker, (Wed Mar 17, 9:49 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Wed Mar 17, 11:26 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Wed Mar 17, 11:28 pm)
Re: [BUG] percpu misaligned allocation, Li Zefan, (Wed Mar 17, 11:36 pm)
Re: [BUG] percpu misaligned allocation, Li Zefan, (Wed Mar 17, 11:39 pm)
Re: [BUG] percpu misaligned allocation, Tejun Heo, (Thu Mar 18, 2:30 am)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 9:56 am)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 12:50 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Thu Mar 18, 5:54 pm)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 6:31 pm)
Re: [BUG] percpu misaligned allocation, Tejun Heo, (Thu Mar 18, 6:51 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Thu Mar 18, 6:57 pm)
Re: [BUG] percpu misaligned allocation, Tejun Heo, (Thu Mar 18, 7:18 pm)
Re: [BUG] percpu misaligned allocation, Frederic Weisbecker, (Thu Mar 18, 7:30 pm)
Re: [BUG] percpu misaligned allocation, David Miller, (Thu Mar 18, 8:02 pm)
Re: [BUG] percpu misaligned allocation, Richard Kennedy, (Fri Mar 19, 8:48 am)
Re: [BUG] percpu misaligned allocation, Maciej Rutecki, (Wed Mar 24, 1:54 pm)