summaryrefslogtreecommitdiff
path: root/source/module/monitor_kernel.c
diff options
context:
space:
mode:
authorzy <[email protected]>2023-11-27 04:21:47 -0500
committerzy <[email protected]>2023-11-27 04:21:47 -0500
commit7e3b4ded0ccfe149a96aec009836bcb35293fb63 (patch)
tree91174e3ddef6bc0133b5f5eaab5a6124701fd2a2 /source/module/monitor_kernel.c
parenta56fa77dc824132c8df064c3398414ffaa0eedc6 (diff)
watch_arg: greater_flag -> above_threshold
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;