Hi,

> > semantic error: unresolved function pid: identifier 'pid' at 
> > /home/kraxel/qemu-install/share/systemtap/tapset/qemu-system-x86_64-log.stp:5451:41
> >         source:     printf("%d@%d qxl_soft_reset %d\n", pid(), 
> > gettimeofday_ns(), qid)

> Hmm, strange, makes me think we have a bug causing it to not pull in
> global functions.

Yep.  qemu-trace-stap sets SYSTEMTAP_TAPSET to
/home/kraxel/qemu-install/share/systemtap/tapset.  Which makes stap use
that exclusively and ignore /usr/share/systemtap/tapset.  Which in turn
makes pid() disappear because that apparently is defined somewhere in
those tapsets.

IOW: It's broken for any $prefix != "/usr".

Using stap -I /home/kraxel/qemu-install/share/systemtap/tapset seems to
work fine, I guess qemu-trace-stap should use that instead ...

take care,
  Gerd


Reply via email to