Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / include / trace / events / ipi.h
blob0be71dad6ec03a8659b0160b7b021e6c8d43d647
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM ipi
5 #if !defined(_TRACE_IPI_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_IPI_H
8 #include <linux/tracepoint.h>
10 /**
11 * ipi_raise - called when a smp cross call is made
13 * @mask: mask of recipient CPUs for the IPI
14 * @reason: string identifying the IPI purpose
16 * It is necessary for @reason to be a static string declared with
17 * __tracepoint_string.
19 TRACE_EVENT(ipi_raise,
21 TP_PROTO(const struct cpumask *mask, const char *reason),
23 TP_ARGS(mask, reason),
25 TP_STRUCT__entry(
26 __bitmask(target_cpus, nr_cpumask_bits)
27 __field(const char *, reason)
30 TP_fast_assign(
31 __assign_bitmask(target_cpus, cpumask_bits(mask), nr_cpumask_bits);
32 __entry->reason = reason;
35 TP_printk("target_mask=%s (%s)", __get_bitmask(target_cpus), __entry->reason)
38 DECLARE_EVENT_CLASS(ipi_handler,
40 TP_PROTO(const char *reason),
42 TP_ARGS(reason),
44 TP_STRUCT__entry(
45 __field(const char *, reason)
48 TP_fast_assign(
49 __entry->reason = reason;
52 TP_printk("(%s)", __entry->reason)
55 /**
56 * ipi_entry - called immediately before the IPI handler
58 * @reason: string identifying the IPI purpose
60 * It is necessary for @reason to be a static string declared with
61 * __tracepoint_string, ideally the same as used with trace_ipi_raise
62 * for that IPI.
64 DEFINE_EVENT(ipi_handler, ipi_entry,
66 TP_PROTO(const char *reason),
68 TP_ARGS(reason)
71 /**
72 * ipi_exit - called immediately after the IPI handler returns
74 * @reason: string identifying the IPI purpose
76 * It is necessary for @reason to be a static string declared with
77 * __tracepoint_string, ideally the same as used with trace_ipi_raise for
78 * that IPI.
80 DEFINE_EVENT(ipi_handler, ipi_exit,
82 TP_PROTO(const char *reason),
84 TP_ARGS(reason)
87 #endif /* _TRACE_IPI_H */
89 /* This part must be outside protection */
90 #include <trace/define_trace.h>