ACPI / LPSS: Make acpi_lpss_find_device() also find PCI devices
[linux/fpc-iii.git] / arch / x86 / include / asm / trace / fpu.h
blob069c04be15076075757522e24b27251e68d9be41
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM x86_fpu
5 #if !defined(_TRACE_FPU_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_FPU_H
8 #include <linux/tracepoint.h>
10 DECLARE_EVENT_CLASS(x86_fpu,
11 TP_PROTO(struct fpu *fpu),
12 TP_ARGS(fpu),
14 TP_STRUCT__entry(
15 __field(struct fpu *, fpu)
16 __field(bool, initialized)
17 __field(u64, xfeatures)
18 __field(u64, xcomp_bv)
21 TP_fast_assign(
22 __entry->fpu = fpu;
23 __entry->initialized = fpu->initialized;
24 if (boot_cpu_has(X86_FEATURE_OSXSAVE)) {
25 __entry->xfeatures = fpu->state.xsave.header.xfeatures;
26 __entry->xcomp_bv = fpu->state.xsave.header.xcomp_bv;
29 TP_printk("x86/fpu: %p initialized: %d xfeatures: %llx xcomp_bv: %llx",
30 __entry->fpu,
31 __entry->initialized,
32 __entry->xfeatures,
33 __entry->xcomp_bv
37 DEFINE_EVENT(x86_fpu, x86_fpu_before_save,
38 TP_PROTO(struct fpu *fpu),
39 TP_ARGS(fpu)
42 DEFINE_EVENT(x86_fpu, x86_fpu_after_save,
43 TP_PROTO(struct fpu *fpu),
44 TP_ARGS(fpu)
47 DEFINE_EVENT(x86_fpu, x86_fpu_before_restore,
48 TP_PROTO(struct fpu *fpu),
49 TP_ARGS(fpu)
52 DEFINE_EVENT(x86_fpu, x86_fpu_after_restore,
53 TP_PROTO(struct fpu *fpu),
54 TP_ARGS(fpu)
57 DEFINE_EVENT(x86_fpu, x86_fpu_regs_activated,
58 TP_PROTO(struct fpu *fpu),
59 TP_ARGS(fpu)
62 DEFINE_EVENT(x86_fpu, x86_fpu_regs_deactivated,
63 TP_PROTO(struct fpu *fpu),
64 TP_ARGS(fpu)
67 DEFINE_EVENT(x86_fpu, x86_fpu_activate_state,
68 TP_PROTO(struct fpu *fpu),
69 TP_ARGS(fpu)
72 DEFINE_EVENT(x86_fpu, x86_fpu_init_state,
73 TP_PROTO(struct fpu *fpu),
74 TP_ARGS(fpu)
77 DEFINE_EVENT(x86_fpu, x86_fpu_dropped,
78 TP_PROTO(struct fpu *fpu),
79 TP_ARGS(fpu)
82 DEFINE_EVENT(x86_fpu, x86_fpu_copy_src,
83 TP_PROTO(struct fpu *fpu),
84 TP_ARGS(fpu)
87 DEFINE_EVENT(x86_fpu, x86_fpu_copy_dst,
88 TP_PROTO(struct fpu *fpu),
89 TP_ARGS(fpu)
92 DEFINE_EVENT(x86_fpu, x86_fpu_xstate_check_failed,
93 TP_PROTO(struct fpu *fpu),
94 TP_ARGS(fpu)
97 #undef TRACE_INCLUDE_PATH
98 #define TRACE_INCLUDE_PATH asm/trace/
99 #undef TRACE_INCLUDE_FILE
100 #define TRACE_INCLUDE_FILE fpu
101 #endif /* _TRACE_FPU_H */
103 /* This part must be outside protection */
104 #include <trace/define_trace.h>