• Leo Yan's avatar
    perf hist: Add 'kvm_info' field in histograms entry · ebf39d29
    Leo Yan authored
    __hists__add_entry() creates a temporary entry and compare it with
    existed histograms entries, if any existed entry equals to the
    temporary entry it skips to allocation to avoid duplication.
    
    The problem for support KVM event in histograms is it doesn't contain
    any info to identify KVM event and can be used for comparison entries.
    
    This patch adds 'kvm_info' field in the histograms entry which contains
    the KVM event's key, this identifier will be used for comparison
    histograms entries in later change.
    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: James Clark <james.clark@arm.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>
    ebf39d29
hist.c 68.3 KB