Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
huangmingyou
V2EX  ›  Linux

bpf 能不能抓一个 skb 在内核被那些网络函数处理了

  •  
  •   huangmingyou · Dec 20, 2021 · 2944 views
    This topic created in 1636 days ago, the information mentioned may be changed or developed.

    测试了 bpftrace 工具,可以手工一个一个函数的写到代码里面匹配。但是效率低。 能不能类似 strace 一样。直接抓到一个 skb 包在内核被那些函数处理。

    1 replies    2021-12-20 17:48:02 +08:00
    zhijiangliu
        1
    zhijiangliu  
       Dec 20, 2021
    试试 ftrace
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   970 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 19:09 · PVG 03:09 · LAX 12:09 · JFK 15:09
    ♥ Do have faith in what you're doing.