mtd: rawnand: fsl_elbc: Implement RNDOUT command
[linux/fpc-iii.git] / include / trace / events / percpu.h
blobdf112a64f6c9b4cf510bb974d39108e17617a3e7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
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),
17 TP_STRUCT__entry(
18 __field( bool, reserved )
19 __field( bool, is_atomic )
20 __field( size_t, size )
21 __field( size_t, align )
22 __field( void *, base_addr )
23 __field( int, off )
24 __field( void __percpu *, ptr )
27 TP_fast_assign(
28 __entry->reserved = reserved;
29 __entry->is_atomic = is_atomic;
30 __entry->size = size;
31 __entry->align = align;
32 __entry->base_addr = base_addr;
33 __entry->off = off;
34 __entry->ptr = ptr;
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),
49 TP_STRUCT__entry(
50 __field( void *, base_addr )
51 __field( int, off )
52 __field( void __percpu *, ptr )
55 TP_fast_assign(
56 __entry->base_addr = base_addr;
57 __entry->off = off;
58 __entry->ptr = ptr;
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),
71 TP_STRUCT__entry(
72 __field( bool, reserved )
73 __field( bool, is_atomic )
74 __field( size_t, size )
75 __field( size_t, align )
78 TP_fast_assign(
79 __entry->reserved = reserved;
80 __entry->is_atomic = is_atomic;
81 __entry->size = size;
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),
94 TP_ARGS(base_addr),
96 TP_STRUCT__entry(
97 __field( void *, base_addr )
100 TP_fast_assign(
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),
111 TP_ARGS(base_addr),
113 TP_STRUCT__entry(
114 __field( void *, base_addr )
117 TP_fast_assign(
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>