save_stack_trace_tsk and struct stack_trace is no longer available in Linux 5.2+
问题 In kernel version before 5.2, I use save_stack_trace_tsk to retrieve call stack. But this method is no longer available in Linux kernel 5.2+, what should I use? 回答1: This question seemed so tempting so I did some digging here is my findings. TLDR; stack_trace_save () functions replaced by arch_stack_walk() interfaces * this is part of consolidation plan and remove duplicate code. linux commit 214d8ca6ee854 provide common architecture to walking stack trace. the new interface called arch_stack