summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorfche <fche>2007-03-22 20:54:27 +0000
committerfche <fche>2007-03-22 20:54:27 +0000
commit37ebca01742fea41602ecb5b471d3367a1e2c64b (patch)
tree7aadf5c821ef9744a72ba236bfabdad745ca3d9f /runtime
parent41f49ea56914d10d91c292a80d864fb8cee4d6f1 (diff)
downloadsystemtap-steved-37ebca01742fea41602ecb5b471d3367a1e2c64b.tar.gz
systemtap-steved-37ebca01742fea41602ecb5b471d3367a1e2c64b.tar.xz
systemtap-steved-37ebca01742fea41602ecb5b471d3367a1e2c64b.zip
2007-03-22 Frank Ch. Eigler <fche@elastic.org>
PR 4224. * staptree.h (probe): Add privileged field. * elaborate.cxx, parse.cxx: Pass privileged flag to probes. * tapsets.cxx (dwarf_query): Add has_absolute field. (dwarf_derived_probe ctor): Tolerate it. (register_patterns): Expose it. (dwarf_builder::build): Implement it with no dwfl whatsoever. * NEWS: Document kernel.statement().absolute. * stapprobes.5.in: Ditto. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> PR 4224. * systemtap.base/probefunc.exp: Use kernel.statement().absolute instead with grep-found schedule_tick address. * semko/thirtyseven.stp, thirtyeight.stp: New tests. * buildok/twentyeight.stp: New test. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> * sym.c (_stp_module_relocate): Tolerate empty section string.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ChangeLog5
-rw-r--r--runtime/sym.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 96471c74..427c804d 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-22 Frank Ch. Eigler <fche@elastic.org>
+
+ * sym.c (_stp_module_relocate): Tolerate empty section string.
+
2007-03-21 Martin Hunt <hunt@redhat.com>
* sym.h: Declare _stp_module_relocate.
@@ -8,6 +12,7 @@
(_stp_symbol_snprint): Ditto.
2007-03-21 Martin Hunt <hunt@redhat.com>
+
* map.c (_stp_map_init): Fix signed vs unsigned comparison warning.
2007-03-20 Frank Ch. Eigler <fche@elastic.org>
diff --git a/runtime/sym.c b/runtime/sym.c
index a461157e..8d344b4a 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -35,7 +35,9 @@ unsigned long _stp_module_relocate (const char *module, const char *section, uns
dbug("_stp_relocate_module: %s, %s, %lx\n", module, section, offset);
STP_LOCK_MODULES;
- if (! module || _stp_num_modules == 0) {
+ if (! module
+ || !strcmp (section, "") /* absolute, unrelocated address */
+ || _stp_num_modules == 0) {
STP_UNLOCK_MODULES;
return offset;
}