This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Why is the same log printed twice when using probe alias?
- From: Nan Xiao <xiaonan830818 at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Tue, 1 Dec 2015 17:06:11 +0800
- Subject: Why is the same log printed twice when using probe alias?
- Authentication-results: sourceware.org; auth=none
Hi all,
I am writing a simple script to test probe alias:
# cat test.stp
#!/usr/bin/stap
probe timer_alias = timer.s(3) {printf("Entering timer\n")}
probe timer_alias += timer.s(3) {printf("Leaving timer\n")}
probe timer_alias {printf("In timer\n")}
But executing it will outputs "In timer" twice:
# ./test.stp
Entering timer
In timer
In timer
Leaving timer
Entering timer
In timer
In timer
Leaving timer
.......
Is it the expected behavior? How to understand it?
Thanks very much in advance!
Best Regards
Nan Xiao