源代码检索/图谱
- 内核路线图:Interactive map of Linux kernel
- 在线检索源码/关键字(不限于 Linux,包括 glibc,llvm等):Linux source code (v6.9.2) - Bootlin
Perf
使用
问题
create_tasks
中编译出错解决:builtin-sched.c: In function ‘create_tasks’:
/home/z/WorkSpace/SKDL0401_TE/kernel/tools/include/linux/kernel.h:43:24: error: comparison of distinct pointer types lacks a cast [-Werror]
43 | (void) (&_max1 == &_max2); \
| ^~
builtin-sched.c:673:34: note: in expansion of macro ‘max’
673 | (size_t) max(16 * 1024, PTHREAD_STACK_MIN));
| ^~~
需要社区补丁:
Diff - d08c84e01afa7a7eee6badab25d5420fa847f783^! - pub/scm/linux/kernel/git/tj/cgroup - Git at Google
Refer
调试技术之perf实战笔记
性能分析利器之perf浅析 | 学海无涯,行者无疆
Linux tracing/profiling 基础:符号表、调用栈、perf/bpftrace 示例等(2022)