Centos-kernel-stream-9/tools/lib/perf/include
Michael Petlan fcc23d63eb libperf: Handle read format in perf_evsel__read()
Bugzilla: https://bugzilla.redhat.com/2123229

upstream
========
commit 89e3106fa25fb1b626a7123dba870159d453e785
Author: Namhyung Kim <namhyung@kernel.org>
Date: Thu Aug 18 17:36:42 2022 -0700

description
===========
The perf_counts_values should be increased to read the new lost data.
Also adjust values after read according the read format.

This supports PERF_FORMAT_GROUP which has a different data format but
it's only available for leader events.  Currently it doesn't have an API
to read sibling (member) events in the group.  But users may read the
sibling event directly.

Also reading from mmap would be disabled when the read format has ID or
LOST bit as it's not exposed via mmap.

    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Acked-by: Jiri Olsa <jolsa@kernel.org>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20220819003644.508916-3-namhyung@kernel.org
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Signed-off-by: Michael Petlan <mpetlan@redhat.com>
2022-11-14 20:26:04 +01:00
..
internal perf tools: Add machine_pid and vcpu to id_index 2022-11-14 20:25:45 +01:00
perf libperf: Handle read format in perf_evsel__read() 2022-11-14 20:26:04 +01:00