summaryrefslogtreecommitdiffstats
path: root/cache.cxx
diff options
context:
space:
mode:
authorfche <fche>2007-01-29 20:32:00 +0000
committerfche <fche>2007-01-29 20:32:00 +0000
commit9abec5383dd77c0e164f043da3523d6cf4bf992f (patch)
tree535d20f5b720d7b235021ba541f49fd54ec6074c /cache.cxx
parent4c6d6df0e248aba4accec19d74bdbaaf2219a7a6 (diff)
downloadsystemtap-steved-9abec5383dd77c0e164f043da3523d6cf4bf992f.tar.gz
systemtap-steved-9abec5383dd77c0e164f043da3523d6cf4bf992f.tar.xz
systemtap-steved-9abec5383dd77c0e164f043da3523d6cf4bf992f.zip
2007-01-29 Frank Ch. Eigler <fche@elastic.org>
* main.cxx (main): For successful last_pass=4, print compiled module name. * cache.cxx (get_from_cache): Ditto. 2007-01-29 Frank Ch. Eigler <fche@elastic.org> * systemtap.base/cache.exp (stap_compile): Accept new -p4 output.
Diffstat (limited to 'cache.cxx')
-rw-r--r--cache.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/cache.cxx b/cache.cxx
index 247bb96b..b17c7af6 100644
--- a/cache.cxx
+++ b/cache.cxx
@@ -1,3 +1,12 @@
+// systemtap cache manager
+// Copyright (C) 2006-2007 Red Hat Inc.
+//
+// This file is part of systemtap, and is free software. You can
+// redistribute it and/or modify it under the terms of the GNU General
+// Public License (GPL); either version 2, or (at your option) any
+// later version.
+
+
#include "session.h"
#include "cache.h"
#include "util.h"
@@ -108,6 +117,9 @@ get_from_cache(systemtap_session& s)
ifstream i (s.translated_source.c_str());
cout << i.rdbuf();
}
+ // And similarly, display probe module name for -p4.
+ if (s.last_pass == 4)
+ cout << s.hash_path << endl;
// If everything worked, tell the user. We need to do this here,
// since if copying the cached C file works, but copying the cached