From 3034599a245a4536bf7886b8fa668e80206bd5de Mon Sep 17 00:00:00 2001 From: zy Date: Thu, 14 Dec 2023 06:24:38 -0500 Subject: remove swirq --- source/module/monitor_kernel.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source/module/monitor_kernel.c') diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c index 2695266..c30a63e 100644 --- a/source/module/monitor_kernel.c +++ b/source/module/monitor_kernel.c @@ -12,16 +12,16 @@ #include -enum { - MY_SOFTIRQ = 11, // 这个值是示例,确保它没有被其他软中断使用 -}; +// enum { +// MY_SOFTIRQ = 11, // 这个值是示例,确保它没有被其他软中断使用 +// }; -static void my_softirq_handler(struct softirq_action *action) -{ - // 这是软中断处理函数,它不能睡眠,必须快速执行 - // 在这里调用 get_raw_stack - diag_task_all(); -} +// static void my_softirq_handler(struct softirq_action *action) +// { +// // 这是软中断处理函数,它不能睡眠,必须快速执行 +// // 在这里调用 get_raw_stack +// diag_task_all(); +// } // for character device static dev_t dev_num; @@ -190,7 +190,7 @@ int init_module(void) { // orig_X | buffer monitor_init(); - orig_open_softirq(MY_SOFTIRQ, my_softirq_handler); + // orig_open_softirq(MY_SOFTIRQ, my_softirq_handler); return 0; } -- cgit v1.2.3