当前位置:网站首页>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 .
边栏推荐
- CondaValueError: The target prefix is the base prefix. Aborting.
- JMeter basic learning records
- Please open online PDF carefully
- Different WordPress pages display different gadgets
- XTransfer技术新人进阶秘诀:不可错过的宝藏Mentor
- Rewrite, maplocal and maplocal operations of Charles
- VirtualBox virtual machine installation win10 Enterprise Edition
- Create a multithreaded thread class
- Use of kubernetes storage volumes
- data link layer
猜你喜欢

The virtual currency evaporated $2trillion in seven months, and the "musks" ended the dream of 150000 people becoming rich

Oauth2.0 introduction

Address mapping of virtual memory paging mechanism

Memcached comprehensive analysis – 5 Memcached applications and compatible programs

Create a multithreaded thread class

Php-pdo parameter binding problem

(to be optimized and modified) vivado DDR4 SDRAM (MIG) (2.2) IP core learning record

Rewrite, maplocal and maplocal operations of Charles

Return of missing persons

Pytest testing framework
随机推荐
Markdown use
Poj1061 frog dating (extended Euclid)
After screwing the screws in the factory for two years, I earned more than 10000 yuan a month by "testing" and counterattacked
关于Unity中的transform.InverseTransformPoint, transform.InverseTransofrmDirection
TCP Jprobe utilization problem location
Power apps Guide
List set Introduction & common methods
Appium introduction and environment installation
Unity关于本地坐标和世界坐标之间的转换
When to send the update windows message
Three more days
Physical layer introduction
Basic database syntax learning
Auto. JS to automatically authorize screen capture permission
Functional analysis of ebpf sockops
Minimum cost and maximum flow (template question)
Network layer
Arkit与Character Creator动画曲线的对接
EditText controls the soft keyboard to search
Alibaba cloud lightweight servers open designated ports