1 /* SPDX-License-Identifier: GPL-2.0+ */
4 #define TRACE_SYSTEM vas
6 #if !defined(_VAS_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
9 #include <linux/tracepoint.h>
10 #include <linux/sched.h>
13 TRACE_EVENT( vas_rx_win_open
,
15 TP_PROTO(struct task_struct
*tsk
,
18 struct vas_rx_win_attr
*rxattr
),
20 TP_ARGS(tsk
, vasid
, cop
, rxattr
),
23 __field(struct task_struct
*, tsk
)
27 __field(struct vas_rx_win_attr
*, rxattr
)
28 __field(int, lnotify_lpid
)
29 __field(int, lnotify_pid
)
30 __field(int, lnotify_tid
)
34 __entry
->pid
= tsk
->pid
;
35 __entry
->vasid
= vasid
;
37 __entry
->lnotify_lpid
= rxattr
->lnotify_lpid
;
38 __entry
->lnotify_pid
= rxattr
->lnotify_pid
;
39 __entry
->lnotify_tid
= rxattr
->lnotify_tid
;
42 TP_printk("pid=%d, vasid=%d, cop=%d, lpid=%d, pid=%d, tid=%d",
43 __entry
->pid
, __entry
->vasid
, __entry
->cop
,
44 __entry
->lnotify_lpid
, __entry
->lnotify_pid
,
48 TRACE_EVENT( vas_tx_win_open
,
50 TP_PROTO(struct task_struct
*tsk
,
53 struct vas_tx_win_attr
*txattr
),
55 TP_ARGS(tsk
, vasid
, cop
, txattr
),
58 __field(struct task_struct
*, tsk
)
62 __field(struct vas_tx_win_attr
*, txattr
)
68 __entry
->pid
= tsk
->pid
;
69 __entry
->vasid
= vasid
;
71 __entry
->lpid
= txattr
->lpid
;
72 __entry
->pidr
= txattr
->pidr
;
75 TP_printk("pid=%d, vasid=%d, cop=%d, lpid=%d, pidr=%d",
76 __entry
->pid
, __entry
->vasid
, __entry
->cop
,
77 __entry
->lpid
, __entry
->pidr
)
80 TRACE_EVENT( vas_paste_crb
,
82 TP_PROTO(struct task_struct
*tsk
,
83 struct vas_window
*win
),
88 __field(struct task_struct
*, tsk
)
89 __field(struct vas_window
*, win
)
93 __field(unsigned long, paste_kaddr
)
97 __entry
->pid
= tsk
->pid
;
98 __entry
->vasid
= win
->vinst
->vas_id
;
99 __entry
->winid
= win
->winid
;
100 __entry
->paste_kaddr
= (unsigned long)win
->paste_kaddr
103 TP_printk("pid=%d, vasid=%d, winid=%d, paste_kaddr=0x%016lx\n",
104 __entry
->pid
, __entry
->vasid
, __entry
->winid
,
105 __entry
->paste_kaddr
)
108 #endif /* _VAS_TRACE_H */
110 #undef TRACE_INCLUDE_PATH
111 #define TRACE_INCLUDE_PATH ../../arch/powerpc/platforms/powernv
112 #define TRACE_INCLUDE_FILE vas-trace
113 #include <trace/define_trace.h>