Only arch-specific code cares about this invariant, and it may not exist
on other future arches, so duplicate it on all arches that care.
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
int rc = 0;
struct cred *cred;
- /*
- * Sanity check to ensure that the memory allocated by the kernel is
- * sufficient for what PDATA needs.
- */
- ASSERT(sizeof(dtrace_module_t) < DTRACE_PDATA_SIZE);
-
/*
* Register the device for the DTrace core.
*/
* Use is subject to license terms.
*/
+#include <asm/dtrace_arch.h>
+
/*
* Structure to hold DTrace specific information about modules (including the
* core kernel module). Note that each module (and the main kernel) already
int sdt_dev_init_arch(void)
{
+ /*
+ * Sanity check to ensure that the memory allocated by the kernel is
+ * sufficient for what PDATA needs.
+ */
+ ASSERT(sizeof(dtrace_module_t) < DTRACE_PDATA_SIZE);
+
return 0;
}
int sdt_dev_init_arch(void)
{
+ /*
+ * Sanity check to ensure that the memory allocated by the kernel is
+ * sufficient for what PDATA needs.
+ */
+ ASSERT(sizeof(dtrace_module_t) < DTRACE_PDATA_SIZE);
+
return dtrace_invop_add(sdt_invop);
}