This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/4281] two problems with "stap -m"


------- Additional Comments From dsmith at redhat dot com  2007-03-26 19:07 -------
The reason why the use of '-m' disables the cache is that we do cache lookups
based on filenames.  The hash of the compile environment, systemtap options, and
pass 2 output becomes the module name and filename.  If we can find that
filename in the cache directory, we reuse it.

Let's say you run "stap -m foo script1.stp" and we somehow cache the result. 
Then you run "stap -m foo script2.stp" - obviously you don't want the cached
result, but we'd have no way of knowing that.

We could theoretically rename the module filename to its hash name when storing
it in the cache, but then you couldn't use the module directly from the cache -
you'd have to know to rename it back to the original '-m' name.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4281

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]