Re: [PATCH 4/4] perf bench: Fix div-by-zero if runtime is zero
From: Arnaldo Carvalho de Melo
Date: Mon Apr 20 2020 - 08:05:44 EST
Em Mon, Apr 20, 2020 at 11:05:26AM +0200, Jiri Olsa escreveu:
> On Fri, Apr 17, 2020 at 04:23:29PM +0300, Tommi Rantala wrote:
> > Fix div-by-zero if runtime is zero:
> >
> > $ perf bench futex hash --runtime=0
> > # Running 'futex/hash' benchmark:
> > Run summary [PID 12090]: 4 threads, each operating on 1024 [private] futexes for 0 secs.
> > Floating point exception (core dumped)
> >
> > Signed-off-by: Tommi Rantala <tommi.t.rantala@xxxxxxxxx>
>
> Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>
Thanks, applied,
- Arnaldo