全部博文(51)
发布时间:2021-08-04 22:35:48
ARM64 PCS(procedure Call Stanard)定义:X29 is the frame pointer register (FP). 用来定位有效的栈帧记录。X30 is the link register (LR). The branch-and-linkinstructions that store a return address in the link register (BL and BLR), settingthe register X30 to PC+4. Calls tosubroutines,.........【阅读全文】
发布时间:2021-01-28 13:55:30
perf-probe 支持对unload kernel module添加dynamic event,待module被加载后可以使能对应的event;其help中 -m option说明了这一点: -m, --module=MODNAME|PATH Specify module name in which perf-probe searches probe points or l.........【阅读全文】
发布时间:2021-01-21 23:24:37
发现一个gcc的问题:在使能-fpatchable-function-entry的情况下,DW_AT_low_pc的值与对应的函数entry address不一致。 -fpatchable-function-entry=N[,M] Generate N NOPs right at the beginning of each function, with the function entry point .........【阅读全文】
发布时间:2021-01-06 21:22:12
最近阅读kprobe的内核代码,目标指令被替换为brk指令;这个过程需要刷新cache,从代码中没能理解背后的原理。最近找到一篇文章给出的一些相关的解释,非常受用。源文链接:https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/caches-and-self-modifying-codeThe processor can .........【阅读全文】