diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-05-12 19:37:31 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-05-12 19:37:31 -0400 |
commit | 9f39274f44ddf885b311682f313a2dcafcdc9040 (patch) | |
tree | a5c407eac2af43edb27f5c36c06649487779666b /hash.cxx | |
parent | 49f426d9fd471bbdabb0e7a25525d0884b7e8831 (diff) | |
parent | d1e750063b97a968cb3ae86afaa25646f32b4b71 (diff) | |
download | systemtap-steved-9f39274f44ddf885b311682f313a2dcafcdc9040.tar.gz systemtap-steved-9f39274f44ddf885b311682f313a2dcafcdc9040.tar.xz systemtap-steved-9f39274f44ddf885b311682f313a2dcafcdc9040.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
The beginnings of a no-dwarf version of syscalls.stp. Selected
Added CPU REGISTERS and NUMBERED FUNCTION ARGUMENTS sections to
Replaced [u_]arg() with [u]int_arg(), [u]long_arg(), {s|u}32_arg(),
Added support for register(), u_register(), arg(), and u_arg() functions.
* testsuite/{semok,semko}/nodwf*.stp
PR 4311 - Function boundary tracing without debuginfo: Phase I
Diffstat (limited to 'hash.cxx')
-rw-r--r-- | hash.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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]); |