V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
huangmingyou
V2EX  ›  Linux

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

  •  
  •   huangmingyou · Dec 20, 2021 · 2834 views
    This topic created in 1599 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   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:13 · PVG 23:13 · LAX 08:13 · JFK 11:13
    ♥ Do have faith in what you're doing.