diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
commit | 623a41aeb47995f6b5790e38f9e0e10959f98b4e (patch) | |
tree | e79bd792bfc682f842f804af1c119a751ae18c0c /hash.cxx | |
parent | 09fd19d66b9e3318e9e33f604eb2dbe623955123 (diff) | |
parent | d0ea46ceac2e72fe0b86269ea50c004711148158 (diff) | |
download | systemtap-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 'hash.cxx')
-rw-r--r-- | hash.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -273,4 +273,24 @@ find_tracequery_hash (systemtap_session& s) s.tracequery_path = hashdir + "/tracequery_" + result + ".ko"; } + +void +find_typequery_hash (systemtap_session& s, const string& name, string& module) +{ + hash h; + get_base_hash(s, h); + + // Add the typequery name to distinguish the hash + h.add(name); + + // Get the directory path to store our cached module + string result, hashdir; + h.result(result); + if (!create_hashdir(s, result, hashdir)) + return; + + module = hashdir + "/typequery_" + result + + (name[0] == 'k' ? ".ko" : ".so"); +} + /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */ |