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]

Why is the same log printed twice when using probe alias?


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


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