From b9feba6efc48743da70e474d40b7889a7efb4ba5 Mon Sep 17 00:00:00 2001 From: David Nieto Date: Tue, 21 Feb 2017 15:36:49 -0800 Subject: gpu: nvgpu: in-kernel kickoff profiling Add a debugfs interface to profile the kickoff ioctl it provides the probability distribution and separates the information between time spent in: the full ioctl, the kickoff function, the amount of time spent in job tracking and the amount of time doing pushbuffer copies JIRA: EVLR-1003 Change-Id: I9888b114c3fbced61b1cf134c79f7a8afce15f56 Signed-off-by: David Nieto Reviewed-on: http://git-master/r/1308997 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index d9913cd7..42550632 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -33,6 +33,7 @@ struct gk20a; struct gr_gk20a; struct dbg_session_gk20a; struct gk20a_fence; +struct fifo_profile_gk20a; #include "channel_sync_gk20a.h" @@ -344,7 +345,8 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, u32 flags, struct nvgpu_fence *fence, struct gk20a_fence **fence_out, - bool force_need_sync_fence); + bool force_need_sync_fence, + struct fifo_profile_gk20a *profile); int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c, struct nvgpu_alloc_gpfifo_ex_args *args); -- cgit v1.2.2