mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: abstract submit profiling
Add gk20a_fifo_profile_snapshot() to store the submit time in a profiling entry that was acquired from gk20a_fifo_profile_acquire(). Also get rid of ifdef CONFIG_DEBUG_FS by stubbing the acquire and free functions when debugfs is not enabled. This reduces some cyclomatic complexity in the submit path. Jira NVGPU-708 Change-Id: I39829a6475cfe3aa582620219e420bde62228e52 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1729545 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
45d0a9c711
commit
cae514120b
@@ -349,6 +349,21 @@ bool gk20a_is_fault_engine_subid_gpc(struct gk20a *g, u32 engine_subid);
|
||||
struct fifo_profile_gk20a *gk20a_fifo_profile_acquire(struct gk20a *g);
|
||||
void gk20a_fifo_profile_release(struct gk20a *g,
|
||||
struct fifo_profile_gk20a *profile);
|
||||
void gk20a_fifo_profile_snapshot(struct fifo_profile_gk20a *profile, int idx);
|
||||
#else
|
||||
static inline struct fifo_profile_gk20a *
|
||||
gk20a_fifo_profile_acquire(struct gk20a *g)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline void gk20a_fifo_profile_release(struct gk20a *g,
|
||||
struct fifo_profile_gk20a *profile)
|
||||
{
|
||||
}
|
||||
static inline void gk20a_fifo_profile_snapshot(
|
||||
struct fifo_profile_gk20a *profile, int idx)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void gk20a_dump_channel_status_ramfc(struct gk20a *g,
|
||||
|
||||
Reference in New Issue
Block a user