summaryrefslogtreecommitdiffstats
path: root/hash.cxx
diff options
context:
space:
mode:
authorJim Keniston <jkenisto@us.ibm.com>2008-05-12 12:17:20 -0700
committerJim Keniston <jkenisto@us.ibm.com>2008-05-12 12:17:20 -0700
commitc7fe0041d2132e801f72e158854d54da50fc651d (patch)
tree258d955ef4a1ead4ba1102812d962c9c981d873b /hash.cxx
parent8dd6b23de4dd099aa244402192cb3d7be2bda739 (diff)
parentda3fe5fe9641e7c4cc6ae5c4a289ddbc020aca1a (diff)
downloadsystemtap-steved-c7fe0041d2132e801f72e158854d54da50fc651d.tar.gz
systemtap-steved-c7fe0041d2132e801f72e158854d54da50fc651d.tar.xz
systemtap-steved-c7fe0041d2132e801f72e158854d54da50fc651d.zip
Merge commit 'origin/dwarfless'
PR 4311 - Function boundary tracing without debuginfo: Phases 1 and 2
Diffstat (limited to 'hash.cxx')
-rw-r--r--hash.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/hash.cxx b/hash.cxx
index d05be268..c41600d2 100644
--- a/hash.cxx
+++ b/hash.cxx
@@ -97,6 +97,21 @@ find_hash (systemtap_session& s, const string& script)
h.add(s.merge); // '-M'
h.add(s.timing); // '-t'
h.add(s.prologue_searching); // '-P'
+ h.add(s.ignore_vmlinux); // --ignore-vmlinux
+ h.add(s.ignore_dwarf); // --ignore-dwarf
+ h.add(s.consult_symtab); // --kelf, --kmap
+ if (!s.kernel_symtab_path.empty()) // --kmap
+ {
+ h.add(s.kernel_symtab_path);
+ if (stat(s.kernel_symtab_path.c_str(), &st) == 0)
+ {
+ // NB: stat of /proc/kallsyms always returns size=0, mtime=now...
+ // which is a good reason to use the default /boot/System.map-2.6.xx
+ // instead.
+ h.add(st.st_size);
+ h.add(st.st_mtime);
+ }
+ }
for (unsigned i = 0; i < s.macros.size(); i++)
h.add(s.macros[i]);