qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 0/8] [RfC] fix tracing for modules


From: Gerd Hoffmann
Subject: Re: [PATCH v3 0/8] [RfC] fix tracing for modules
Date: Fri, 9 Apr 2021 11:10:25 +0200

  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

[Prev in Thread] Current Thread [Next in Thread]