This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
@entry() does not work for me
- From: Vasily Tarasov <sectorsize512 at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Tue, 30 Aug 2011 11:44:39 -0400
- Subject: @entry() does not work for me
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