Re: [PATCH 01/10] perf, trace: Remove IRQ-disable from perf/tracepoint interaction

Frank Ch. Eigler
2010-05-21T17:44:28Z

Peter Zijlstra <a.p.zijlstra@chello.nl> writes:

> [...]
> @@ -799,13 +799,10 @@ perf_trace_templ_##call(struct ftrace_ev
> static notrace void perf_trace_##call(proto) \
> { \
> struct ftrace_event_call *event_call = &event_##call; \
> - struct pt_regs *__regs = &get_cpu_var(perf_trace_regs); \
> - \
> - perf_fetch_caller_regs(__regs, 1); \
> - \
> - perf_trace_templ_##template(event_call, __regs, args); \
> + struct pt_regs __regs; \
> \
> - put_cpu_var(perf_trace_regs); \
> + perf_fetch_caller_regs(&__regs, 1); \
> + perf_trace_templ_##template(event_call, &__regs, args); \
> }
> [...]

To what extent are you worried about something the size of struct
pt_regs being auto/stack allocated?

- FChE