On Tue, 9 Apr 2024 13:06:01 +0200 Sebastian Andrzej Siewior <bige...@linutronix.de> wrote:
> among a few other things I was not aware of. > So yes, this patch is not needed since it makes no difference but I still > have trace points I would rather not have. > If you a clue how to deal with this properly, I am all yours. I believe you need to do it in the .c file: Can you try something like this? diff --git a/drivers/gpu/drm/i915/i915_trace_points.c b/drivers/gpu/drm/i915/i915_trace_points.c index 463a7177997c..ad0de6110133 100644 --- a/drivers/gpu/drm/i915/i915_trace_points.c +++ b/drivers/gpu/drm/i915/i915_trace_points.c @@ -8,7 +8,7 @@ #include "i915_drv.h" -#ifndef __CHECKER__ +#if !DEFINED(__CHECKER__) && !DEFINED(CONFIG_PREEMPT_RT) #define CREATE_TRACE_POINTS #include "i915_trace.h" #endif Or is it just that one set of trace events that is an issue? Could you just do: #if defined(CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS) && !defined(CONFIG_PREEMPT_RT) ? -- Steve