From: Jan Kara on
CC: dri-devel(a)lists.sourceforge.net
Signed-off-by: Jan Kara <jack(a)suse.cz>
---
drivers/gpu/drm/Kconfig | 9 +++++++++
drivers/gpu/drm/i915/i915_trace.h | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 305c590..bce8013 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -124,6 +124,15 @@ config DRM_I915_KMS
the driver to bind to PCI devices, which precludes loading things
like intelfb.

+config DRM_I915_TRACER
+ bool "Enable tracing of i915 driver"
+ depends on DRM_I915 && EVENT_TRACING
+ help
+ Say Y here to make i915 driver provide trace points in functions
+ handling irqs, dmas, and gem.
+
+ If unsure, say N.
+
endchoice

config DRM_MGA
diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h
index 01840d9..fdb59c2 100644
--- a/drivers/gpu/drm/i915/i915_trace.h
+++ b/drivers/gpu/drm/i915/i915_trace.h
@@ -3,6 +3,8 @@

#include <linux/stringify.h>
#include <linux/types.h>
+#undef TRACE_CONFIG
+#define TRACE_CONFIG CONFIG_DRM_I915_TRACER
#include <linux/tracepoint.h>

#include <drm/drmP.h>
--
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/