This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/4281] two problems with "stap -m"
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 Mar 2007 18:07:58 -0000
- Subject: [Bug translator/4281] two problems with "stap -m"
- References: <20070326172231.4281.hunt@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.