summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 306baff1..9a817cba 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1159,6 +1159,9 @@ semantic_pass (systemtap_session& s)
if (rc == 0 && ! s.unoptimized) rc = semantic_pass_optimize2 (s);
if (rc == 0) rc = semantic_pass_vars (s);
if (rc == 0) rc = semantic_pass_stats (s);
+
+ if (s.probes.size() == 0 && !s.listing_mode)
+ throw semantic_error ("no probes found");
}
catch (const semantic_error& e)
{
@@ -1188,7 +1191,10 @@ systemtap_session::systemtap_session ():
hrtimer_derived_probes(0),
perfmon_derived_probes(0),
procfs_derived_probes(0),
- op (0), up (0)
+ op (0), up (0),
+ sym_kprobes_text_start (0),
+ sym_kprobes_text_end (0),
+ sym_stext (0)
{
}
@@ -2136,9 +2142,6 @@ semantic_pass_optimize1 (systemtap_session& s)
semantic_pass_opt4 (s, relaxed_p);
}
- if (s.probes.size() == 0)
- throw semantic_error ("no probes found");
-
return rc;
}
@@ -2161,9 +2164,6 @@ semantic_pass_optimize2 (systemtap_session& s)
semantic_pass_opt5 (s, relaxed_p);
}
- if (s.probes.size() == 0)
- throw semantic_error ("no probes found");
-
return rc;
}