]> sourceware.org Git - systemtap.git/commitdiff
modinfo: Apply to the uprobes hash name too
authorJosh Stone <jistone@redhat.com>
Tue, 20 Dec 2011 22:36:53 +0000 (14:36 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 20 Dec 2011 22:36:53 +0000 (14:36 -0800)
Since commit 76d01f36 added the modinfo values to uprobes.ko, then we
need to account for that in the hashed name used for caching.

hash.cxx

index a819b906689830e307c029fdd1f5edec03877bd6..c435a03e29e76d016ecf26555c7112b842c044bb 100644 (file)
--- a/hash.cxx
+++ b/hash.cxx
@@ -382,6 +382,10 @@ find_uprobes_hash (systemtap_session& s)
   for (unsigned i = 0; i < s.kbuildflags.size(); i++)
     h.add("Kbuildflags: ", s.kbuildflags[i]);
 
+  // Add any custom --modinfo strings
+  for (unsigned i = 0; i < s.modinfos.size(); i++)
+    h.add("MODULE_INFO: ", s.modinfos[i]);
+
   // Get the directory path to store our cached module
   string result, hashdir;
   h.result(result);
This page took 0.030594 seconds and 5 git commands to generate.