summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/nvmap/nvmap_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap_ioctl.c')
-rw-r--r--drivers/video/tegra/nvmap/nvmap_ioctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_ioctl.c b/drivers/video/tegra/nvmap/nvmap_ioctl.c
index d1acc7014622..9d1eae5c2487 100644
--- a/drivers/video/tegra/nvmap/nvmap_ioctl.c
+++ b/drivers/video/tegra/nvmap/nvmap_ioctl.c
@@ -883,8 +883,12 @@ static int do_cache_maint(struct cache_maint_op *cache_work)
nvmap_stats_inc(NS_CFLUSH_DONE, cache_maint_inner_threshold);
else
nvmap_stats_inc(NS_CFLUSH_DONE, pend - pstart);
- if (client)
- trace_cache_maint(client, h, pstart, pend, op);
+ trace_nvmap_cache_maint(client, h, pstart, pend, op, pend - pstart);
+ trace_nvmap_cache_flush(pend - pstart,
+ nvmap_stats_read(NS_ALLOC),
+ nvmap_stats_read(NS_CFLUSH_RQ),
+ nvmap_stats_read(NS_CFLUSH_DONE));
+
wmb();
if (h->flags == NVMAP_HANDLE_UNCACHEABLE ||
h->flags == NVMAP_HANDLE_WRITE_COMBINE || pstart == pend)