From 8b2da59ab3a63df9c1875ec5dcad00a96b96afba Mon Sep 17 00:00:00 2001 From: wangyuhang Date: Fri, 15 Nov 2024 14:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=BD=BB=E9=87=8F=E7=BA=A7PR=E3=80=91?= =?UTF-8?q?fix=20some=20spelling=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/plugin/probe.bpf.c | 2 +- cmd/agent/plugin/probe.c | 2 +- cmd/agent/plugin/traffic.bpf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/agent/plugin/probe.bpf.c b/cmd/agent/plugin/probe.bpf.c index 3bc6067..975adca 100644 --- a/cmd/agent/plugin/probe.bpf.c +++ b/cmd/agent/plugin/probe.bpf.c @@ -141,7 +141,7 @@ int handle_tcp_state(struct trace_event_raw_inet_sock_set_state *ctx) return __handle_tcp_state(ctx); } -// protocol recieve +// protocol receive SEC("kprobe/tcp_sendmsg") int BPF_KPROBE(kp_tcp_sendmsg, struct sock *sk, struct msghdr *msg, size_t size) { diff --git a/cmd/agent/plugin/probe.c b/cmd/agent/plugin/probe.c index 66bb25c..cc0ba0a 100755 --- a/cmd/agent/plugin/probe.c +++ b/cmd/agent/plugin/probe.c @@ -37,7 +37,7 @@ static const struct argp_option opts[] = { {"port_distribution", 'P', 0, 0, "statistical use of top10 destination ports"}, {"drop_info", 'i', 0, 0, "trace the iptables drop"}, {"drop_skb", 'd', 0, 0, "trace the all skb drop"}, - {"packet_count", 'c', 0, 0, "trace the packet include SYN、SYN-ACK、FIN"}, + {"packet_count", 'c', 0, 0, "trace the packet including SYN、SYN-ACK、FIN"}, {"tcpconn", 'T', 0, 0, "trace the tcp connect"}, {}, }; diff --git a/cmd/agent/plugin/traffic.bpf.h b/cmd/agent/plugin/traffic.bpf.h index 3c248c9..98cd445 100644 --- a/cmd/agent/plugin/traffic.bpf.h +++ b/cmd/agent/plugin/traffic.bpf.h @@ -215,7 +215,7 @@ static __always_inline int __tcp_sendmsg(struct sock *sk, struct msghdr *msg, si return 0; } -// recieve +// receive static __always_inline int __tcp_cleanup_rbuf(struct sock *sk, int copied) { int pid = get_current_tgid(); -- Gitee