Fix: scsi: sd: Atomic write support added in 6.11-rc1
[lttng-modules.git] / include / instrumentation / events / 9p.h
1 // SPDX-FileCopyrightText: 2018 Michael Jeanson <mjeanson@efficios.com>
2 //
3 // SPDX-License-Identifier: GPL-2.0-only
4
5 #undef TRACE_SYSTEM
6 #define TRACE_SYSTEM 9p
7
8 #if !defined(LTTNG_TRACE_9P_H) || defined(TRACE_HEADER_MULTI_READ)
9 #define LTTNG_TRACE_9P_H
10
11 #include <lttng/tracepoint-event.h>
12 #include <lttng/kernel-version.h>
13
14 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
15 LTTNG_TRACEPOINT_EVENT(9p_client_req,
16
17 TP_PROTO(struct p9_client *clnt, int8_t type, int tag),
18
19 TP_ARGS(clnt, type, tag),
20
21 TP_FIELDS(
22 ctf_integer_hex(void *, clnt, clnt)
23 ctf_integer(u8, type, type)
24 ctf_integer(u32, tag, tag)
25 )
26 )
27
28 LTTNG_TRACEPOINT_EVENT(9p_client_res,
29
30 TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
31
32 TP_ARGS(clnt, type, tag, err),
33
34 TP_FIELDS(
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)
39 )
40 )
41
42 LTTNG_TRACEPOINT_EVENT(9p_protocol_dump,
43
44 TP_PROTO(struct p9_client *clnt, struct p9_fcall *pdu),
45
46 TP_ARGS(clnt, pdu),
47
48 TP_FIELDS(
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)
53 )
54 )
55 #endif
56
57 #endif /* LTTNG_TRACE_9P_H */
58
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.