diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-05-17 18:32:37 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-05-17 18:32:37 -0400 |
commit | 332ddc9f7354fe51c32c504087575b3ea2b70990 (patch) | |
tree | 63a82b6d7fbf7ed591b9c3746e05a724aff8e2af /elaborate.cxx | |
parent | 0fe2b97c7b967d833b5588dbf1ef763bb4440ed3 (diff) | |
parent | 277f2b79b02bf69a1d72d05b06086b07bcc6a113 (diff) | |
download | systemtap-steved-332ddc9f7354fe51c32c504087575b3ea2b70990.tar.gz systemtap-steved-332ddc9f7354fe51c32c504087575b3ea2b70990.tar.xz systemtap-steved-332ddc9f7354fe51c32c504087575b3ea2b70990.zip |
Merge commit 'origin/master' into pr6429-comp-unwindsyms
* commit 'origin/master':
suppress "pass-2 failed" messages from "stap -l FOOBAR"; just produce empty output
make the mod_cu_function_cache a hash_map instead of map for more go-go
PR5643: function caching for much faster syscall.* pass-2 processing
Fixed PR 6499 (utrace probe crash).
note "make installcheck" in post-build checkout
Ignores signals when removing the temporary directory.
Add appropriate ChangeLog entry for earlier checkin.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 14 |
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; } |