On Sun, Jan 06, 2019 at 10:02:18PM +0800, Jin, Yao wrote:
SNIP
> > ---
> > diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
> > index acfd48db52dd..c322cb271180 100644
> > --- a/tools/perf/builtin-stat.c
> > +++ b/tools/perf/builtin-stat.c
> > @@ -583,6 +583,14 @@ static int __r
On 1/6/2019 9:25 PM, Jiri Olsa wrote:
On Sat, Jan 05, 2019 at 11:16:40AM +0800, Jin, Yao wrote:
On 1/4/2019 8:54 PM, Jiri Olsa wrote:
On Fri, Jan 04, 2019 at 10:28:17AM +0800, Jin Yao wrote:
Following test shows the stat keeps running even if no longer
task to monitor (mgen exits at ~5s).
On Sat, Jan 05, 2019 at 11:16:40AM +0800, Jin, Yao wrote:
>
>
> On 1/4/2019 8:54 PM, Jiri Olsa wrote:
> > On Fri, Jan 04, 2019 at 10:28:17AM +0800, Jin Yao wrote:
> > > Following test shows the stat keeps running even if no longer
> > > task to monitor (mgen exits at ~5s).
> > >
> > > perf stat
On 1/4/2019 8:54 PM, Jiri Olsa wrote:
On Fri, Jan 04, 2019 at 10:28:17AM +0800, Jin Yao wrote:
Following test shows the stat keeps running even if no longer
task to monitor (mgen exits at ~5s).
perf stat -e cycles -p `pgrep mgen` -I1000 -- sleep 10
time counts unit e
On Fri, Jan 04, 2019 at 10:28:17AM +0800, Jin Yao wrote:
> Following test shows the stat keeps running even if no longer
> task to monitor (mgen exits at ~5s).
>
> perf stat -e cycles -p `pgrep mgen` -I1000 -- sleep 10
> time counts unit events
> 1.000148916 1,308
Following test shows the stat keeps running even if no longer
task to monitor (mgen exits at ~5s).
perf stat -e cycles -p `pgrep mgen` -I1000 -- sleep 10
time counts unit events
1.000148916 1,308,365,864 cycles
2.000379171 1,297,269,875 cycles
Em Mon, Oct 22, 2018 at 11:30:15AM +0200, Jiri Olsa escreveu:
> Adding the check for tasks we monitor via -p/-t options,
> and finish stat if there's no longer task to monitor.
Wonder if instead of doing all those scnprintf, etc, we couldn't have a
perf ring buffer with a dummy event and then ask
Adding the check for tasks we monitor via -p/-t options,
and finish stat if there's no longer task to monitor.
Cc: Jin Yao
Requested-by: Stephane Eranian
Link: http://lkml.kernel.org/n/tip-dfqvnvz0oqu5zg149aquz...@git.kernel.org
Signed-off-by: Jiri Olsa
---
tools/perf/builtin-stat.c | 24 +
8 matches
Mail list logo