From 9b3c54b2fc836e20a0a7895aa759938e62eaacf9 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 1 Mar 2010 18:42:18 -0800 Subject: 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. --- cache.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 89f44a43..548fa8c8 100644 --- a/cache.h +++ b/cache.h @@ -1,4 +1,7 @@ -void add_to_cache(systemtap_session& s); -bool get_from_cache(systemtap_session& s); +void add_script_to_cache(systemtap_session& s); +bool get_script_from_cache(systemtap_session& s); + +void add_stapconf_to_cache(systemtap_session& s); +bool get_stapconf_from_cache(systemtap_session& s); /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */ -- cgit