]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/trace/events/percpu.h
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM percpu
5 #if !defined(_TRACE_PERCPU_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_PERCPU_H
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(percpu_alloc_percpu
,
12 TP_PROTO(bool reserved
, bool is_atomic
, size_t size
,
13 size_t align
, void *base_addr
, int off
, void __percpu
*ptr
),
15 TP_ARGS(reserved
, is_atomic
, size
, align
, base_addr
, off
, ptr
),
18 __field( bool, reserved
)
19 __field( bool, is_atomic
)
20 __field( size_t, size
)
21 __field( size_t, align
)
22 __field( void *, base_addr
)
24 __field( void __percpu
*, ptr
)
28 __entry
->reserved
= reserved
;
29 __entry
->is_atomic
= is_atomic
;
31 __entry
->align
= align
;
32 __entry
->base_addr
= base_addr
;
37 TP_printk("reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p",
38 __entry
->reserved
, __entry
->is_atomic
,
39 __entry
->size
, __entry
->align
,
40 __entry
->base_addr
, __entry
->off
, __entry
->ptr
)
43 TRACE_EVENT(percpu_free_percpu
,
45 TP_PROTO(void *base_addr
, int off
, void __percpu
*ptr
),
47 TP_ARGS(base_addr
, off
, ptr
),
50 __field( void *, base_addr
)
52 __field( void __percpu
*, ptr
)
56 __entry
->base_addr
= base_addr
;
61 TP_printk("base_addr=%p off=%d ptr=%p",
62 __entry
->base_addr
, __entry
->off
, __entry
->ptr
)
65 TRACE_EVENT(percpu_alloc_percpu_fail
,
67 TP_PROTO(bool reserved
, bool is_atomic
, size_t size
, size_t align
),
69 TP_ARGS(reserved
, is_atomic
, size
, align
),
72 __field( bool, reserved
)
73 __field( bool, is_atomic
)
74 __field( size_t, size
)
75 __field( size_t, align
)
79 __entry
->reserved
= reserved
;
80 __entry
->is_atomic
= is_atomic
;
82 __entry
->align
= align
;
85 TP_printk("reserved=%d is_atomic=%d size=%zu align=%zu",
86 __entry
->reserved
, __entry
->is_atomic
,
87 __entry
->size
, __entry
->align
)
90 TRACE_EVENT(percpu_create_chunk
,
92 TP_PROTO(void *base_addr
),
97 __field( void *, base_addr
)
101 __entry
->base_addr
= base_addr
;
104 TP_printk("base_addr=%p", __entry
->base_addr
)
107 TRACE_EVENT(percpu_destroy_chunk
,
109 TP_PROTO(void *base_addr
),
114 __field( void *, base_addr
)
118 __entry
->base_addr
= base_addr
;
121 TP_printk("base_addr=%p", __entry
->base_addr
)
124 #endif /* _TRACE_PERCPU_H */
126 #include <trace/define_trace.h>