summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzy <[email protected]>2023-12-05 02:52:17 -0500
committerzy <[email protected]>2023-12-05 02:52:17 -0500
commit067687b99770b496c85ea5da3d7d922fbf458118 (patch)
tree035d3f85e1e214cf1d5b03c83d86ec2d20311adf
parentff9a379cbcd41e20aa97fea6150c3cfa6a2a7b4d (diff)
get_task_struct(thread);/put_task_struct(thread);
-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
}