1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM gic_v3 4 #define TRACE_INCLUDE_PATH trace/hooks 5 #if !defined(_TRACE_HOOK_GIC_V3_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define _TRACE_HOOK_GIC_V3_H 7 #include <linux/tracepoint.h> 8 #include <trace/hooks/vendor_hooks.h> 9 /* 10 * Following tracepoints are not exported in tracefs and provide a 11 * mechanism for vendor modules to hook and extend functionality 12 */ 13 #ifdef __GENKSYMS__ 14 struct cpumask; 15 struct irq_data; 16 #else 17 /* struct cpumask */ 18 #include <linux/cpumask.h> 19 /* struct irq_data */ 20 #include <linux/irq.h> 21 #endif /* __GENKSYMS__ */ 22 DECLARE_RESTRICTED_HOOK(android_rvh_gic_v3_set_affinity, 23 TP_PROTO(struct irq_data *d, const struct cpumask *mask_val, 24 u64 *affinity, bool force, void __iomem *base), 25 TP_ARGS(d, mask_val, affinity, force, base), 26 1); 27 28 /* macro versions of hooks are no longer required */ 29 30 #endif /* _TRACE_HOOK_GIC_V3_H */ 31 /* This part must be outside protection */ 32 #include <trace/define_trace.h> 33