aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-08-19 00:36:44 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-08-19 18:56:56 +0000
commitf52679b78877f17e95a317e18a4c9c46cc3d845a (patch)
tree7cc9aee80b0470248775ae6f08f18e92a4c44099 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentlibperf: Add a test case for read formats (diff)
downloadkernel-f52679b78877f17e95a317e18a4c9c46cc3d845a.tar.gz
kernel-f52679b78877f17e95a317e18a4c9c46cc3d845a.zip
perf tools: Support reading PERF_FORMAT_LOST
The recent kernel added lost count can be read from either read(2) or ring buffer data with PERF_SAMPLE_READ. As it's a variable length data we need to access it according to the format info. But for perf tools use cases, PERF_FORMAT_ID is always set. So we can only check PERF_FORMAT_LOST bit to determine the data format. Add sample_read_value_size() and next_sample_read_value() helpers to make it a bit easier to access. Use them in all places where it reads the struct sample_read_value. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions