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

commit 1f9b089cabf8fe38737844e26d3da1b5f52df6b0
Author: mrproliu <[email protected]>
AuthorDate: Fri Dec 27 22:26:54 2024 +0800

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

diff --git a/bpf/accesslog/syscalls/connect.c b/bpf/accesslog/syscalls/connect.c
index 8e0363c..d918ab1 100644
--- a/bpf/accesslog/syscalls/connect.c
+++ b/bpf/accesslog/syscalls/connect.c
@@ -56,6 +56,7 @@ int tracepoint_enter_connect(struct syscall_trace_enter *ctx) 
{
     connect_args.start_nacs = bpf_ktime_get_ns();
     connect_args.randomid = bpf_get_prandom_u32();
     bpf_map_update_elem(&conecting_args, &id, &connect_args, 0);
+    bpf_printk("start sys connect: %lld, %lld", id, connect_args.randomid);
        return 0;
 }
 
@@ -67,6 +68,7 @@ int tracepoint_exit_connect(struct syscall_trace_exit *ctx) {
     connect_args = bpf_map_lookup_elem(&conecting_args, &id);
     if (connect_args) {
         process_connect(ctx, id, connect_args, ctx->ret);
+        bpf_printk("--finish sys connect: %lld, %lld", id, 
connect_args.randomid);
     }
 
     bpf_map_delete_elem(&conecting_args, &id);

Reply via email to