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 4c44714 add test log
4c44714 is described below
commit 4c44714fcbe11fa4acd54a76485b72355940d796
Author: mrproliu <[email protected]>
AuthorDate: Fri Dec 27 20:11:40 2024 +0800
add test log
---
bpf/accesslog/syscalls/connect_conntrack.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/bpf/accesslog/syscalls/connect_conntrack.c
b/bpf/accesslog/syscalls/connect_conntrack.c
index 36a31b5..18f4f9a 100644
--- a/bpf/accesslog/syscalls/connect_conntrack.c
+++ b/bpf/accesslog/syscalls/connect_conntrack.c
@@ -94,28 +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);
+ bpf_printk("---test2222, %lld, %lld", id, connect_args->randomid);
return 0;
}
__u32 status;
if (bpf_probe_read(&status, sizeof(status), &(ct->status)) != 0) {
- bpf_printk("---test3333, %lld", id);
+ bpf_printk("---test3333, %lld, %lld", id, connect_args->randomid);
return 0; // Invalid ct pointer
}
if (!(status & IPS_CONFIRMED)) {
- bpf_printk("---test4444, %lld", id);
+ bpf_printk("---test4444, %lld, %lld", id, connect_args->randomid);
return 0;
}
if (!(status & IPS_NAT_MASK)) {
- bpf_printk("---test5555, %lld", id);
+ bpf_printk("---test5555, %lld, %lld", id, connect_args->randomid);
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);
+ bpf_printk("---test6666, %lld, %lld", id, connect_args->randomid);
return 0; // Invalid ct pointer
}
@@ -123,7 +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);
+ bpf_printk("---test7777, %lld, %lld", id, connect_args->randomid);
return 0;
}
@@ -134,7 +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);
+ bpf_printk("---test success!!!!!!!!!!!!!!!!!!!!, %lld, %lld", id,
connect_args->randomid);
return 0;
}