]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure that PID 0 has a psinfo struct
authorKris Van Hees <kris.van.hees@oracle.com>
Mon, 18 Jan 2016 09:19:53 +0000 (04:19 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Sat, 30 Jan 2016 09:55:04 +0000 (04:55 -0500)
commitf6c672dade320d03c23756927cd4239f9bb08f59
tree3222848627bb0e99dedc8e2f5abd6bfe18f64409
parent4c7403d89578d3770e446f57063ca9c749b6f9e8
dtrace: ensure that PID 0 has a psinfo struct

Test builtinvar/tst.psinfo.d lists a large amount of memory access
errors trying to read from non-existant psinfo information for PID 0.
This commit enusres that prior to dtrace doing any work, PID 0 (the
init_task) has a psinfo structure associated with it.

Orabug: 22561297
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
kernel/dtrace/dtrace_os.c