This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: How does stap execute probe aliases?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Nan Xiao <xiaonan830818 at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Fri, 20 Nov 2015 11:12:48 -0500
- Subject: Re: How does stap execute probe aliases?
- Authentication-results: sourceware.org; auth=none
- References: <CA+MhoaPAiF2zf6J=3bCP=5Dtc=60T0+_igCSZk7028kTua0y8g at mail dot gmail dot com>
xiaonan830818 wrote:
> I try to execute the following script from this page
> (https://sourceware.org/systemtap/SystemTap_Beginners_Guide/targetavailable.html#available):
> [...]
> Why can't the stap find the probes? Thanks in advance!
Because that script defines aliases only (kind of like a #define FOO BAR
in a C program), and doesn't instantiate them (FOO in a C program).
So add
probe vm.pagefault { /* ... */ }
to your script.
- FChE