Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Du, Changbin
On Fri, Mar 02, 2018 at 11:39:16AM +0100, Rafael J. Wysocki wrote: > On 3/2/2018 11:15 AM, Du, Changbin wrote: > > On Fri, Mar 02, 2018 at 11:18:10AM +0100, Rafael J. Wysocki wrote: > > > On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin > > > wrote: > > > > > > > That rather

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Du, Changbin
On Fri, Mar 02, 2018 at 11:39:16AM +0100, Rafael J. Wysocki wrote: > On 3/2/2018 11:15 AM, Du, Changbin wrote: > > On Fri, Mar 02, 2018 at 11:18:10AM +0100, Rafael J. Wysocki wrote: > > > On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin > > > wrote: > > > > > > > That rather isn't the case if

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Rafael J. Wysocki
On 3/2/2018 11:15 AM, Du, Changbin wrote: On Fri, Mar 02, 2018 at 11:18:10AM +0100, Rafael J. Wysocki wrote: On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin wrote: That rather isn't the case if negative values are ever passed to the tracepoint, right? yes. Which seems

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Rafael J. Wysocki
On 3/2/2018 11:15 AM, Du, Changbin wrote: On Fri, Mar 02, 2018 at 11:18:10AM +0100, Rafael J. Wysocki wrote: On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin wrote: That rather isn't the case if negative values are ever passed to the tracepoint, right? yes. Which seems to be the reason why

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Du, Changbin
On Fri, Mar 02, 2018 at 11:18:10AM +0100, Rafael J. Wysocki wrote: > On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin wrote: > >> >> That rather isn't the case if negative values are ever passed to the > >> >> tracepoint, right? > >> >> > >> > yes. > >> >> Which seems to be

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Du, Changbin
On Fri, Mar 02, 2018 at 11:18:10AM +0100, Rafael J. Wysocki wrote: > On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin wrote: > >> >> That rather isn't the case if negative values are ever passed to the > >> >> tracepoint, right? > >> >> > >> > yes. > >> >> Which seems to be the reason why you want

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Rafael J. Wysocki
On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin wrote: >> >> That rather isn't the case if negative values are ever passed to the >> >> tracepoint, right? >> >> >> > yes. >> >> Which seems to be the reason why you want to make this change, isn't it? >> >> >> > yes, to improve

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Rafael J. Wysocki
On Fri, Mar 2, 2018 at 10:41 AM, Du, Changbin wrote: >> >> That rather isn't the case if negative values are ever passed to the >> >> tracepoint, right? >> >> >> > yes. >> >> Which seems to be the reason why you want to make this change, isn't it? >> >> >> > yes, to improve readability. >> > >>

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Du, Changbin
> >> That rather isn't the case if negative values are ever passed to the > >> tracepoint, right? > >> > > yes. > >> Which seems to be the reason why you want to make this change, isn't it? > >> > > yes, to improve readability. > > > >> So maybe fix the code using the tracepoint(s) to avoid

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Du, Changbin
> >> That rather isn't the case if negative values are ever passed to the > >> tracepoint, right? > >> > > yes. > >> Which seems to be the reason why you want to make this change, isn't it? > >> > > yes, to improve readability. > > > >> So maybe fix the code using the tracepoint(s) to avoid

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Rafael J. Wysocki
[Fix up LKML address.] On Thu, Mar 1, 2018 at 3:27 AM, Du, Changbin wrote: > Hi, > On Wed, Feb 28, 2018 at 11:27:09AM +0100, Rafael J. Wysocki wrote: >> On Wed, Feb 28, 2018 at 10:20 AM, wrote: >> > From: Changbin Du >> > >>

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-03-02 Thread Rafael J. Wysocki
[Fix up LKML address.] On Thu, Mar 1, 2018 at 3:27 AM, Du, Changbin wrote: > Hi, > On Wed, Feb 28, 2018 at 11:27:09AM +0100, Rafael J. Wysocki wrote: >> On Wed, Feb 28, 2018 at 10:20 AM, wrote: >> > From: Changbin Du >> > >> > The type of state is signed int, convert it to unsigned int looks

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-28 Thread Du, Changbin
On Wed, Feb 28, 2018 at 10:14:41AM +0100, Rafael J. Wysocki wrote: > On 2/28/2018 3:45 AM, Du, Changbin wrote: > > On Tue, Feb 27, 2018 at 05:39:38PM -0500, Steven Rostedt wrote: > > > On Tue, 27 Feb 2018 17:35:27 +0800 > > > "Du, Changbin" wrote: > > > > > > > > From the

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-28 Thread Du, Changbin
On Wed, Feb 28, 2018 at 10:14:41AM +0100, Rafael J. Wysocki wrote: > On 2/28/2018 3:45 AM, Du, Changbin wrote: > > On Tue, Feb 27, 2018 at 05:39:38PM -0500, Steven Rostedt wrote: > > > On Tue, 27 Feb 2018 17:35:27 +0800 > > > "Du, Changbin" wrote: > > > > > > > > From the tracing perspective: >

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-28 Thread Rafael J. Wysocki
On 2/28/2018 3:45 AM, Du, Changbin wrote: On Tue, Feb 27, 2018 at 05:39:38PM -0500, Steven Rostedt wrote: On Tue, 27 Feb 2018 17:35:27 +0800 "Du, Changbin" wrote: From the tracing perspective: Acked-by: Steven Rostedt (VMware) -- Steve Hi

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-28 Thread Rafael J. Wysocki
On 2/28/2018 3:45 AM, Du, Changbin wrote: On Tue, Feb 27, 2018 at 05:39:38PM -0500, Steven Rostedt wrote: On Tue, 27 Feb 2018 17:35:27 +0800 "Du, Changbin" wrote: From the tracing perspective: Acked-by: Steven Rostedt (VMware) -- Steve Hi Steve, will you pick this or someoneelse? I

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-27 Thread Du, Changbin
On Tue, Feb 27, 2018 at 05:39:38PM -0500, Steven Rostedt wrote: > On Tue, 27 Feb 2018 17:35:27 +0800 > "Du, Changbin" wrote: > > > > From the tracing perspective: > > > > > > Acked-by: Steven Rostedt (VMware) > > > > > > -- Steve > > > > > Hi

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-27 Thread Du, Changbin
On Tue, Feb 27, 2018 at 05:39:38PM -0500, Steven Rostedt wrote: > On Tue, 27 Feb 2018 17:35:27 +0800 > "Du, Changbin" wrote: > > > > From the tracing perspective: > > > > > > Acked-by: Steven Rostedt (VMware) > > > > > > -- Steve > > > > > Hi Steve, will you pick this or someoneelse? > > I

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-14 Thread Steven Rostedt
[ Resending due to typo in LKML address ] On Wed, 14 Feb 2018 10:40:38 +0800 changbin...@intel.com wrote: > From: Changbin Du > > The type of state is signed int, convert it to unsigned int looks weird. > (-1 become 4294967295) >932.123 power:cpu_idle:state=1

Re: [PATCH v2] tracing/power: Polish the tracepoints cpu_idle and cpu_frequency

2018-02-14 Thread Steven Rostedt
[ Resending due to typo in LKML address ] On Wed, 14 Feb 2018 10:40:38 +0800 changbin...@intel.com wrote: > From: Changbin Du > > The type of state is signed int, convert it to unsigned int looks weird. > (-1 become 4294967295) >932.123 power:cpu_idle:state=1 cpu_id=0) >932.125