summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
index 9dd6833f..4eaf9bf0 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/ctxsw_trace.h
@@ -44,6 +44,15 @@ struct channel_gk20a;
44#define NVGPU_GPU_CTXSW_TAG_LAST \ 44#define NVGPU_GPU_CTXSW_TAG_LAST \
45 NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP 45 NVGPU_GPU_CTXSW_TAG_INVALID_TIMESTAMP
46 46
47#define NVGPU_GPU_CTXSW_FILTER_ISSET(n, p) \
48 ((p)->tag_bits[(n) / 64] & (1 << ((n) & 63)))
49
50#define NVGPU_GPU_CTXSW_FILTER_SIZE (NVGPU_GPU_CTXSW_TAG_LAST + 1)
51
52struct nvgpu_gpu_ctxsw_trace_filter {
53 u64 tag_bits[(NVGPU_GPU_CTXSW_FILTER_SIZE + 63) / 64];
54};
55
47/* 56/*
48 * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here 57 * The binary format of 'struct nvgpu_gpu_ctxsw_trace_entry' introduced here
49 * should match that of 'struct nvgpu_ctxsw_trace_entry' defined in uapi 58 * should match that of 'struct nvgpu_ctxsw_trace_entry' defined in uapi