This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Understand a semantic error in this simplistic kernel function counter script
- From: FOPA Leon constantin <leonconstantin dot fopa at enseeiht dot fr>
- To: Systemtap <systemtap at sourceware dot org>
- Date: Fri, 02 Sep 2016 04:15:37 +0200
- Subject: Understand a semantic error in this simplistic kernel function counter script
- Authentication-results: sourceware.org; auth=none
Hi,
I am writing a systemTap script to count the number of time the
free_hot_page kernel function is call during every 5 seconds.
The simplistic version of the code is the following :
global free_hot_page
probe kernel.function("free_hot_page"){
free_hot_page <<< 1
}
probe timer.s(5) {
free_hot_page <<< 0
hsum = @sum(free_hot_page)
printf("%29s %13d\n", tz_ctime(gettimeofday_s()), hsum)
delete free_hot_page
}
However, running this simple code produce semantic error (see below).
What does this error means and how to fix the problem ?
Best regards,
semantic error: while resolving probe point: identifier 'kernel' at
count-page-cache-release.stp:13:7
source : probe kernel.function("free_hot_page"){
^
semantic error: no match (similar functions: free_arg_page,
free_huge_page, free_one_page, free_p2m_page, __free_one_page)
Pass 2: analysis failed. [man error::pass2]