Fix: update sched instrumentation for kernel 4.12
[lttng-modules.git] / instrumentation / events / lttng-module / sock.h
CommitLineData
b283666f
PW
1#undef TRACE_SYSTEM
2#define TRACE_SYSTEM sock
3
3bc29f0a
MD
4#if !defined(LTTNG_TRACE_SOCK_H) || defined(TRACE_HEADER_MULTI_READ)
5#define LTTNG_TRACE_SOCK_H
b283666f 6
6ec43db8 7#include <probes/lttng-tracepoint-event.h>
b283666f 8#include <net/sock.h>
b283666f 9
3bc29f0a 10LTTNG_TRACEPOINT_EVENT(sock_rcvqueue_full,
b283666f
PW
11
12 TP_PROTO(struct sock *sk, struct sk_buff *skb),
13
14 TP_ARGS(sk, skb),
15
f127e61e
MD
16 TP_FIELDS(
17 ctf_integer(int, rmem_alloc, atomic_read(&sk->sk_rmem_alloc))
18 ctf_integer(unsigned int, truesize, skb->truesize)
19 ctf_integer(int, sk_rcvbuf, sk->sk_rcvbuf)
20 )
b283666f
PW
21)
22
3bc29f0a 23LTTNG_TRACEPOINT_EVENT(sock_exceed_buf_limit,
b283666f
PW
24
25 TP_PROTO(struct sock *sk, struct proto *prot, long allocated),
26
27 TP_ARGS(sk, prot, allocated),
28
f127e61e
MD
29 TP_FIELDS(
30 ctf_string(name, prot->name)
31 ctf_array(long, sysctl_mem, prot->sysctl_mem, 3)
32 ctf_integer(long, allocated, allocated)
33 ctf_integer(int, sysctl_rmem, prot->sysctl_rmem[0])
34 ctf_integer(int, rmem_alloc, atomic_read(&sk->sk_rmem_alloc))
35 )
b283666f
PW
36)
37
3bc29f0a 38#endif /* LTTNG_TRACE_SOCK_H */
b283666f
PW
39
40/* This part must be outside protection */
6ec43db8 41#include <probes/define_trace.h>
This page took 0.030493 seconds and 4 git commands to generate.