From 779324a9b98d37b6d8b443b682e4f5dc608cb1ef Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 17 Nov 2011 13:11:21 +0200 Subject: video: tegra: host: Add syncpt value to traces Add current values of sync points to sync point read and wait IOCTL's. Change-Id: I479a66e283b47867ed13685b75c1858b4fb65c2d Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/80006 Reviewed-by: Simone Willett Tested-by: Simone Willett --- include/trace/events/nvhost.h | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'include/trace') diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index 6c266b9f2ea4..1e28559c9287 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -3,7 +3,7 @@ * * Nvhost event logging to ftrace. * - * Copyright (c) 2010-2011, NVIDIA Corporation. + * Copyright (c) 2010-2012, NVIDIA Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -291,40 +291,47 @@ TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_incr, ); TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_read, - TP_PROTO(u32 id), + TP_PROTO(u32 id, u32 value), - TP_ARGS(id), + TP_ARGS(id, value), TP_STRUCT__entry( __field(u32, id); + __field(u32, value); ), TP_fast_assign( __entry->id = id; + __entry->value = value; ), - TP_printk("id=%d", __entry->id) + TP_printk("id=%d, value=%d", __entry->id, __entry->value) ); TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_wait, - TP_PROTO(u32 id, u32 threshold, s32 timeout), + TP_PROTO(u32 id, u32 threshold, s32 timeout, u32 value, int err), - TP_ARGS(id, threshold, timeout), + TP_ARGS(id, threshold, timeout, value, err), TP_STRUCT__entry( __field(u32, id) __field(u32, threshold) __field(s32, timeout) + __field(u32, value) + __field(int, err) ), TP_fast_assign( __entry->id = id; __entry->threshold = threshold; __entry->timeout = timeout; + __entry->value = value; + __entry->err = err; ), - TP_printk("id=%u, threshold=%u, timeout=%d", - __entry->id, __entry->threshold, __entry->timeout) + TP_printk("id=%u, threshold=%u, timeout=%d, value=%u, err=%d", + __entry->id, __entry->threshold, __entry->timeout, + __entry->value, __entry->err) ); TRACE_EVENT(nvhost_ioctl_ctrl_module_regrdwr, @@ -370,21 +377,24 @@ TRACE_EVENT(nvhost_channel_submitted, ); TRACE_EVENT(nvhost_channel_submit_complete, - TP_PROTO(const char *name, int count), + TP_PROTO(const char *name, int count, u32 thresh), - TP_ARGS(name, count), + TP_ARGS(name, count, thresh), TP_STRUCT__entry( __field(const char *, name) __field(int, count) + __field(u32, thresh) ), TP_fast_assign( __entry->name = name; __entry->count = count; + __entry->thresh = thresh; ), - TP_printk("name=%s, count=%d", __entry->name, __entry->count) + TP_printk("name=%s, count=%d, thresh=%d", + __entry->name, __entry->count, __entry->thresh) ); TRACE_EVENT(nvhost_wait_cdma, -- cgit v1.2.3