Move headers under include/
[lttng-modules.git] / include / instrumentation / events / lttng-module / 9p.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM 9p
4
5 #if !defined(LTTNG_TRACE_9P_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_9P_H
7
8 #include <lttng/lttng-tracepoint-event.h>
9
10 LTTNG_TRACEPOINT_EVENT(9p_client_req,
11
12 TP_PROTO(struct p9_client *clnt, int8_t type, int tag),
13
14 TP_ARGS(clnt, type, tag),
15
16 TP_FIELDS(
17 ctf_integer_hex(void *, clnt, clnt)
18 ctf_integer(u8, type, type)
19 ctf_integer(u32, tag, tag)
20 )
21 )
22
23 LTTNG_TRACEPOINT_EVENT(9p_client_res,
24
25 TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
26
27 TP_ARGS(clnt, type, tag, err),
28
29 TP_FIELDS(
30 ctf_integer_hex(void *, clnt, clnt)
31 ctf_integer(u8, type, type)
32 ctf_integer(u32, tag, tag)
33 ctf_integer(u32, err, err)
34 )
35 )
36
37 LTTNG_TRACEPOINT_EVENT(9p_protocol_dump,
38
39 TP_PROTO(struct p9_client *clnt, struct p9_fcall *pdu),
40
41 TP_ARGS(clnt, pdu),
42
43 TP_FIELDS(
44 ctf_integer_hex(void *, clnt, clnt)
45 ctf_integer(u8, type, pdu->id)
46 ctf_integer(u16, tag, pdu->tag)
47 ctf_array(unsigned char, line, pdu->sdata, P9_PROTO_DUMP_SZ)
48 )
49 )
50
51 #endif /* LTTNG_TRACE_9P_H */
52
53 /* This part must be outside protection */
54 #include <lttng/define_trace.h>
This page took 0.030327 seconds and 4 git commands to generate.