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 3468417  add conntrack new probes
3468417 is described below

commit 346841724aa2b11ba1aefeed2a91a8d842cdfa40
Author: mrproliu <[email protected]>
AuthorDate: Fri Dec 27 21:41:52 2024 +0800

    add conntrack new probes
---
 bpf/accesslog/syscalls/connect_conntrack.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bpf/accesslog/syscalls/connect_conntrack.c 
b/bpf/accesslog/syscalls/connect_conntrack.c
index a9878d6..63d434c 100644
--- a/bpf/accesslog/syscalls/connect_conntrack.c
+++ b/bpf/accesslog/syscalls/connect_conntrack.c
@@ -168,9 +168,13 @@ int nf_ct_refresh_acct_ret(struct pt_regs *ctx) {
     __u64 pid = bpf_get_current_pid_tgid();
     struct nf_conn **ctp;
     ctp = bpf_map_lookup_elem(&conntrack_refreshing, &pid);
-    if (ctp == 0)
+    if (ctp == 0) {
+        bpf_printk("nf_ct_refresh_acct_ret: ctp is null");
         return 0;
+    }
     struct nf_conn *ct = *ctp;
     bpf_map_delete_elem(&conntrack_refreshing, &pid);
-    return nf_conn_aware(ctx, ct);
+    int ret = nf_conn_aware(ctx, ct);
+    bpf_printk("nf_ct_refresh_acct_ret: %p, ret: %d", ct, ret);
+    return ret;
 }
\ No newline at end of file

Reply via email to