• Namhyung Kim's avatar
    perf stat: Aggregate events using evsel->stats->aggr · f976bc6b
    Namhyung Kim authored
    Add a logic to aggregate counter values to the new evsel->stats->aggr.
    This is not used yet so shadow stats are not updated.  But later patch
    will convert the existing code to use it.
    
    With that, we don't need to handle AGGR_GLOBAL specially anymore.  It
    can use the same logic with counts, prev_counts and aggr_counts.
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Michael Petlan <mpetlan@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
    Link: https://lore.kernel.org/r/20221018020227.85905-10-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    f976bc6b
builtin-stat.c 72 KB