From: Jey Jay <rjayavrp2@gmail.com>
To: systemtap@sourceware.org
Subject: maxactive(NNNN) usage
Date: Fri, 27 Dec 2013 08:33:00 -0000 [thread overview]
Message-ID: <CAAKGpwT0Hk_7XNY8t49f_qzrXGzTcP51kD4QN--=qKj4jTaGrA@mail.gmail.com> (raw)
All,
Greetings,
Below is a sample script(maxactive not included).
===================================
probe kernel.function("vfs_read").call {
printf("hai: %d\t", bytes_read)
}
probe kernel.function("vfs_read").return {
printf("Testing.... Jay")
}
$/bin/staprun maxactive05.ko -c 'ls'
----- probe hit report:
kernel.function("vfs_read@fs/read_write.c:353").call,
(maxactive05.stp:6:1), hits: 18, cycles: 0min/0avg/0max, from:
kernel.function("vfs_read").call, index: 0
WARNING: Skipped due to missed kretprobe/1 on
'kernel.function("vfs_read@fs/read_write.c:353").return': 3
WARNING: Number of errors: 0, skipped probes: 3
Below is a sample script(maxactive included).
=================================
probe kernel.function("vfs_read").call {
printf("hai: %d\t", bytes_read)
}
probe kernel.function("vfs_read").return.maxactive(1000) {
printf("Testing.... Jay")
}
$/bin/staprun maxactive05.ko -c 'ls'
Note: It prints hai: 0 16 times.
----- probe hit report:
kernel.function("vfs_read@fs/read_write.c:353").call,
(maxactive05.stp:6:1), hits: 18, cycles: 0min/0avg/0max, from:
kernel.function("vfs_read").call, index: 0
But there is no response for .return. i.e I'm expecting
printf("Testing.... Jay") statement to be executed. Any guidance will
help me lot..
Thanks in advance.
Regards
Jeyaram
next reply other threads:[~2013-12-27 8:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-27 8:33 Jey Jay [this message]
2014-01-06 16:46 ` Frank Ch. Eigler
2014-01-07 0:45 ` Jey Jay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAKGpwT0Hk_7XNY8t49f_qzrXGzTcP51kD4QN--=qKj4jTaGrA@mail.gmail.com' \
--to=rjayavrp2@gmail.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).