diag_task_info_work: adjust output
This commit is contained in:
@@ -196,18 +196,18 @@ void diag_task_info_work(struct work_struct *work) {
|
||||
k_w_arg2threshold(kwarg, &vm_record.threshold_record[i]);
|
||||
}
|
||||
// printk(KERN_INFO "-------------------------------------\n");
|
||||
printk(KERN_INFO "-----------variable monitor----------\n");
|
||||
printk(KERN_INFO "threshold exceeded, Timestamp %lld:\n", vm_record.tv);
|
||||
// printk(KERN_INFO "-----------variable monitor----------\n");
|
||||
// printk(KERN_INFO "threshold exceeded, Timestamp %lld:\n", vm_record.tv);
|
||||
|
||||
for (i = 0; i < vm_record.threshold_num; i++) {
|
||||
printk(KERN_INFO "\t: pid: %d, name: %s, ptr: %p, threshold:%lld, true_value:%lld\n",
|
||||
vm_record.threshold_record[i].task_id,
|
||||
vm_record.threshold_record[i]
|
||||
.name, // Assuming name is a null-terminated string
|
||||
vm_record.threshold_record[i].ptr,
|
||||
vm_record.threshold_record[i].threshold,
|
||||
vm_record.threshold_record[i].true_value);
|
||||
}
|
||||
// for (i = 0; i < vm_record.threshold_num; i++) {
|
||||
// printk(KERN_INFO "\t: pid: %d, name: %s, ptr: %p, threshold:%lld, true_value:%lld\n",
|
||||
// vm_record.threshold_record[i].task_id,
|
||||
// vm_record.threshold_record[i]
|
||||
// .name, // Assuming name is a null-terminated string
|
||||
// vm_record.threshold_record[i].ptr,
|
||||
// vm_record.threshold_record[i].threshold,
|
||||
// vm_record.threshold_record[i].true_value);
|
||||
// }
|
||||
|
||||
rcu_read_lock();
|
||||
diag_variant_buffer_spin_lock(&load_monitor_variant_buffer, flags);
|
||||
@@ -241,6 +241,19 @@ void diag_task_info_work(struct work_struct *work) {
|
||||
diag_variant_buffer_spin_unlock(&load_monitor_variant_buffer, flags);
|
||||
rcu_read_unlock();
|
||||
|
||||
printk(KERN_INFO "-----------variable monitor----------\n");
|
||||
printk(KERN_INFO "threshold exceeded, Timestamp %lld:\n", vm_record.tv);
|
||||
|
||||
for (i = 0; i < vm_record.threshold_num; i++) {
|
||||
printk(KERN_INFO "\t: pid: %d, name: %s, ptr: %p, threshold:%lld, true_value:%lld\n",
|
||||
vm_record.threshold_record[i].task_id,
|
||||
vm_record.threshold_record[i]
|
||||
.name, // Assuming name is a null-terminated string
|
||||
vm_record.threshold_record[i].ptr,
|
||||
vm_record.threshold_record[i].threshold,
|
||||
vm_record.threshold_record[i].true_value);
|
||||
}
|
||||
|
||||
printk(KERN_INFO "-------------------------------------\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user