当前位置:网站首页>Functional analysis of ebpf tracepoint
Functional analysis of ebpf tracepoint
2022-06-24 21:29:00 【already_ skb】
1. View all supported by the system tracepoint
find /sys/kernel/debug/tracing/events -type d
You can view all supported by the current system tracepoint Function point , People are using tracepoint When performing functions, it is best to first look at the corresponding subsystems in those places hook spot , Evaluate whether the function can be met . For example, you want to look inside TCP Protocol stack , Then you can go first tcp trace Support those functions :
[[email protected] tcp]# ls /sys/kernel/debug/tracing/events/tcp
enable tcp_destroy_sock tcp_rcv_space_adjust tcp_retransmit_skb tcp_send_reset
filter tcp_probe tcp_receive_reset tcp_retransmit_synack
So you can take advantage of it Hook Click to realize your own functions .
If you need to find tcp_receive_reset Functional trace function , You can find in the kernel trace_tcp_receive_reset, It is the corresponding buried point function of this function .
[[email protected]]# grep -rn "tcp_receive_reset" net
net/ipv4/tcp_input.c:4051: trace_tcp_receive_reset(sk);
In particular, it should be noted that trace_tcp_receive_reset Is a buried point function , But not necessarily just in tcp_receive_reset call , such as cpu The relevant buried point function of .
Then there is a project that will use tracepoint/tcp The ability to build .
边栏推荐
- Apple mobile phone can see some fun ways to install IPA package
- Geek University cloud native training camp
- List set Introduction & common methods
- Memcached comprehensive analysis – 3 Deletion mechanism and development direction of memcached
- Time standard and format
- PHP script calls command to get real-time output
- 装修首页自定义全屏视频播放效果gif动态图片制作视频教程播放代码操作设置全屏居中阿里巴巴国际站
- 推荐模型之多任务模型:ESMM、MMOE
- Please open online PDF carefully
- BBR bandwidth per second conversion logic
猜你喜欢
Wireshark packet capturing skills summarized by myself
Docking of arkit and character creator animation curves
memcached全面剖析–3. memcached的删除机制和发展方向
Pytest test framework II
ping: www.baidu. Com: unknown name or service
It was Tencent who jumped out of the job with 26k. It really wiped my ass with sandpaper. It gave me a hand
Appium introduction and environment installation
Simple analysis of WordPress architecture
EditText controls the soft keyboard to search
OSI and tcp/ip model
随机推荐
yeb_ Back first day
TCP specifies the source port
Static routing job
TCP_ Nodelay and TCP_ CORK
Self signed certificate generation
Functional analysis of ebpf sockops
RFC 793 why to send reset and when to send reset
自己总结的wireshark抓包技巧
Notes_ Vlan
Pyaudio audio recording
Oauth2.0 introduction
Nifi fast authentication configuration
Network flow 24 questions (round table questions)
JMeter implementation specifies concurrent loop testing
Concepts of kubernetes components
Static routing job supplement
Kernel Debugging Tricks
HCIA assessment
Microsoft Certification (dynamic 365) test
去掉录屏提醒(七牛云demo)