aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h
diff options
context:
space:
mode:
authorShow Liu <show.liu@linaro.org>2014-06-20 17:43:47 +0800
committerShow Liu <show.liu@linaro.org>2014-06-20 17:43:47 +0800
commit8571fe288b6847ecbc3675eae822cb3b4e43217e (patch)
treeb8d6432fbb319781a8de13036ef9201fcdc981a9 /drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h
parent2dbf9af9e6c8ed52dbf5f8ea1766f261dea5a08b (diff)
Added support for arndale octa config
Diffstat (limited to 'drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h')
-rw-r--r--drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h b/drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h
new file mode 100644
index 00000000000..eba94a35f1d
--- /dev/null
+++ b/drivers/gpu/arm/t6xx/kbase/src/platform/arndale/mali_linux_dvfs_trace.h
@@ -0,0 +1,69 @@
+/*
+ *
+ * (C) COPYRIGHT 2011-2012 ARM Limited. All rights reserved.
+ *
+ * This program is free software and is provided to you under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
+ *
+ * A copy of the licence is included with the program, and can also be obtained from Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#if !defined(_TRACE_MALI_DVFS_H) || defined(TRACE_HEADER_MULTI_READ)
+#define _TRACE_MALI_DVFS_H
+
+#undef TRACE_SYSTEM
+#define TRACE_SYSTEM mali_dvfs
+
+#include <linux/tracepoint.h>
+
+TRACE_EVENT(mali_dvfs_event,
+ TP_PROTO(unsigned int util, int avg),
+ TP_ARGS(util, avg),
+ TP_STRUCT__entry(
+ __field(unsigned int, utilization)
+ __field(int, avg_utilization)
+ ),
+ TP_fast_assign(
+ __entry->utilization = util;
+ __entry->avg_utilization = avg;
+ ),
+ TP_printk("utilization=%u avg=%d",
+ __entry->utilization, __entry->avg_utilization)
+);
+
+TRACE_EVENT(mali_dvfs_set_voltage,
+ TP_PROTO(unsigned int vol),
+ TP_ARGS(vol),
+ TP_STRUCT__entry(
+ __field(unsigned int, voltage)
+ ),
+ TP_fast_assign(
+ __entry->voltage = vol;
+ ),
+ TP_printk("voltage=%u", __entry->voltage)
+);
+
+TRACE_EVENT(mali_dvfs_set_clock,
+ TP_PROTO(int freq),
+ TP_ARGS(freq),
+ TP_STRUCT__entry(
+ __field(int, frequency)
+ ),
+ TP_fast_assign(
+ __entry->frequency = freq;
+ ),
+ TP_printk("frequency=%d", __entry->frequency)
+);
+
+#endif /* _TRACE_MALI_DVFS_H */
+
+#undef TRACE_INCLUDE_PATH
+#undef linux
+#define TRACE_INCLUDE_PATH MALI_KBASE_THIRDPARTY_PATH
+#undef TRACE_INCLUDE_FILE
+#define TRACE_INCLUDE_FILE mali_linux_dvfs_trace
+
+/* This part must be outside protection */
+#include <trace/define_trace.h>