diff options
author | Dave Brolley <brolley@redhat.com> | 2009-03-23 12:16:56 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-03-23 12:16:56 -0400 |
commit | d171a9ff5fda69cab247d2afd06ec5952941969e (patch) | |
tree | 3127f0a0babb18e62bbe17754462d1366de7a0ad /hash.cxx | |
parent | c11e62bef0f85147c96aeb7d0a7f9fd69da51db6 (diff) | |
parent | d4db5608dbc31868a2041f20ea3f473eef3e61fd (diff) | |
download | systemtap-steved-d171a9ff5fda69cab247d2afd06ec5952941969e.tar.gz systemtap-steved-d171a9ff5fda69cab247d2afd06ec5952941969e.tar.xz systemtap-steved-d171a9ff5fda69cab247d2afd06ec5952941969e.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'hash.cxx')
-rw-r--r-- | hash.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -237,4 +237,22 @@ find_hash (systemtap_session& s, const string& script) find_script_hash(s, script, base); } + +void +find_tracequery_hash (systemtap_session& s) +{ + hash h; + get_base_hash(s, h); + + // The basic hash should be good enough for the tracepoint query module + + // Get the directory path to store our cached module + string result, hashdir; + h.result(result); + if (!create_hashdir(s, result, hashdir)) + return; + + s.tracequery_path = hashdir + "/tracequery_" + result + ".ko"; +} + /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */ |