* buildrun.cxx (compile_pass): Look for said export.
* runtime/sym.c: Provide a _stp_error()-laden backup.
output_exportconf(s, o, "task_work_add", "STAPCONF_TASK_WORK_ADD_EXPORTED");
output_autoconf(s, o, "autoconf-pagefault_disable.c", "STAPCONF_PAGEFAULT_DISABLE", NULL);
+ output_exportconf(s, o, "kallsyms_lookup_name", "STAPCONF_KALLSYMS");
o << module_cflags << " += -include $(STAPCONF_HEADER)" << endl;
}
+#ifndef STAPCONF_KALLSYMS
+unsigned long kallsyms_lookup_name (const char *name)
+{
+ _stp_error ("kallsyms_lookup_name unavailable for %s\n", name);
+ return 0;
+}
+#endif
+
+
#endif /* _STP_SYM_C_ */