diff options
author | wenji <wjhuang@localhost.localdomain> | 2009-06-27 09:10:18 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-07-12 21:39:07 -0400 |
commit | 4a4edc21a14792a4cc240b601912734027945ae8 (patch) | |
tree | 04c8fc2a169353aae62f249365de9fa7dd9e4d1d /tapsets.cxx | |
parent | 5a5732e52738b4f00995e705a170230c106885b6 (diff) | |
download | systemtap-steved-4a4edc21a14792a4cc240b601912734027945ae8.tar.gz systemtap-steved-4a4edc21a14792a4cc240b601912734027945ae8.tar.xz systemtap-steved-4a4edc21a14792a4cc240b601912734027945ae8.zip |
PR10075: emit address in probe registration logic
* tapsets.cxx(dwarf_derived_probe_group::emit_module_init,
kprobe_derived_probe_group::emit_module_init): print address.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index aecdca61..dbf3c55d 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -3237,7 +3237,7 @@ dwarf_derived_probe_group::emit_module_init (systemtap_session& s) s.op->newline() << "if (rc) {"; // PR6749: tolerate a failed register_*probe. s.op->newline(1) << "sdp->registered_p = 0;"; s.op->newline() << "if (!sdp->optional_p)"; - s.op->newline(1) << "_stp_warn (\"probe %s registration error (rc %d)\", probe_point, rc);"; + s.op->newline(1) << "_stp_warn (\"probe %s (address 0x%lx) registration error (rc %d)\", probe_point, relocated_addr, rc);"; s.op->newline(-1) << "rc = 0;"; // continue with other probes // XXX: shall we increment numskipped? s.op->newline(-1) << "}"; @@ -4787,7 +4787,7 @@ kprobe_derived_probe_group::emit_module_init (systemtap_session& s) s.op->newline() << "if (rc) {"; // PR6749: tolerate a failed register_*probe. s.op->newline(1) << "sdp->registered_p = 0;"; s.op->newline() << "if (!sdp->optional_p)"; - s.op->newline(1) << "_stp_warn (\"probe %s registration error (rc %d)\", probe_point, rc);"; + s.op->newline(1) << "_stp_warn (\"probe %s (address 0x%lx) registration error (rc %d)\", probe_point, addr, rc);"; s.op->newline(-1) << "rc = 0;"; // continue with other probes // XXX: shall we increment numskipped? s.op->newline(-1) << "}"; |