Re: [PATCH v3 1/2] powerpc/xmon: Dump ftrace buffers for the current CPU only

2017-08-14 Thread Michael Ellerman
Breno Leitao writes: > Hello Michael, > > On Mon, Aug 14, 2017 at 11:00:07PM +1000, Michael Ellerman wrote: >> Breno Leitao writes: >> > @@ -2231,6 +2232,19 @@ static void xmon_rawdump (unsigned long adrs, long >> > ndump) >> >printf("\n"); >> > } >>

Re: [PATCH v3 1/2] powerpc/xmon: Dump ftrace buffers for the current CPU only

2017-08-14 Thread Breno Leitao
Hello Michael, On Mon, Aug 14, 2017 at 11:00:07PM +1000, Michael Ellerman wrote: > Breno Leitao writes: > > @@ -2231,6 +2232,19 @@ static void xmon_rawdump (unsigned long adrs, long > > ndump) > > printf("\n"); > > } > > > > +static void dump_tracing(void) > > +{ > > +

Re: [PATCH v3 1/2] powerpc/xmon: Dump ftrace buffers for the current CPU only

2017-08-14 Thread Michael Ellerman
Breno Leitao writes: > @@ -2231,6 +2232,19 @@ static void xmon_rawdump (unsigned long adrs, long > ndump) > printf("\n"); > } > > +static void dump_tracing(void) > +{ > + int c; > + > + c = inchar(); > + if (c == 'c') > +

Re: [PATCH v3 1/2] powerpc/xmon: Dump ftrace buffers for the current CPU only

2017-08-14 Thread Michael Ellerman
Breno Leitao writes: > Current xmon 'dt' command dumps the tracing buffer for all the CPUs, > which makes it very hard to read due to the fact that most of > powerpc machines currently have many CPUs. > Other than that, the CPU > lines are interleaved in the ftrace log.

[PATCH v3 1/2] powerpc/xmon: Dump ftrace buffers for the current CPU only

2017-08-02 Thread Breno Leitao
Current xmon 'dt' command dumps the tracing buffer for all the CPUs, which makes it very hard to read due to the fact that most of powerpc machines currently have many CPUs. Other than that, the CPU lines are interleaved in the ftrace log. This new option just dumps the ftrace buffer for the