summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 3c53ba94..9e3a362f 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -457,8 +457,20 @@ struct nvgpu_dbg_gpu_perfbuf_unmap_args {
457#define NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP \ 457#define NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP \
458 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 8, struct nvgpu_dbg_gpu_perfbuf_unmap_args) 458 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 8, struct nvgpu_dbg_gpu_perfbuf_unmap_args)
459 459
460/* Enable/disable PC Sampling */
461struct nvgpu_dbg_gpu_pc_sampling_args {
462 __u32 enable;
463 __u32 _pad0[1];
464};
465
466#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING_DISABLE 0
467#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING_ENABLE 1
468
469#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING \
470 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 9, struct nvgpu_dbg_gpu_pc_sampling_args)
471
460#define NVGPU_DBG_GPU_IOCTL_LAST \ 472#define NVGPU_DBG_GPU_IOCTL_LAST \
461 _IOC_NR(NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP) 473 _IOC_NR(NVGPU_DBG_GPU_IOCTL_PC_SAMPLING)
462#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ 474#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
463 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) 475 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args)
464 476