summaryrefslogtreecommitdiff
path: root/source/module/monitor_kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/module/monitor_kernel.c')
-rw-r--r--source/module/monitor_kernel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/module/monitor_kernel.c b/source/module/monitor_kernel.c
index fd26828..2e6e35c 100644
--- a/source/module/monitor_kernel.c
+++ b/source/module/monitor_kernel.c
@@ -67,6 +67,7 @@ static long device_ioctl(struct file *file, unsigned int ioctl_num,
"time_ns=%ld, threshold=%lld\n",
warg.task_id, warg.name, warg.ptr, warg.length_byte, warg.time_ns,
warg.threshold);
+ warg.time_ns = warg.time_ns == 0 ? 10000 : warg.time_ns; // default 10us
// start watch variable
start_watch_variable(warg);
break;