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: @entry() does not work for me


Please, disregard, the problem was in old systemtap version.

Thanks,
Vasily

On Tue, Aug 30, 2011 at 11:44:39AM -0400, Vasily Tarasov wrote:
> I have a problem with using @entry() function. Such tap works:
> 
> probe syscall.read.return {printd(",", gettimeofday_us(), gettimeofday_us(),
> "\n");}
> 
> But, if I add @entry:
> 
> probe syscall.read.return {printd(",", @entry(gettimeofday_us()),
> gettimeofday_us(), "\n");}
> 
> stap fails with a following message:
> 
> [root@centos-60-64bit bench-scripts]# stap -v --vp 1 -g -DSTP_NO_OVERLOAD
> /tmp/systrace.stp.tmp 0
> SystemTap translator/driver (version 1.2/0.148 non-git sources)
> Copyright (C) 2005-2010 Red Hat, Inc. and others
> This is free software; see the source for copying conditions.
> Session arch: x86_64 release: 2.6.32-71.29.1.el6.x86_64
> Created temporary directory "/tmp/stap2PHm94"
> parse error: unknown statistic operator @entry
>     saw: identifier '@entry' at /tmp/systrace.stp.tmp:3:40
>      source: probe syscall.read.return {printd(",", @entry(gettimeofday_us()),
> gettimeofday_us(), "\n");}
>                                                     ^
> 1 parse error(s).
> Searched "/usr/share/systemtap/tapset/x86_64/*.stp", found 3
> Searched "/usr/share/systemtap/tapset/*.stp", found 65
> Pass 1: parsed user script and 68 library script(s) using
> 83964virt/21000res/2564shr kb, in 100usr/10sys/114real ms.
> Pass 1: parse failed.  Try again with another '--vp 1' option.
> Running rm -rf /tmp/stap2PHm94
> 
> I'm running CentOS 6 x86_64.
> 
> Any suggestions are welcome!
> 
> Thank you,
> Vasily


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