diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-02 15:57:58 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-02 16:05:18 -0800 |
commit | d105f6642677bd9ef1b20d1ba180ba0163cb0fa6 (patch) | |
tree | 49c4869c7c4a687e692bb33beabab3b008beb43d /session.h | |
parent | 9b3c54b2fc836e20a0a7895aa759938e62eaacf9 (diff) | |
download | systemtap-steved-d105f6642677bd9ef1b20d1ba180ba0163cb0fa6.tar.gz systemtap-steved-d105f6642677bd9ef1b20d1ba180ba0163cb0fa6.tar.xz systemtap-steved-d105f6642677bd9ef1b20d1ba180ba0163cb0fa6.zip |
PR11246 cont'd: Add options for cache control
--disable-cache : turn off all caching
--clean-cache : clean up stale entries and then quit
--poison-cache : force regeneration of items that would have hit the cache
These are undocumented for now, until we decide whether they are
generally useful.
* main.cxx (main): Parse the new options.
* session.h (systemtap_session): Add poison_cache; document the others.
* clean.cxx (clean_cache): No longer static.
(get_stapconf_from_cache, get_script_from_cache): Respect poison.
* tapsets.cxx (tracepoint_builder::get_tracequery_module): Ditto.
(dwarf_cast_expanding_visitor::filter_special_modules): Ditto.
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -127,12 +127,13 @@ struct systemtap_session // and/or main.cxx(main). // Cache data - bool use_cache; - bool use_script_cache; - std::string cache_path; - std::string hash_path; - std::string stapconf_path; - hash *base_hash; + bool use_cache; // control all caching + bool use_script_cache; // control caching of pass-3/4 output + bool poison_cache; // consider the cache to be write-only + std::string cache_path; // usually ~/.systemtap/cache + std::string hash_path; // path to the cached script module + std::string stapconf_path; // path to the cached stapconf + hash *base_hash; // hash common to all caching // dwarfless operation bool consult_symtab; |