* runtime/task_finder.c (non-UTRACE): Return 0 for
stap_start_task_finder.
* translate.cxx (emit_module_init): Let vma tracker
specific to utrace.
#if ! defined(CONFIG_UTRACE)
/* Dummy definitions for use in sym.c */
struct stap_task_finder_target { };
-static int stap_start_task_finder(void) { return -EINVAL; }
+static int stap_start_task_finder(void) { return 0; }
static void stap_stop_task_finder(void) { }
#else
o->newline() << "#endif";
// PR10228: set up symbol table-related task finders
- o->newline() << "#ifdef STP_NEED_VMA_TRACKER";
+ o->newline() << "#if defined(STP_NEED_VMA_TRACKER) && defined(CONFIG_UTRACE)";
o->newline() << "_stp_sym_init();";
o->newline() << "for (i=0; i<_stp_num_modules; i++) {";
o->newline(1) << "if (_stp_modules[i]->vmcb) {";