diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-01 18:42:18 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-02 16:05:18 -0800 |
commit | 9b3c54b2fc836e20a0a7895aa759938e62eaacf9 (patch) | |
tree | a9db703d81f4fbabe886c5acb77d6c5cb0964a07 /hash.h | |
parent | 6b067d7d20c10acb68d768003bf8031f155e5f39 (diff) | |
download | systemtap-steved-9b3c54b2fc836e20a0a7895aa759938e62eaacf9.tar.gz systemtap-steved-9b3c54b2fc836e20a0a7895aa759938e62eaacf9.tar.xz systemtap-steved-9b3c54b2fc836e20a0a7895aa759938e62eaacf9.zip |
PR11246 cont'd: Separate script/stapconf caching
I'm separating the caching and creation logic for stapconf, so it can be
conditionalized on s.use_cache instead of s.use_script_cache.
* session.h (systemtap_session): Store base_hash for better reuse.
* hash.cxx (get_base_hash): Get the base from the session, or build it.
(find_hash): Split into separate script/stapconf versions.
* cache.cxx (add_to_cache, get_from_cache): Ditto.
* main.cxx (main): Adapt caller, and delay stapconf until pass-4.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -41,7 +41,8 @@ public: std::string get_parms(); }; -void find_hash (systemtap_session& s, const std::string& script); +void find_script_hash (systemtap_session& s, const std::string& script); +void find_stapconf_hash (systemtap_session& s); std::string find_tracequery_hash (systemtap_session& s, const std::vector<std::string>& headers); std::string find_typequery_hash (systemtap_session& s, const std::string& name); |