From 9abec5383dd77c0e164f043da3523d6cf4bf992f Mon Sep 17 00:00:00 2001 From: fche Date: Mon, 29 Jan 2007 20:32:00 +0000 Subject: 2007-01-29 Frank Ch. Eigler * main.cxx (main): For successful last_pass=4, print compiled module name. * cache.cxx (get_from_cache): Ditto. 2007-01-29 Frank Ch. Eigler * systemtap.base/cache.exp (stap_compile): Accept new -p4 output. --- cache.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cache.cxx') 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 -- cgit