@@ -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
@@ -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>