diff options
author | Krishna Reddy <vdumpa@nvidia.com> | 2012-10-10 19:05:23 -0700 |
---|---|---|
committer | Mrutyunjay Sawant <msawant@nvidia.com> | 2012-10-12 03:30:09 -0700 |
commit | 4f2d950ae1e63b7824fd001131d0a3a80e82d788 (patch) | |
tree | 61836ef6ab88b6223cacd5c6ad5638274bb1bb98 /drivers/video/tegra/nvmap/nvmap.c | |
parent | 34c5001c58e8bea06d0081763e3c18d0db315233 (diff) |
video: tegra: nvmap: Add pin, unpin trace events
Change-Id: I62deda9d607476e3dc82428b872ad1a3e396e37e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/143421
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap.c')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap.c b/drivers/video/tegra/nvmap/nvmap.c index 5209c412e47d..c78aad412adf 100644 --- a/drivers/video/tegra/nvmap/nvmap.c +++ b/drivers/video/tegra/nvmap/nvmap.c @@ -33,6 +33,7 @@ #include <mach/iovmm.h> #include <linux/nvmap.h> +#include <trace/events/nvmap.h> #include "nvmap.h" #include "nvmap_mru.h" @@ -86,6 +87,7 @@ static int pin_locked(struct nvmap_client *client, struct nvmap_handle *h) h->pgalloc.area = area; } } + trace_handle_pin(client, h, atomic_read(&h->pin)); nvmap_mru_unlock(client->share); return 0; } @@ -99,6 +101,7 @@ static int handle_unpin(struct nvmap_client *client, nvmap_mru_lock(client->share); if (atomic_read(&h->pin) == 0) { + trace_handle_unpin_error(client, h, atomic_read(&h->pin)); nvmap_err(client, "%s unpinning unpinned handle %p\n", current->group_leader->comm, h); nvmap_mru_unlock(client->share); @@ -124,6 +127,7 @@ static int handle_unpin(struct nvmap_client *client, } } + trace_handle_unpin(client, h, atomic_read(&h->pin)); nvmap_mru_unlock(client->share); nvmap_handle_put(h); return ret; |