Hello. Steven, we already discussed this a bit some time ago...
DECLARE_EVENT_CLASS()->perf_trace_##call() is not trivial because of __perf_task(), but perhaps we can change other perf_trace_buf_submit(task => NULL) callers. And can't we factor out WARN_ONCE(size > PERF_MAX_TRACE_SIZE) ? See 3/3. I won't argue if you dislike it. Oleg. include/trace/ftrace.h | 4 ---- kernel/trace/trace_event_perf.c | 10 ++++++++-- kernel/trace/trace_kprobe.c | 6 ------ kernel/trace/trace_syscalls.c | 24 ++++++++---------------- kernel/trace/trace_uprobe.c | 2 -- 5 files changed, 16 insertions(+), 30 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

