ioctl
This commit is contained in:
@@ -129,7 +129,7 @@ void diag_task_info_work(struct work_struct *work) {
|
||||
if (k_watch_timer->threshold_num <= 0) // if no threshold reached
|
||||
return;
|
||||
|
||||
printk(KERN_INFO "diag_task_info_work\n");
|
||||
// printk(KERN_INFO "diag_task_info_work\n");
|
||||
|
||||
struct task_struct *g, *p; // g: task group; p: task
|
||||
unsigned long flags;
|
||||
@@ -149,7 +149,6 @@ void diag_task_info_work(struct work_struct *work) {
|
||||
kwarg = &k_watch_timer->k_watch_args[k_watch_timer->threshold_buffer[i]];
|
||||
k_w_arg2threshold(kwarg, &vm_record.threshold_record[i]);
|
||||
}
|
||||
// !todo 调整输出
|
||||
printk(KERN_INFO "-------------------------------------\n");
|
||||
printk(KERN_INFO "-----------variable monitor----------\n");
|
||||
printk(KERN_INFO "超出阈值:%lld\n", vm_record.tv);
|
||||
@@ -192,7 +191,7 @@ void diag_task_info_work(struct work_struct *work) {
|
||||
}
|
||||
}
|
||||
while_each_thread(g, p);
|
||||
printk("-------------------------------------\n");
|
||||
printk(KERN_INFO "-------------------------------------\n");
|
||||
return;
|
||||
}
|
||||
/**
|
||||
@@ -229,7 +228,6 @@ void monitor_exit(void) {
|
||||
*
|
||||
* @param warg: uapi watch_arg
|
||||
* @return int 0 is success
|
||||
* !todo: adjust printk
|
||||
*/
|
||||
int start_watch_variable(watch_arg warg) {
|
||||
void *kptr;
|
||||
@@ -413,7 +411,7 @@ int diag_test(int nid) {
|
||||
}
|
||||
}
|
||||
while_each_thread(g, p);
|
||||
printk("-------------------------------------\n");
|
||||
printk(KERN_INFO "-------------------------------------\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user