This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch reduce-handle-connect-time
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/reduce-handle-connect-time by
this push:
new 315d588 add test log
315d588 is described below
commit 315d588f44285c8c0dfda182a6ebb301d2a45e1a
Author: mrproliu <[email protected]>
AuthorDate: Fri Dec 27 19:03:12 2024 +0800
add test log
---
bpf/accesslog/syscalls/connect_conntrack.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bpf/accesslog/syscalls/connect_conntrack.c
b/bpf/accesslog/syscalls/connect_conntrack.c
index bdc3579..36a31b5 100644
--- a/bpf/accesslog/syscalls/connect_conntrack.c
+++ b/bpf/accesslog/syscalls/connect_conntrack.c
@@ -94,23 +94,28 @@ static __always_inline int nf_conn_aware(struct pt_regs*
ctx, struct nf_conn *ct
// already contains the remote address
if (connect_args->has_remote && &(connect_args->remote) != NULL) {
+ bpf_printk("---test2222, %lld", id);
return 0;
}
__u32 status;
if (bpf_probe_read(&status, sizeof(status), &(ct->status)) != 0) {
+ bpf_printk("---test3333, %lld", id);
return 0; // Invalid ct pointer
}
if (!(status & IPS_CONFIRMED)) {
+ bpf_printk("---test4444, %lld", id);
return 0;
}
if (!(status & IPS_NAT_MASK)) {
+ bpf_printk("---test5555, %lld", id);
return 0;
}
struct nf_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX];
if (bpf_probe_read(&tuplehash, sizeof(tuplehash), &(ct->tuplehash)) != 0) {
+ bpf_printk("---test6666, %lld", id);
return 0; // Invalid ct pointer
}
@@ -118,6 +123,7 @@ static __always_inline int nf_conn_aware(struct pt_regs*
ctx, struct nf_conn *ct
conntrack_tuple_t reply_conn = {};
if (!nf_conntrack_tuple_to_conntrack_tuple(connect_args, &reply_conn,
&reply)) {
+ bpf_printk("---test7777, %lld", id);
return 0;
}
@@ -128,6 +134,7 @@ static __always_inline int nf_conn_aware(struct pt_regs*
ctx, struct nf_conn *ct
connect_args->remote = remote;
connect_args->has_remote = 1;
bpf_map_update_elem(&conecting_args, &id, connect_args, 0);
+ bpf_printk("---test success!!!!!!!!!!!!!!!!!!!!, %lld", id);
return 0;
}