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]

Re: precompiled probing scenarios


Hi -

On Fri, Oct 20, 2006 at 02:26:32PM -0500, David Smith wrote:
> [...]
> Pass 4: compiled C into "stap_d833fd040735ddde57a23bebb4456542_201.ko" 

Is that "_201" at the end the getuid()?  I wonder if maybe that could
be hashed into the content instead.

> Copying /tmp/stapYrsXWC/stap_d833fd040735ddde57a23bebb4456542_201.ko to 
> /home/dsmith/.stap_cache/d/8/stap_d833fd040735ddde57a23bebb4456542_201.ko
> Copying /tmp/stapYrsXWC/stap_d833fd040735ddde57a23bebb4456542_201.c to 
> /home/dsmith/.stap_cache/d/8/stap_d833fd040735ddde57a23bebb4456542_201.c

These messages should probably show up only under -vv (verbosity 2)
or higher.

> [...]
> # stap -v -e 'probe begin { log("hi") }' [...]
> Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 global(s) in 
> 10usr/0sys/11real ms.
> Using cached result 
> "/home/dsmith/.stap_cache/d/8/stap_d833fd040735ddde57a23bebb4456542_201.ko" 
> as "/tmp/stapJFisJO/stap_d833fd040735ddde57a23bebb4456542_201.ko"

This "Using cached result" part could be rephrased as a pair:

  Pass 3: skipped translation
  Pass 4: reused cached module stap_deadbeef

> [...]  A module (currently) gets pulled from the cache after pass 2,
> even if '-p3' or '-p4' was specified on the command line.

The translator would still need to spit out (regenerate) the C source
code for a -p3 run.

- FChE


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