This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Monitoring Modules
- From: Daniel Migault <mglt dot biz at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 19 May 2011 19:27:18 +0200
- Subject: Monitoring Modules
- Reply-to: mglt dot biz at gmail dot com
Hi,
To measure how IPsec influences the performances of our system, we would
like to record the module of the current task. We use the probemod()
function but it only returns " <unknown> ".
Do you know how could we get the module's name performing the task?
We would appreciate any suggestions. This is our code based on
thread-times.stp
[...]
tid=tid(); e=execname()
if (!user_mode()) {
module=probemod()
kticks[e,tid] <<< 1
} else {
module="u_space"
uticks[e,tid] <<< 1
}
[..]
Regards,
Daniel