summaryrefslogtreecommitdiffstats
path: root/runtime/staprun
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-10-09 13:12:08 +1000
committerddomingo <ddomingo@redhat.com>2008-10-09 13:12:08 +1000
commit37cda13ed305fc4887536166c232f4aee087d862 (patch)
tree6b877ba9b2ed71f32842dacb18e09732e0c307a4 /runtime/staprun
parent9e522dfc27872bd28ab5a4f7fbfbfd7cc843e3cb (diff)
parent0d633db21595f7160d0f7a767ab92181284d8adb (diff)
downloadsystemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.tar.gz
systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.tar.xz
systemtap-steved-37cda13ed305fc4887536166c232f4aee087d862.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/staprun')
-rw-r--r--runtime/staprun/staprun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index f8a08876..d23945e6 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -370,6 +370,11 @@ int send_relocation_kernel ()
}
fclose (kallsyms);
if (!done_with_kallsyms) srkrc = -1;
+ /* detect note section, send flag if there
+ * NB: address=2 represents existed note, the real one in _stp_module
+ */
+ if (srkrc != -1 && !access("/sys/kernel/notes", R_OK))
+ send_a_relocation ("kernel", ".note.gnu.build-id", 2);
}
return srkrc;