diff options
| author | zy <[email protected]> | 2023-12-15 03:11:00 -0500 |
|---|---|---|
| committer | zy <[email protected]> | 2023-12-15 03:11:00 -0500 |
| commit | 055d14f6c70c8298781fda2a9a7282935919c969 (patch) | |
| tree | 5a565fdbd693d30aeb2c36a2dac02b565fc5fa87 | |
| parent | 05d78776ad73e8c8916f8d45ba4d19a74cde231e (diff) | |
clean code
| -rw-r--r-- | source/module/monitor_kernel.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c index c30a63e..22437aa 100644 --- a/source/module/monitor_kernel.c +++ b/source/module/monitor_kernel.c @@ -12,16 +12,6 @@ #include <linux/interrupt.h> -// enum { -// MY_SOFTIRQ = 11, // 这个值是示例,确保它没有被其他软中断使用 -// }; - -// static void my_softirq_handler(struct softirq_action *action) -// { -// // 这是软中断处理函数,它不能睡眠,必须快速执行 -// // 在这里调用 get_raw_stack -// diag_task_all(); -// } // for character device static dev_t dev_num; @@ -209,7 +199,7 @@ void cleanup_module(void) { cdev_del(watch_cdev); unregister_chrdev_region(dev_num, 1); - cleanup_perf_event(); // just for perf test + // cleanup_perf_event(); // for perf } MODULE_LICENSE("GPL"); |
