mirror_ubuntu-kernels/tools/lib/perf/include/perf
Namhyung Kim 89e3106fa2 libperf: Handle read format in perf_evsel__read()
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>
2022-08-19 15:56:27 -03:00
..
bpf_perf.h perf util: Move bpf_perf definitions to a libperf header 2021-04-29 10:30:58 -03:00
core.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
cpumap.h perf cpumap: Const map for max() 2022-08-19 12:26:58 -03:00
event.h libperf: Handle read format in perf_evsel__read() 2022-08-19 15:56:27 -03:00
evlist.h libperf: Adopt evlist__set_leader() from tools/perf as perf_evlist__set_leader() 2021-07-09 14:04:32 -03:00
evsel.h libperf: Handle read format in perf_evsel__read() 2022-08-19 15:56:27 -03:00
mmap.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
threadmap.h libperf: Add API for allocating new thread map array 2022-02-23 14:40:23 -03:00