summaryrefslogtreecommitdiffstats
path: root/cache.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-21 11:11:21 -0400
committerDave Brolley <brolley@redhat.com>2009-04-21 11:11:21 -0400
commit623a41aeb47995f6b5790e38f9e0e10959f98b4e (patch)
treee79bd792bfc682f842f804af1c119a751ae18c0c /cache.cxx
parent09fd19d66b9e3318e9e33f604eb2dbe623955123 (diff)
parentd0ea46ceac2e72fe0b86269ea50c004711148158 (diff)
downloadsystemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.gz
systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.xz
systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'cache.cxx')
-rw-r--r--cache.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/cache.cxx b/cache.cxx
index 1e4d7f18..766600a8 100644
--- a/cache.cxx
+++ b/cache.cxx
@@ -310,14 +310,28 @@ clean_cache(systemtap_session& s)
globfree(&cache_glob);
+ //grab info for each typequery user module (.so)
+ glob_str = s.cache_path + "/*/*.so";
+ glob(glob_str.c_str(), 0, NULL, &cache_glob);
+ for (unsigned int i = 0; i < cache_glob.gl_pathc; i++)
+ {
+ string cache_ent_path = cache_glob.gl_pathv[i];
+ struct cache_ent_info cur_info(cache_ent_path, false);
+ if (cur_info.size != 0 && cur_info.weight != 0)
+ {
+ cache_size_b += cur_info.size;
+ cache_contents.insert(cur_info);
+ }
+ }
+
+ globfree(&cache_glob);
+
//grab info for each stapconf cache entry (.h)
glob_str = s.cache_path + "/*/*.h";
glob(glob_str.c_str(), 0, NULL, &cache_glob);
for (unsigned int i = 0; i < cache_glob.gl_pathc; i++)
{
string cache_ent_path = cache_glob.gl_pathv[i];
- cache_ent_path.resize(cache_ent_path.length() - 3);
-
struct cache_ent_info cur_info(cache_ent_path, false);
if (cur_info.size != 0 && cur_info.weight != 0)
{