参考
- Uprobe-tracer: Uprobe-based Event Tracing
- 深入ftrace uprobe原理和功能介绍
- Linux uprobe: User-Level Dynamic Tracing
- perf-tools -- uprobe
- 用bpftrace跟踪C++代码
- What is Linux utility to mangle a C++ symbol name?
示例
- 跟踪C++程序:/system/bin/logd
# 查看支持的跟踪点
bpftrace -l 'u:/system/bin/logd:*'
bpftrace -l 'u:/system/bin/logd:*' | c++filt
bpftrace -e 'u:/system/bin/logd:_ZN18SerializedLogChunk3LogEm8log_timejiiPKct {print(ustack);}'
标签:bin,bpftrace,system,C++,用法,logd,原理,uprobe
From: https://www.cnblogs.com/pengdonglin137/p/18498372