aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDavid Rientjes <[email protected]>2010-08-09 17:18:47 -0700
committerLinus Torvalds <[email protected]>2010-08-09 20:44:56 -0700
commitc81fac5cb8c92b8b4795ac250a46c7514d1fce06 (patch)
tree2f2577d6813d0472b23359bcda8223edf0d7b396 /tools/perf/scripts/python/bin
parent74ab7f1d3f22ccb02f8b14f1f2375416b1ab0adb (diff)
oom: dump_tasks use find_lock_task_mm too fix
When find_lock_task_mm() returns a thread other than p in dump_tasks(), its name should be displayed instead. This is the thread that will be targeted by the oom killer, not its mm-less parent. This also allows us to safely dereference task->comm without needing get_task_comm(). While we're here, remove the cast on task_cpu(task) as Andrew suggested. Signed-off-by: David Rientjes <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions