summaryrefslogtreecommitdiff
path: root/kernel/trace/gpu-traces.c
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2013-02-21 17:55:28 -0800
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:53:26 -0800
commite2dba5ee5fa27dace155194163ce970c63e6fe7a (patch)
tree12fb7808f2cdd40e989b993e7a85cb0512179d35 /kernel/trace/gpu-traces.c
parent46dfd401fbd7b085ee104a6b714d0619c594f40c (diff)
trace/events: add gpu trace events
Change-Id: I0607b9c776acf61cb796b8572cf8cfb8b2dc1377 Signed-off-by: Jamie Gennis <jgennis@google.com>
Diffstat (limited to 'kernel/trace/gpu-traces.c')
-rw-r--r--kernel/trace/gpu-traces.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/trace/gpu-traces.c b/kernel/trace/gpu-traces.c
new file mode 100644
index 000000000000..a4b3f00faee3
--- /dev/null
+++ b/kernel/trace/gpu-traces.c
@@ -0,0 +1,23 @@
+/*
+ * GPU tracepoints
+ *
+ * Copyright (C) 2013 Google, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <linux/module.h>
+
+#define CREATE_TRACE_POINTS
+#include <trace/events/gpu.h>
+
+EXPORT_TRACEPOINT_SYMBOL(gpu_sched_switch);
+EXPORT_TRACEPOINT_SYMBOL(gpu_job_enqueue);