Re: [PATCH v2 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-11-11 Thread Kees Cook
On Thu, Nov 10, 2016 at 4:16 PM, Joel Fernandes wrote: > On Thu, Nov 10, 2016 at 4:13 PM, Kees Cook wrote: >> On Thu, Oct 20, 2016 at 12:34 AM, Joel Fernandes wrote: >>> If FTRACE_PER_CPU flag is passed to ramoops pdata, split the space into >>> multiple zones depending on the number of CPUs. >>

Re: [PATCH v2 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-11-10 Thread Joel Fernandes
On Thu, Nov 10, 2016 at 4:13 PM, Kees Cook wrote: > On Thu, Oct 20, 2016 at 12:34 AM, Joel Fernandes wrote: >> If FTRACE_PER_CPU flag is passed to ramoops pdata, split the space into >> multiple zones depending on the number of CPUs. >> >> This speeds up the performance of function tracing by abo

Re: [PATCH v2 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-11-10 Thread Kees Cook
On Thu, Oct 20, 2016 at 12:34 AM, Joel Fernandes wrote: > If FTRACE_PER_CPU flag is passed to ramoops pdata, split the space into > multiple zones depending on the number of CPUs. > > This speeds up the performance of function tracing by about 280% in my tests > as > we avoid the locking. The tra

[PATCH v2 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-10-20 Thread Joel Fernandes
If FTRACE_PER_CPU flag is passed to ramoops pdata, split the space into multiple zones depending on the number of CPUs. This speeds up the performance of function tracing by about 280% in my tests as we avoid the locking. The trade off being lesser space available per CPU. Let the ramoops user de