diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-23 13:22:29 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-23 17:48:02 -0400 |
commit | d16da3baec15b470c6cb1e1c58eadea60b8ffe83 (patch) | |
tree | 31b898bd77ff79036654f8d710b2d72322b53af5 /drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | |
parent | fb64e1f1b9c2162f521dfe3956655accb911d6a7 (diff) |
gpu: nvgpu: Add checks for tracing enabled
Add checks for all ctxsw trace functions declared in header. This
makes sure chips without tracing support continue to work.
Change-Id: Ic658a00821b589a7b770c1fde52afede02dc1c9c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1151918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h index dacc0b50..bb79331c 100644 --- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | |||
@@ -35,7 +35,6 @@ unsigned int gk20a_ctxsw_dev_poll(struct file *, struct poll_table_struct *); | |||
35 | int gk20a_ctxsw_dev_mmap(struct file *, struct vm_area_struct *); | 35 | int gk20a_ctxsw_dev_mmap(struct file *, struct vm_area_struct *); |
36 | 36 | ||
37 | int gk20a_ctxsw_trace_init(struct gk20a *); | 37 | int gk20a_ctxsw_trace_init(struct gk20a *); |
38 | int gk20a_ctxsw_trace_setup(struct gk20a *, void *ctx_ptr); | ||
39 | void gk20a_ctxsw_trace_cleanup(struct gk20a *); | 38 | void gk20a_ctxsw_trace_cleanup(struct gk20a *); |
40 | int gk20a_ctxsw_trace_write(struct gk20a *, struct nvgpu_ctxsw_trace_entry *); | 39 | int gk20a_ctxsw_trace_write(struct gk20a *, struct nvgpu_ctxsw_trace_entry *); |
41 | void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid); | 40 | void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid); |