diff options
author | Josh Stone <jistone@redhat.com> | 2009-03-25 15:47:21 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-03-25 17:40:26 -0700 |
commit | 2a8c27f6bfdf2e7962def6fc8729ebb5fb54c701 (patch) | |
tree | fa368a2296bcc72ba5c5c2c375b5e293ae0c9c94 /hash.h | |
parent | 121e57ae36e2030093f72723b1fb74dc0507ddab (diff) | |
download | systemtap-steved-2a8c27f6bfdf2e7962def6fc8729ebb5fb54c701.tar.gz systemtap-steved-2a8c27f6bfdf2e7962def6fc8729ebb5fb54c701.tar.xz systemtap-steved-2a8c27f6bfdf2e7962def6fc8729ebb5fb54c701.zip |
Add more file stats to the hash
For kernel developers, it may be common practice to reuse the same
kernel build tree for several kernel variants. Our previous hashing
only considered the release version, architecture, and build path, which
may all remain constant for such a developer.
This change adds the file size and mtime of several kernel version files
to the hash, so it should be a bit more robust against collisions.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -30,6 +30,7 @@ public: void add(const char *s) { add((const unsigned char *)s, strlen(s)); } void add(const std::string& s) { add((const unsigned char *)s.c_str(), s.length()); } + void add_file(const std::string& filename); void result(std::string& r); }; |