[PATCH v4 04/16] perf kvm: Use subtraction for comparison metrics

Leo Yan leo.yan at linaro.org
Mon Mar 13 17:26:56 PDT 2023


On Mon, Mar 13, 2023 at 02:58:22PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Mon, Mar 13, 2023 at 07:40:06PM +0800, Leo Yan escreveu:
> > Currently the metrics comparison uses greater operator (>), it returns
> > the boolean value (0 or 1).
> > 
> > This patch changes to use subtraction as comparison result, which can
> > be used by histograms sorting.  Since the subtraction result is u64
> > type, we change the function return type from int to int64_t to avoid
> > overflow.
> 
> Not building at his point in the series:

Sorry for this!

I can reproduce the building failure, will check patches compilation one
by one and send out new patch set in today's later time.

Thanks,
Leo



More information about the linux-arm-kernel mailing list