From e3a6c73f604c3b95335dce0f362cd61c5c4522dd Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Tue, 29 Mar 2022 12:05:55 +0800 Subject: [PATCH] stacktrace: Fix up missing title and wrong ref url Signed-off-by: Wu Zhangjin --- articles/20220320-riscv-linux-stacktrace.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/articles/20220320-riscv-linux-stacktrace.md b/articles/20220320-riscv-linux-stacktrace.md index 57590e3..11b6742 100644 --- a/articles/20220320-riscv-linux-stacktrace.md +++ b/articles/20220320-riscv-linux-stacktrace.md @@ -2,6 +2,8 @@ > Date: 2022/03/20 > Project: +# RISC-V Linux stacktrace 详解 + ## 简介 说起内核的 `stack`,我们应该会想到 `dump_stack` 这个内核函数,我们经常会用这个函数来调试自己的驱动,可以快速的厘清内核的函数调用关系,可以通过 `echo l > /proc/sysrq-trigger` 调用 `dump_stack`,我这里是编写了一个内核驱动程序调用 `dump_stack` 的打印(**x86_64**)如下: @@ -250,7 +252,6 @@ static inline void print_ip_sym(unsigned long ip) ## 参考 * [函数调用保留的寄存器](https://suda-morris.github.io/blog/cs/risc-v.html#函数调用时保留的寄存器) - * [维基百科](https://en.wikichip.org/wiki/risc-v/registers) * [L03.ws_solutions.pdf](https://6004.mit.edu/web/_static/silvina-test/resources/lectures/L03.ws_solutions.pdf) -* [实现分析](/http://kernel.meizu.com/2017/03/18-40-19-dump_stack.html) \ No newline at end of file +* [dump_stack 实现分析](http://kernel.meizu.com/2017/03/18-40-19-dump_stack.html) -- Gitee