diag_task_raw_stack

This commit is contained in:
zy
2023-11-23 10:25:25 +08:00
parent 12f132de23
commit aa6eb1cfca
3 changed files with 136 additions and 50 deletions

View File

@@ -55,12 +55,14 @@ static int init_buffer(unsigned int buf_size) {
return ret;
}
void diag_tsk(struct task_struct *p, variable_monitor_task *tsk_info,unsigned long *flags) {
void diag_tsk(struct task_struct *p, variable_monitor_task *tsk_info,
unsigned long *flags) {
unsigned int nr_bt;
printk(KERN_INFO "diag_tsk\n");
diag_task_brief(p, &tsk_info->task); // task brief
diag_task_brief(p, &tsk_info->task); // task brief
// printk("1\n");
diag_task_user_stack(p, &tsk_info->user_stack); // user stack
diag_task_raw_stack(p, &tsk_info->raw_stack); // raw stack
// printk("2\n");
nr_bt = diag_task_kern_stack(p, &tsk_info->kern_stack); // kernel stack
// int i = 0;