Re: [PATCH V2 1/4] trace: Introduce an output interface from ftrace to STM

2016-06-28 Thread Chunyan Zhang
On Wed, Jun 22, 2016 at 1:56 PM, Alexander Shishkin wrote: > [adding Felipe for his sudden interest in the subject matter] > > Chunyan Zhang writes: > >> +static struct stm_ftrace *trace_output; > > What you want is a possibility to have different ftrace outputs, not > different STM outputs for f

Re: [PATCH V2 1/4] trace: Introduce an output interface from ftrace to STM

2016-06-21 Thread Alexander Shishkin
[adding Felipe for his sudden interest in the subject matter] Chunyan Zhang writes: > +static struct stm_ftrace *trace_output; What you want is a possibility to have different ftrace outputs, not different STM outputs for ftrace (again, STM core already does this). In other words, here, you wan

[PATCH V2 1/4] trace: Introduce an output interface from ftrace to STM

2016-06-21 Thread Chunyan Zhang
This patch is introducing a new output to print Ftrace messages to STM buffer when the traces happen. In order to reduce the effect on timing overhead as much as possible, only the current function and its parent's instruction pointer will be recorded into STM. This idea was first introduced by Ph