This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: precompiled probing scenarios
Hi -
dsmith wrote:
> [...]
> I don't hash the getuid(), since:
> - by default your cache is stored in your home directory
> - who you are doesn't change the pass 2-4 output
That's all true. One possible reason for including getuid() anyway is
so that two different sudo-empowered people can run the same script at
the same time without one having to disable his cache.
> Nope. I actually cache the module and the C file so I can skip pass 3
> but still preserve semantics.
OK.
> Hmm. How about something like:
> Pass 3: Using cached
> /home/dsmith/.stap_cache/d/8/stap_d833fd040735ddde57a23bebb4456542_201.c
> Pass 4: Using cached
> /home/dsmith/.stap_cache/d/8/stap_d833fd040735ddde57a23bebb4456542_201.ko
Works for me. (It may be a worthwhile minor simplification to use
one-byte /d8/ as a partitioning subdirectory rather than two-nibble
/d/8/ scheme. 256 files in a single directory are well handled in our
filesystems.)
- FChE