1 // SPDX-FileCopyrightText: 2018 Michael Jeanson <mjeanson@efficios.com>
3 // SPDX-License-Identifier: GPL-2.0-only
6 #define TRACE_SYSTEM 9p
8 #if !defined(LTTNG_TRACE_9P_H) || defined(TRACE_HEADER_MULTI_READ)
9 #define LTTNG_TRACE_9P_H
11 #include <lttng/tracepoint-event.h>
12 #include <lttng/kernel-version.h>
14 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
15 LTTNG_TRACEPOINT_EVENT(9p_client_req
,
17 TP_PROTO(struct p9_client
*clnt
, int8_t type
, int tag
),
19 TP_ARGS(clnt
, type
, tag
),
22 ctf_integer_hex(void *, clnt
, clnt
)
23 ctf_integer(u8
, type
, type
)
24 ctf_integer(u32
, tag
, tag
)
28 LTTNG_TRACEPOINT_EVENT(9p_client_res
,
30 TP_PROTO(struct p9_client
*clnt
, int8_t type
, int tag
, int err
),
32 TP_ARGS(clnt
, type
, tag
, err
),
35 ctf_integer_hex(void *, clnt
, clnt
)
36 ctf_integer(u8
, type
, type
)
37 ctf_integer(u32
, tag
, tag
)
38 ctf_integer(u32
, err
, err
)
42 LTTNG_TRACEPOINT_EVENT(9p_protocol_dump
,
44 TP_PROTO(struct p9_client
*clnt
, struct p9_fcall
*pdu
),
49 ctf_integer_hex(void *, clnt
, clnt
)
50 ctf_integer(u8
, type
, pdu
->id
)
51 ctf_integer(u16
, tag
, pdu
->tag
)
52 ctf_array(unsigned char, line
, pdu
->sdata
, P9_PROTO_DUMP_SZ
)
57 #endif /* LTTNG_TRACE_9P_H */
59 /* This part must be outside protection */
60 #include <lttng/define_trace.h>
This page took 0.031612 seconds and 5 git commands to generate.