Re: [PATCH] samples/bpf: Add program for CPU state statistics

2018-01-31 Thread Leo Yan
Hi Jesper, On Wed, Jan 31, 2018 at 10:14:27AM +0100, Jesper Dangaard Brouer wrote: > On Wed, 31 Jan 2018 02:29:59 +0800 > Leo Yan wrote: > > > CPU 0 > > State: Duration(ms) Distribution > > cstate 0 : 47555|* | > > cstate 1

Re: [PATCH] samples/bpf: Add program for CPU state statistics

2018-01-31 Thread Leo Yan
Hi Jesper, On Wed, Jan 31, 2018 at 10:14:27AM +0100, Jesper Dangaard Brouer wrote: > On Wed, 31 Jan 2018 02:29:59 +0800 > Leo Yan wrote: > > > CPU 0 > > State: Duration(ms) Distribution > > cstate 0 : 47555|* | > > cstate 1 : 0|

Re: [PATCH] samples/bpf: Add program for CPU state statistics

2018-01-31 Thread Jesper Dangaard Brouer
On Wed, 31 Jan 2018 02:29:59 +0800 Leo Yan wrote: > CPU 0 > State: Duration(ms) Distribution > cstate 0 : 47555|* | > cstate 1 : 0|| > cstate 2 : 0|

Re: [PATCH] samples/bpf: Add program for CPU state statistics

2018-01-31 Thread Jesper Dangaard Brouer
On Wed, 31 Jan 2018 02:29:59 +0800 Leo Yan wrote: > CPU 0 > State: Duration(ms) Distribution > cstate 0 : 47555|* | > cstate 1 : 0|| > cstate 2 : 0|

[PATCH] samples/bpf: Add program for CPU state statistics

2018-01-30 Thread Leo Yan
CPU is active when have running tasks on it and CPUFreq governor can select different operating points (OPP) according to different workload; we use 'pstate' to present CPU state which have running tasks with one specific OPP. On the other hand, CPU is idle which only idle task on it, CPUIdle

[PATCH] samples/bpf: Add program for CPU state statistics

2018-01-30 Thread Leo Yan
CPU is active when have running tasks on it and CPUFreq governor can select different operating points (OPP) according to different workload; we use 'pstate' to present CPU state which have running tasks with one specific OPP. On the other hand, CPU is idle which only idle task on it, CPUIdle