hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/arm/bifrost/device/mali_kbase_device.c
....@@ -194,16 +194,22 @@
194194 list_for_each_entry(kctx, &kbdev->kctx_list, kctx_list_link) {
195195 struct pid *pid_struct;
196196 struct task_struct *task;
197
+ struct pid *tgid_struct;
198
+ struct task_struct *tgid_task;
199
+
197200 unsigned long task_alloc_total =
198201 KBASE_PAGES_TO_KIB(atomic_read(&(kctx->used_pages)));
199202
200203 rcu_read_lock();
201204 pid_struct = find_get_pid(kctx->pid);
202205 task = pid_task(pid_struct, PIDTYPE_PID);
206
+ tgid_struct = find_get_pid(kctx->tgid);
207
+ tgid_task = pid_task(tgid_struct, PIDTYPE_PID);
203208
204209 dev_err(kbdev->dev,
205
- "OOM notifier: tsk %s tgid (%u) pid (%u) %lu kB\n",
206
- task ? task->comm : "[null task]", kctx->tgid,
210
+ "OOM notifier: tsk %s:%s tgid (%u) pid (%u) %lu kB\n",
211
+ tgid_task ? tgid_task->comm : "[null task]",
212
+ task ? task->comm : "[null comm]", kctx->tgid,
207213 kctx->pid, task_alloc_total);
208214
209215 put_pid(pid_struct);