summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorShridhar Rasal <srasal@nvidia.com>2014-06-03 12:25:38 +0530
committerRiham Haidar <rhaidar@nvidia.com>2014-06-23 22:50:34 -0700
commite2bd1bf8563b0977b60ddd3e19b9d2df4dc0d7e2 (patch)
tree84c6541e7b9589b7903184485c56462577cdc169 /drivers/staging
parent6dd2efb24c3c23bd365f54bab20e0b3811ca6067 (diff)
sync: add current value to sync dump
Currently, we print only syncpoint id and thresh value on sync timeout. Also include current value in dump. Bug 200007874 Change-Id: I6910e51aa10a5dc9f5d224b3251c3fb1ea6794d9 Reviewed-on: http://git-master/r/418136 (cherry picked from commit 41d63f2a1c48faeee4d9444818ada132968b7bc8) Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-on: http://git-master/r/418739 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/sync.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index f0df89ec9b35..60af5a157a18 100644
--- a/drivers/staging/android/sync.c
+++ b/drivers/staging/android/sync.c
@@ -849,13 +849,21 @@ static void sync_fence_dump(struct sync_fence *fence)
{
struct sync_pt *pt;
char val[32];
+ char current_val[64];
list_for_each_entry(pt, &fence->pt_list_head, pt_list) {
val[0] = '\0';
+ current_val[0] = '\0';
if (pt->parent->ops->pt_value_str)
pt->parent->ops->pt_value_str(pt, val, sizeof(val));
- pr_info("name=%s, value=%s\n", pt->parent->name, val);
+ if (pt->parent->ops->timeline_value_str)
+ pt->parent->ops->timeline_value_str(pt->parent,
+ current_val,
+ sizeof(current_val));
+
+ pr_info("name=%s, current value=%s waiting value=%s\n",
+ pt->parent->name, current_val, val);
}
}