����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM tcp
#if !defined(_TRACE_TCP_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_TCP_H
#include <linux/ipv6.h>
#include <linux/tcp.h>
#include <linux/tracepoint.h>
#include <net/ipv6.h>
#include <net/tcp.h>
#include <linux/sock_diag.h>
#include <net/rstreason.h>
/*
* tcp event with arguments sk and skb
*
* Note: this class requires a valid sk pointer; while skb pointer could
* be NULL.
*/
DECLARE_EVENT_CLASS(tcp_event_sk_skb,
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
TP_ARGS(sk, skb),
TP_STRUCT__entry(
__field(const void *, skbaddr)
__field(const void *, skaddr)
__field(int, state)
__field(__u16, sport)
__field(__u16, dport)
__field(__u16, family)
__array(__u8, saddr, 4)
__array(__u8, daddr, 4)
__array(__u8, saddr_v6, 16)
__array(__u8, daddr_v6, 16)
),
TP_fast_assign(
const struct inet_sock *inet = inet_sk(sk);
__be32 *p32;
__entry->skbaddr = skb;
__entry->skaddr = sk;
__entry->state = sk->sk_state;
__entry->sport = ntohs(inet->inet_sport);
__entry->dport = ntohs(inet->inet_dport);
__entry->family = sk->sk_family;
p32 = (__be32 *) __entry->saddr;
*p32 = inet->inet_saddr;
p32 = (__be32 *) __entry->daddr;
*p32 = inet->inet_daddr;
TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
sk->sk_v6_rcv_saddr, sk->sk_v6_daddr);
),
TP_printk("family=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s",
show_family_name(__entry->family),
__entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
__entry->saddr_v6, __entry->daddr_v6,
show_tcp_state_name(__entry->state))
);
DEFINE_EVENT(tcp_event_sk_skb, tcp_retransmit_skb,
TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
TP_ARGS(sk, skb)
);
#undef FN
#define FN(reason) TRACE_DEFINE_ENUM(SK_RST_REASON_##reason);
DEFINE_RST_REASON(FN, FN)
#undef FN
#undef FNe
#define FN(reason) { SK_RST_REASON_##reason, #reason },
#define FNe(reason) { SK_RST_REASON_##reason, #reason }
/*
* skb of trace_tcp_send_reset is the skb that caused RST. In case of
* active reset, skb should be NULL
*/
TRACE_EVENT(tcp_send_reset,
TP_PROTO(const struct sock *sk,
const struct sk_buff *skb,
const enum sk_rst_reason reason),
TP_ARGS(sk, skb, reason),
TP_STRUCT__entry(
__field(const void *, skbaddr)
__field(const void *, skaddr)
__field(int, state)
__field(enum sk_rst_reason, reason)
__array(__u8, saddr, sizeof(struct sockaddr_in6))
__array(__u8, daddr, sizeof(struct sockaddr_in6))
),
TP_fast_assign(
__entry->skbaddr = skb;
__entry->skaddr = sk;
/* Zero means unknown state. */
__entry->state = sk ? sk->sk_state : 0;
memset(__entry->saddr, 0, sizeof(struct sockaddr_in6));
memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
if (sk && sk_fullsock(sk)) {
const struct inet_sock *inet = inet_sk(sk);
TP_STORE_ADDR_PORTS(__entry, inet, sk);
} else if (skb) {
const struct tcphdr *th = (const struct tcphdr *)skb->data;
/*
* We should reverse the 4-tuple of skb, so later
* it can print the right flow direction of rst.
*/
TP_STORE_ADDR_PORTS_SKB(skb, th, entry->daddr, entry->saddr);
}
__entry->reason = reason;
),
TP_printk("skbaddr=%p skaddr=%p src=%pISpc dest=%pISpc state=%s reason=%s",
__entry->skbaddr, __entry->skaddr,
__entry->saddr, __entry->daddr,
__entry->state ? show_tcp_state_name(__entry->state) : "UNKNOWN",
__print_symbolic(__entry->reason, DEFINE_RST_REASON(FN, FNe)))
);
#undef FN
#undef FNe
/*
* tcp event with arguments sk
*
* Note: this class requires a valid sk pointer.
*/
DECLARE_EVENT_CLASS(tcp_event_sk,
TP_PROTO(struct sock *sk),
TP_ARGS(sk),
TP_STRUCT__entry(
__field(const void *, skaddr)
__field(__u16, sport)
__field(__u16, dport)
__field(__u16, family)
__array(__u8, saddr, 4)
__array(__u8, daddr, 4)
__array(__u8, saddr_v6, 16)
__array(__u8, daddr_v6, 16)
__field(__u64, sock_cookie)
),
TP_fast_assign(
struct inet_sock *inet = inet_sk(sk);
__be32 *p32;
__entry->skaddr = sk;
__entry->sport = ntohs(inet->inet_sport);
__entry->dport = ntohs(inet->inet_dport);
__entry->family = sk->sk_family;
p32 = (__be32 *) __entry->saddr;
*p32 = inet->inet_saddr;
p32 = (__be32 *) __entry->daddr;
*p32 = inet->inet_daddr;
TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
sk->sk_v6_rcv_saddr, sk->sk_v6_daddr);
__entry->sock_cookie = sock_gen_cookie(sk);
),
TP_printk("family=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c sock_cookie=%llx",
show_family_name(__entry->family),
__entry->sport, __entry->dport,
__entry->saddr, __entry->daddr,
__entry->saddr_v6, __entry->daddr_v6,
__entry->sock_cookie)
);
DEFINE_EVENT(tcp_event_sk, tcp_receive_reset,
TP_PROTO(struct sock *sk),
TP_ARGS(sk)
);
DEFINE_EVENT(tcp_event_sk, tcp_destroy_sock,
TP_PROTO(struct sock *sk),
TP_ARGS(sk)
);
DEFINE_EVENT(tcp_event_sk, tcp_rcv_space_adjust,
TP_PROTO(struct sock *sk),
TP_ARGS(sk)
);
TRACE_EVENT(tcp_retransmit_synack,
TP_PROTO(const struct sock *sk, const struct request_sock *req),
TP_ARGS(sk, req),
TP_STRUCT__entry(
__field(const void *, skaddr)
__field(const void *, req)
__field(__u16, sport)
__field(__u16, dport)
__field(__u16, family)
__array(__u8, saddr, 4)
__array(__u8, daddr, 4)
__array(__u8, saddr_v6, 16)
__array(__u8, daddr_v6, 16)
),
TP_fast_assign(
struct inet_request_sock *ireq = inet_rsk(req);
__be32 *p32;
__entry->skaddr = sk;
__entry->req = req;
__entry->sport = ireq->ir_num;
__entry->dport = ntohs(ireq->ir_rmt_port);
__entry->family = sk->sk_family;
p32 = (__be32 *) __entry->saddr;
*p32 = ireq->ir_loc_addr;
p32 = (__be32 *) __entry->daddr;
*p32 = ireq->ir_rmt_addr;
TP_STORE_ADDRS(__entry, ireq->ir_loc_addr, ireq->ir_rmt_addr,
ireq->ir_v6_loc_addr, ireq->ir_v6_rmt_addr);
),
TP_printk("family=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c",
show_family_name(__entry->family),
__entry->sport, __entry->dport,
__entry->saddr, __entry->daddr,
__entry->saddr_v6, __entry->daddr_v6)
);
#include <trace/events/net_probe_common.h>
TRACE_EVENT(tcp_probe,
TP_PROTO(struct sock *sk, struct sk_buff *skb),
TP_ARGS(sk, skb),
TP_STRUCT__entry(
/* sockaddr_in6 is always bigger than sockaddr_in */
__array(__u8, saddr, sizeof(struct sockaddr_in6))
__array(__u8, daddr, sizeof(struct sockaddr_in6))
__field(__u16, sport)
__field(__u16, dport)
__field(__u16, family)
__field(__u32, mark)
__field(__u16, data_len)
__field(__u32, snd_nxt)
__field(__u32, snd_una)
__field(__u32, snd_cwnd)
__field(__u32, ssthresh)
__field(__u32, snd_wnd)
__field(__u32, srtt)
__field(__u32, rcv_wnd)
__field(__u64, sock_cookie)
),
TP_fast_assign(
const struct tcphdr *th = (const struct tcphdr *)skb->data;
const struct inet_sock *inet = inet_sk(sk);
const struct tcp_sock *tp = tcp_sk(sk);
memset(__entry->saddr, 0, sizeof(struct sockaddr_in6));
memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
TP_STORE_ADDR_PORTS(__entry, inet, sk);
/* For filtering use */
__entry->sport = ntohs(inet->inet_sport);
__entry->dport = ntohs(inet->inet_dport);
__entry->mark = skb->mark;
__entry->family = sk->sk_family;
__entry->data_len = skb->len - __tcp_hdrlen(th);
__entry->snd_nxt = tp->snd_nxt;
__entry->snd_una = tp->snd_una;
__entry->snd_cwnd = tcp_snd_cwnd(tp);
__entry->snd_wnd = tp->snd_wnd;
__entry->rcv_wnd = tp->rcv_wnd;
__entry->ssthresh = tcp_current_ssthresh(sk);
__entry->srtt = tp->srtt_us >> 3;
__entry->sock_cookie = sock_gen_cookie(sk);
),
TP_printk("family=%s src=%pISpc dest=%pISpc mark=%#x data_len=%d snd_nxt=%#x snd_una=%#x snd_cwnd=%u ssthresh=%u snd_wnd=%u srtt=%u rcv_wnd=%u sock_cookie=%llx",
show_family_name(__entry->family),
__entry->saddr, __entry->daddr, __entry->mark,
__entry->data_len, __entry->snd_nxt, __entry->snd_una,
__entry->snd_cwnd, __entry->ssthresh, __entry->snd_wnd,
__entry->srtt, __entry->rcv_wnd, __entry->sock_cookie)
);
/*
* tcp event with only skb
*/
DECLARE_EVENT_CLASS(tcp_event_skb,
TP_PROTO(const struct sk_buff *skb),
TP_ARGS(skb),
TP_STRUCT__entry(
__field(const void *, skbaddr)
__array(__u8, saddr, sizeof(struct sockaddr_in6))
__array(__u8, daddr, sizeof(struct sockaddr_in6))
),
TP_fast_assign(
const struct tcphdr *th = (const struct tcphdr *)skb->data;
__entry->skbaddr = skb;
memset(__entry->saddr, 0, sizeof(struct sockaddr_in6));
memset(__entry->daddr, 0, sizeof(struct sockaddr_in6));
TP_STORE_ADDR_PORTS_SKB(skb, th, __entry->saddr, __entry->daddr);
),
TP_printk("src=%pISpc dest=%pISpc", __entry->saddr, __entry->daddr)
);
DEFINE_EVENT(tcp_event_skb, tcp_bad_csum,
TP_PROTO(const struct sk_buff *skb),
TP_ARGS(skb)
);
TRACE_EVENT(tcp_cong_state_set,
TP_PROTO(struct sock *sk, const u8 ca_state),
TP_ARGS(sk, ca_state),
TP_STRUCT__entry(
__field(const void *, skaddr)
__field(__u16, sport)
__field(__u16, dport)
__field(__u16, family)
__array(__u8, saddr, 4)
__array(__u8, daddr, 4)
__array(__u8, saddr_v6, 16)
__array(__u8, daddr_v6, 16)
__field(__u8, cong_state)
),
TP_fast_assign(
struct inet_sock *inet = inet_sk(sk);
__be32 *p32;
__entry->skaddr = sk;
__entry->sport = ntohs(inet->inet_sport);
__entry->dport = ntohs(inet->inet_dport);
__entry->family = sk->sk_family;
p32 = (__be32 *) __entry->saddr;
*p32 = inet->inet_saddr;
p32 = (__be32 *) __entry->daddr;
*p32 = inet->inet_daddr;
TP_STORE_ADDRS(__entry, inet->inet_saddr, inet->inet_daddr,
sk->sk_v6_rcv_saddr, sk->sk_v6_daddr);
__entry->cong_state = ca_state;
),
TP_printk("family=%s sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c cong_state=%u",
show_family_name(__entry->family),
__entry->sport, __entry->dport,
__entry->saddr, __entry->daddr,
__entry->saddr_v6, __entry->daddr_v6,
__entry->cong_state)
);
#endif /* _TRACE_TCP_H */
/* This part must be outside protection */
#include <trace/define_trace.h>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 9p.h | File | 5.1 KB | 0644 |
|
| afs.h | File | 56.24 KB | 0644 |
|
| alarmtimer.h | File | 2.04 KB | 0644 |
|
| asoc.h | File | 5.57 KB | 0644 |
|
| avc.h | File | 1.26 KB | 0644 |
|
| bcache.h | File | 11.44 KB | 0644 |
|
| block.h | File | 15.84 KB | 0644 |
|
| bpf_test_run.h | File | 1.23 KB | 0644 |
|
| bridge.h | File | 4.73 KB | 0644 |
|
| btrfs.h | File | 60.14 KB | 0644 |
|
| cachefiles.h | File | 22.77 KB | 0644 |
|
| cgroup.h | File | 6.3 KB | 0644 |
|
| clk.h | File | 6.17 KB | 0644 |
|
| cma.h | File | 2.95 KB | 0644 |
|
| compaction.h | File | 7.72 KB | 0644 |
|
| context_tracking.h | File | 1.15 KB | 0644 |
|
| cpuhp.h | File | 1.83 KB | 0644 |
|
| csd.h | File | 1.52 KB | 0644 |
|
| damon.h | File | 1.13 KB | 0644 |
|
| devfreq.h | File | 1.92 KB | 0644 |
|
| devlink.h | File | 7.21 KB | 0644 |
|
| dma.h | File | 13.33 KB | 0644 |
|
| dma_fence.h | File | 1.67 KB | 0644 |
|
| erofs.h | File | 6.31 KB | 0644 |
|
| error_report.h | File | 2.06 KB | 0644 |
|
| ext4.h | File | 74.52 KB | 0644 |
|
| f2fs.h | File | 45.15 KB | 0644 |
|
| fib.h | File | 2.52 KB | 0644 |
|
| fib6.h | File | 2.36 KB | 0644 |
|
| filelock.h | File | 7.33 KB | 0644 |
|
| filemap.h | File | 2.81 KB | 0644 |
|
| fs_dax.h | File | 8.26 KB | 0644 |
|
| fscache.h | File | 14.27 KB | 0644 |
|
| fsi.h | File | 2.81 KB | 0644 |
|
| fsi_master_aspeed.h | File | 2.06 KB | 0644 |
|
| fsi_master_ast_cf.h | File | 3.67 KB | 0644 |
|
| fsi_master_gpio.h | File | 3.92 KB | 0644 |
|
| gpio.h | File | 1.07 KB | 0644 |
|
| gpu_mem.h | File | 1.21 KB | 0644 |
|
| handshake.h | File | 8.21 KB | 0644 |
|
| host1x.h | File | 5.54 KB | 0644 |
|
| huge_memory.h | File | 6.6 KB | 0644 |
|
| hw_pressure.h | File | 698 B | 0644 |
|
| hwmon.h | File | 1.45 KB | 0644 |
|
| i2c.h | File | 3.95 KB | 0644 |
|
| i2c_slave.h | File | 1.84 KB | 0644 |
|
| ib_mad.h | File | 12.42 KB | 0644 |
|
| ib_umad.h | File | 4 KB | 0644 |
|
| initcall.h | File | 1.28 KB | 0644 |
|
| intel-sst.h | File | 2.51 KB | 0644 |
|
| intel_ifs.h | File | 1.38 KB | 0644 |
|
| intel_ish.h | File | 556 B | 0644 |
|
| io_uring.h | File | 16.8 KB | 0644 |
|
| iocost.h | File | 6.24 KB | 0644 |
|
| iommu.h | File | 3.02 KB | 0644 |
|
| ipi.h | File | 2.89 KB | 0644 |
|
| irq.h | File | 3.8 KB | 0644 |
|
| irq_matrix.h | File | 4.94 KB | 0644 |
|
| iscsi.h | File | 2.25 KB | 0644 |
|
| jbd2.h | File | 12.69 KB | 0644 |
|
| kmem.h | File | 8.63 KB | 0644 |
|
| ksm.h | File | 5.25 KB | 0644 |
|
| kvm.h | File | 10.93 KB | 0644 |
|
| kyber.h | File | 2.27 KB | 0644 |
|
| libata.h | File | 23.69 KB | 0644 |
|
| lock.h | File | 2.79 KB | 0644 |
|
| maple_tree.h | File | 2.69 KB | 0644 |
|
| mce.h | File | 2.53 KB | 0644 |
|
| mdio.h | File | 1.02 KB | 0644 |
|
| migrate.h | File | 3.71 KB | 0644 |
|
| mlxsw.h | File | 2.62 KB | 0644 |
|
| mmap.h | File | 2.72 KB | 0644 |
|
| mmap_lock.h | File | 2.17 KB | 0644 |
|
| mmc.h | File | 7.24 KB | 0644 |
|
| mmflags.h | File | 8.58 KB | 0644 |
|
| module.h | File | 2.78 KB | 0644 |
|
| mptcp.h | File | 4.59 KB | 0644 |
|
| napi.h | File | 1011 B | 0644 |
|
| nbd.h | File | 2.14 KB | 0644 |
|
| neigh.h | File | 7 KB | 0644 |
|
| net.h | File | 7.75 KB | 0644 |
|
| net_probe_common.h | File | 3.26 KB | 0644 |
|
| netfs.h | File | 9.46 KB | 0644 |
|
| netlink.h | File | 490 B | 0644 |
|
| nilfs2.h | File | 5.2 KB | 0644 |
|
| nmi.h | File | 780 B | 0644 |
|
| objagg.h | File | 4.58 KB | 0644 |
|
| oom.h | File | 3.88 KB | 0644 |
|
| osnoise.h | File | 5.27 KB | 0644 |
|
| page_isolation.h | File | 943 B | 0644 |
|
| page_pool.h | File | 2.6 KB | 0644 |
|
| page_ref.h | File | 2.96 KB | 0644 |
|
| pagemap.h | File | 2.14 KB | 0644 |
|
| percpu.h | File | 3.11 KB | 0644 |
|
| power.h | File | 12.67 KB | 0644 |
|
| power_cpu_migrate.h | File | 1.59 KB | 0644 |
|
| preemptirq.h | File | 2.11 KB | 0644 |
|
| printk.h | File | 786 B | 0644 |
|
| pwc.h | File | 1.67 KB | 0644 |
|
| pwm.h | File | 1.21 KB | 0644 |
|
| qdisc.h | File | 3.81 KB | 0644 |
|
| qla.h | File | 937 B | 0644 |
|
| qrtr.h | File | 2.54 KB | 0644 |
|
| rcu.h | File | 24.8 KB | 0644 |
|
| rdma_core.h | File | 7.02 KB | 0644 |
|
| regulator.h | File | 2.83 KB | 0644 |
|
| rpcgss.h | File | 14.79 KB | 0644 |
|
| rpcrdma.h | File | 50.45 KB | 0644 |
|
| rpm.h | File | 2.44 KB | 0644 |
|
| rseq.h | File | 1.26 KB | 0644 |
|
| rtc.h | File | 3.28 KB | 0644 |
|
| rwmmio.h | File | 2.67 KB | 0644 |
|
| rxrpc.h | File | 61.38 KB | 0644 |
|
| sched.h | File | 19.36 KB | 0644 |
|
| scmi.h | File | 4.63 KB | 0644 |
|
| scsi.h | File | 10.63 KB | 0644 |
|
| sctp.h | File | 2.38 KB | 0644 |
|
| signal.h | File | 3.4 KB | 0644 |
|
| siox.h | File | 1.99 KB | 0644 |
|
| skb.h | File | 2.04 KB | 0644 |
|
| smbus.h | File | 7.33 KB | 0644 |
|
| sock.h | File | 7.56 KB | 0644 |
|
| sof.h | File | 3.26 KB | 0644 |
|
| sof_intel.h | File | 4.01 KB | 0644 |
|
| spi.h | File | 5.81 KB | 0644 |
|
| spmi.h | File | 3.26 KB | 0644 |
|
| sunrpc.h | File | 60.87 KB | 0644 |
|
| sunvnet.h | File | 3.06 KB | 0644 |
|
| swiotlb.h | File | 1.03 KB | 0644 |
|
| syscalls.h | File | 1.47 KB | 0644 |
|
| target.h | File | 7.69 KB | 0644 |
|
| task.h | File | 1.49 KB | 0644 |
|
| tcp.h | File | 10.03 KB | 0644 |
|
| tegra_apb_dma.h | File | 1.61 KB | 0644 |
|
| thp.h | File | 2.48 KB | 0644 |
|
| timer.h | File | 10.65 KB | 0644 |
|
| tlb.h | File | 1.41 KB | 0644 |
|
| udp.h | File | 1.25 KB | 0644 |
|
| v4l2.h | File | 8.81 KB | 0644 |
|
| vb2.h | File | 1.73 KB | 0644 |
|
| vmalloc.h | File | 3.2 KB | 0644 |
|
| vmscan.h | File | 12.41 KB | 0644 |
|
| vsock_virtio_transport_common.h | File | 3.71 KB | 0644 |
|
| wbt.h | File | 3.82 KB | 0644 |
|
| workqueue.h | File | 2.93 KB | 0644 |
|
| writeback.h | File | 22.38 KB | 0644 |
|
| xdp.h | File | 10.03 KB | 0644 |
|
| xen.h | File | 13.9 KB | 0644 |
|