summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/module/monitor_kernel_lib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/module/monitor_kernel_lib.c b/source/module/monitor_kernel_lib.c
index c816427..a23a024 100644
--- a/source/module/monitor_kernel_lib.c
+++ b/source/module/monitor_kernel_lib.c
@@ -438,13 +438,14 @@ int diag_tgid(int id) {
// diag_variant_buffer_seal(&pupil_variant_buffer);
// diag_variant_buffer_spin_unlock(&pupil_variant_buffer, flags);
- // get_task_struct(thread); // count +1
+ get_task_struct(thread); // count +1
tsk_info.et_type = VARIABLE_MONITOR_TASK_TYPE;
tsk_info.id = event_id;
tsk_info.tv = vm_record.tv;
diag_tsk(thread, &tsk_info);
- // put_task_struct(thread); // count -1
+
+ put_task_struct(thread); // count -1
push_tskinfo_2_buffer(&tsk_info, &flags); // push to buffer
}