/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM_VAR #ifdef CONFIG_PERF_EVENTS #include "stages/stage6_event_callback.h" #undef __perf_count #define __perf_count(c) … #undef __perf_task #define __perf_task(t) … #undef DECLARE_EVENT_CLASS #define DECLARE_EVENT_CLASS … /* * This part is compiled out, it is only here as a build time check * to make sure that if the tracepoint handling changes, the * perf probe will fail to compile unless it too is updated. */ #undef DEFINE_EVENT #define DEFINE_EVENT … #undef DEFINE_EVENT_PRINT #define DEFINE_EVENT_PRINT … #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) #endif /* CONFIG_PERF_EVENTS */