summaryrefslogtreecommitdiff
path: root/source/module/monitor_kernel.c
diff options
context:
space:
mode:
authorzy <[email protected]>2023-12-01 04:59:56 -0500
committerzy <[email protected]>2023-12-01 04:59:56 -0500
commit0d1f57f06ea5c63d17edd98355da3733345ecc01 (patch)
tree76b52e56602b4fc7cdf8ba0528389607c97edea4 /source/module/monitor_kernel.c
parent21862f1271acad91e1ff3a33deda1751fc57dfb7 (diff)
fix bug get_timer
Diffstat (limited to 'source/module/monitor_kernel.c')
-rw-r--r--source/module/monitor_kernel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c
index 06c334d..bf0d872 100644
--- a/source/module/monitor_kernel.c
+++ b/source/module/monitor_kernel.c
@@ -69,7 +69,10 @@ static long device_ioctl(struct file *file, unsigned int ioctl_num,
warg.time_ns =
warg.time_ns == 0 ? def_interval_ns : warg.time_ns; // default 10us
// start watch variable
- start_watch_variable(warg);
+ ret = start_watch_variable(warg);
+ if (ret) {
+ printk(KERN_INFO "start_watch_variable failed\n");
+ }
break;
case IOCTL_DUMP_LOG:
printk(KERN_INFO "variable_monitor IOCTL_DUMP_LOG\n");