2 #define TRACE_SYSTEM sock
4 #if !defined(LTTNG_TRACE_SOCK_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_SOCK_H
7 #include "../../../probes/lttng-tracepoint-event.h"
10 LTTNG_TRACEPOINT_EVENT(sock_rcvqueue_full
,
12 TP_PROTO(struct sock
*sk
, struct sk_buff
*skb
),
17 __field(int, rmem_alloc
)
18 __field(unsigned int, truesize
)
19 __field(int, sk_rcvbuf
)
23 tp_assign(rmem_alloc
, atomic_read(&sk
->sk_rmem_alloc
))
24 tp_assign(truesize
, skb
->truesize
)
25 tp_assign(sk_rcvbuf
, sk
->sk_rcvbuf
)
28 TP_printk("rmem_alloc=%d truesize=%u sk_rcvbuf=%d",
29 __entry
->rmem_alloc
, __entry
->truesize
, __entry
->sk_rcvbuf
)
32 LTTNG_TRACEPOINT_EVENT(sock_exceed_buf_limit
,
34 TP_PROTO(struct sock
*sk
, struct proto
*prot
, long allocated
),
36 TP_ARGS(sk
, prot
, allocated
),
39 __string(name
, prot
->name
)
40 __array(long, sysctl_mem
, 3)
41 __field(long, allocated
)
42 __field(int, sysctl_rmem
)
43 __field(int, rmem_alloc
)
47 tp_strcpy(name
, prot
->name
)
48 tp_memcpy(sysctl_mem
, prot
->sysctl_mem
, 3 * sizeof(long))
49 tp_assign(allocated
, allocated
)
50 tp_assign(sysctl_rmem
, prot
->sysctl_rmem
[0])
51 tp_assign(rmem_alloc
, atomic_read(&sk
->sk_rmem_alloc
))
54 TP_printk("proto:%s sysctl_mem=%ld,%ld,%ld allocated=%ld "
55 "sysctl_rmem=%d rmem_alloc=%d",
57 __entry
->sysctl_mem
[0],
58 __entry
->sysctl_mem
[1],
59 __entry
->sysctl_mem
[2],
65 #endif /* LTTNG_TRACE_SOCK_H */
67 /* This part must be outside protection */
68 #include "../../../probes/define_trace.h"
This page took 0.029953 seconds and 4 git commands to generate.