Re: [PATCH 1/2] perf stat: refactor __run_perf_stat common code

From: Leo Yan
Date: Mon Aug 01 2022 - 07:27:41 EST


On Fri, Jul 29, 2022 at 04:12:43PM +0000, Adrián Herrera Arcila wrote:
> This extracts common code from the branches of the forks if-then-else.
> enable_counters(), which was at the beginning of both branches of the
> conditional, is now unconditional; evlist__start_workload is extracted
> to a different if, which enables making the common clocking code
> unconditional.
>
> Signed-off-by: Adrián Herrera Arcila <adrian.herrera@xxxxxxx>

Reviewed-by: Leo Yan <leo.yan@xxxxxxxxxx>