1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM 9p
5 #if !defined(LTTNG_TRACE_9P_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_9P_H
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/version.h>
11 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
12 LTTNG_TRACEPOINT_EVENT(9p_client_req
,
14 TP_PROTO(struct p9_client
*clnt
, int8_t type
, int tag
),
16 TP_ARGS(clnt
, type
, tag
),
19 ctf_integer_hex(void *, clnt
, clnt
)
20 ctf_integer(u8
, type
, type
)
21 ctf_integer(u32
, tag
, tag
)
25 LTTNG_TRACEPOINT_EVENT(9p_client_res
,
27 TP_PROTO(struct p9_client
*clnt
, int8_t type
, int tag
, int err
),
29 TP_ARGS(clnt
, type
, tag
, err
),
32 ctf_integer_hex(void *, clnt
, clnt
)
33 ctf_integer(u8
, type
, type
)
34 ctf_integer(u32
, tag
, tag
)
35 ctf_integer(u32
, err
, err
)
39 LTTNG_TRACEPOINT_EVENT(9p_protocol_dump
,
41 TP_PROTO(struct p9_client
*clnt
, struct p9_fcall
*pdu
),
46 ctf_integer_hex(void *, clnt
, clnt
)
47 ctf_integer(u8
, type
, pdu
->id
)
48 ctf_integer(u16
, tag
, pdu
->tag
)
49 ctf_array(unsigned char, line
, pdu
->sdata
, P9_PROTO_DUMP_SZ
)
54 #endif /* LTTNG_TRACE_9P_H */
56 /* This part must be outside protection */
57 #include <probes/define_trace.h>
This page took 0.0703819999999999 seconds and 4 git commands to generate.