• Leo Yan's avatar
    perf kvm: Refactor overall statistics · 9c3aa1f4
    Leo Yan authored
    Currently the tool computes overall statistics when sort the results.
    This patch refactors overall statistics during events processing,
    therefore, the function update_total_coun() is not needed anymore, an
    extra benefit is we can de-couple code between the statistics and the
    sorting.
    
    This patch is not expected any functionality changes.
    Reviewed-by: default avatarJames Clark <james.clark@arm.com>
    Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: John Garry <john.g.garry@oracle.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: linux-arm-kernel@lists.infradead.org
    Link: https://lore.kernel.org/r/20230315145112.186603-2-leo.yan@linaro.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    9c3aa1f4
builtin-kvm.c 38.5 KB