1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
6 #if !defined(_TRACE_RPMH_H) || defined(TRACE_HEADER_MULTI_READ)
10 #define TRACE_SYSTEM rpmh
12 #include <linux/tracepoint.h>
13 #include "rpmh-internal.h"
15 TRACE_EVENT(rpmh_tx_done
,
17 TP_PROTO(struct rsc_drv
*d
, int m
, const struct tcs_request
*r
, int e
),
22 __string(name
, d
->name
)
30 __assign_str(name
, d
->name
);
32 __entry
->addr
= r
->cmds
[0].addr
;
33 __entry
->data
= r
->cmds
[0].data
;
37 TP_printk("%s: ack: tcs-m: %d addr: %#x data: %#x errno: %d",
38 __get_str(name
), __entry
->m
, __entry
->addr
, __entry
->data
,
42 TRACE_EVENT(rpmh_send_msg
,
44 TP_PROTO(struct rsc_drv
*d
, int m
, int n
, u32 h
,
45 const struct tcs_cmd
*c
),
47 TP_ARGS(d
, m
, n
, h
, c
),
50 __string(name
, d
->name
)
60 __assign_str(name
, d
->name
);
64 __entry
->addr
= c
->addr
;
65 __entry
->data
= c
->data
;
66 __entry
->wait
= c
->wait
;
69 TP_printk("%s: send-msg: tcs(m): %d cmd(n): %d msgid: %#x addr: %#x data: %#x complete: %d",
70 __get_str(name
), __entry
->m
, __entry
->n
, __entry
->hdr
,
71 __entry
->addr
, __entry
->data
, __entry
->wait
)
74 #endif /* _TRACE_RPMH_H */
76 #undef TRACE_INCLUDE_PATH
77 #define TRACE_INCLUDE_PATH .
79 #undef TRACE_INCLUDE_FILE
80 #define TRACE_INCLUDE_FILE trace-rpmh
82 #include <trace/define_trace.h>