Skip to content

feat: eBPF Add the socktrace query command#10838

Merged
yinjiping merged 1 commit intomainfrom
socktrace_cmd_main
Nov 18, 2025
Merged

feat: eBPF Add the socktrace query command#10838
yinjiping merged 1 commit intomainfrom
socktrace_cmd_main

Conversation

@yinjiping
Copy link
Contributor

This PR is for:

  • Agent

Affected branches

  • main
  • v6.6
  • v7.0

@yinjiping yinjiping enabled auto-merge (squash) November 18, 2025 01:59
@yinjiping yinjiping merged commit 9995775 into main Nov 18, 2025
8 checks passed
@yinjiping yinjiping deleted the socktrace_cmd_main branch November 18, 2025 02:02
@yinjiping
Copy link
Contributor Author

测试 - 指定 PID和fd, 显示socket记录

deepflow-ebpfctl socktrace get --pid 3667 --fd 6

Linux Version: Linux 4.19.17-1

The socket information for process ID 3667, socket fd 6 is as follows:
  socket_id:    1386728078679352605
  seq:          3
  l7_proto:     20(HTTP1)
  data_source:  0
  direction:    1
  pre_direction:        0
  is_tls:               0
  peer_fd:      0
  prev_data_len:        0
  allow_reassembly:     0
  finish_reasm: 0
  force_reasm:  0
  no_trace:     0
  reasm_bytes:  0
  update_time:  58937070

Monitoring information:
  kern_socket_map_max:  524288
  kern_socket_map_used: 22
  kern_trace_map_max:   524288
  kern_trace_map_used:  14
  proc_exec_event_count:        5979
  proc_exit_event_count:        3069
  datadump_enable:      true
  datadump_pid: 0
  datadump_proto:       0
  datadump_comm:        python3
  datadump_file_path:   stdout

  tracer_state: TRACER_RUNNING

CPUs: 40
----------------------------------
cpu:    39
ready:  1
task__files_offset:     0xac8
sock__flags_offset:     0x1f8
tcp_sock__copied_seq_offset:    0x53c
tcp_sock__write_seq_offset:     0x6ac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants