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>
SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_NOTRACK,
NULL);
+ /*
+ * We need to set up a psinfo structure for PID 0 (swapper).
+ */
+ dtrace_psinfo_alloc(&init_task);
+
dtrace_sdt_init();
dtrace_sdt_register(dtrace_kmod);
}