Give the static probes in the kernel image a module name of
"kernel_builtins" and a module state of LIVE.
Fix an extra-paren typo in dtrace_dev.c.
NOTE: This is incomplete. There are a few TBDs and FIXMEs
in this patch.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
#include <linux/module.h>
#include <linux/sdt.h>
#include <linux/slab.h>
+#include <linux/string.h>
#include <asm-generic/bitsperlong.h>
#include <asm-generic/sections.h>
__func__);
return;
}
+ kernmod->state = MODULE_STATE_LIVE;
+ strlcpy(kernmod->name, "kernel_builtins", MODULE_NAME_LEN);
DPRINTK("%lu SDT relocation entries beg. @0x%p\n",
dtrace_relocs_count, &dtrace_relocs);