.. | .. |
---|
194 | 194 | list_for_each_entry(kctx, &kbdev->kctx_list, kctx_list_link) { |
---|
195 | 195 | struct pid *pid_struct; |
---|
196 | 196 | struct task_struct *task; |
---|
| 197 | + struct pid *tgid_struct; |
---|
| 198 | + struct task_struct *tgid_task; |
---|
| 199 | + |
---|
197 | 200 | unsigned long task_alloc_total = |
---|
198 | 201 | KBASE_PAGES_TO_KIB(atomic_read(&(kctx->used_pages))); |
---|
199 | 202 | |
---|
200 | 203 | rcu_read_lock(); |
---|
201 | 204 | pid_struct = find_get_pid(kctx->pid); |
---|
202 | 205 | task = pid_task(pid_struct, PIDTYPE_PID); |
---|
| 206 | + tgid_struct = find_get_pid(kctx->tgid); |
---|
| 207 | + tgid_task = pid_task(tgid_struct, PIDTYPE_PID); |
---|
203 | 208 | |
---|
204 | 209 | 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, |
---|
207 | 213 | kctx->pid, task_alloc_total); |
---|
208 | 214 | |
---|
209 | 215 | put_pid(pid_struct); |
---|