summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/task_finder.c2
-rw-r--r--translate.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/task_finder.c b/runtime/task_finder.c
index 5ef27eef..d6b2b6da 100644
--- a/runtime/task_finder.c
+++ b/runtime/task_finder.c
@@ -4,7 +4,7 @@
#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
diff --git a/translate.cxx b/translate.cxx
index 1c6d4fdb..7e0d9d96 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1162,7 +1162,7 @@ c_unparser::emit_module_init ()
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) {";