Update README.md for supported kernel
[lttng-modules.git] / instrumentation / events / lttng-module / 9p.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: GPL-2.0-only */
3568fb65
MJ
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 <probes/lttng-tracepoint-event.h>
3568fb65 9
3568fb65
MJ
10LTTNG_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
23LTTNG_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
37LTTNG_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)
3568fb65
MJ
50
51#endif /* LTTNG_TRACE_9P_H */
52
53/* This part must be outside protection */
54#include <probes/define_trace.h>
This page took 0.026887 seconds and 4 git commands to generate.