Re: [PATCH net-next 1/8] perf: optimize perf_fetch_caller_regs

2016-04-08 Thread Steven Rostedt
On Tue, 5 Apr 2016 14:06:26 +0200 Peter Zijlstra wrote: > On Mon, Apr 04, 2016 at 09:52:47PM -0700, Alexei Starovoitov wrote: > > avoid memset in perf_fetch_caller_regs, since it's the critical path of all > > tracepoints. > > It's called from perf_sw_event_sched, perf_event_task_sched_in and al

Re: [PATCH net-next 1/8] perf: optimize perf_fetch_caller_regs

2016-04-05 Thread Alexei Starovoitov
On 4/5/16 5:06 AM, Peter Zijlstra wrote: On Mon, Apr 04, 2016 at 09:52:47PM -0700, Alexei Starovoitov wrote: avoid memset in perf_fetch_caller_regs, since it's the critical path of all tracepoints. It's called from perf_sw_event_sched, perf_event_task_sched_in and all of perf_trace_##call with

Re: [PATCH net-next 1/8] perf: optimize perf_fetch_caller_regs

2016-04-05 Thread Peter Zijlstra
On Mon, Apr 04, 2016 at 09:52:47PM -0700, Alexei Starovoitov wrote: > avoid memset in perf_fetch_caller_regs, since it's the critical path of all > tracepoints. > It's called from perf_sw_event_sched, perf_event_task_sched_in and all of > perf_trace_##call > with this_cpu_ptr(&__perf_regs[..]) wh

[PATCH net-next 1/8] perf: optimize perf_fetch_caller_regs

2016-04-04 Thread Alexei Starovoitov
avoid memset in perf_fetch_caller_regs, since it's the critical path of all tracepoints. It's called from perf_sw_event_sched, perf_event_task_sched_in and all of perf_trace_##call with this_cpu_ptr(&__perf_regs[..]) which are zero initialized by perpcu_alloc and subsequent call to perf_arch_fet