* maxactive(NNNN) usage
@ 2013-12-27 8:33 Jey Jay
2014-01-06 16:46 ` Frank Ch. Eigler
0 siblings, 1 reply; 3+ messages in thread
From: Jey Jay @ 2013-12-27 8:33 UTC (permalink / raw)
To: systemtap
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: maxactive(NNNN) usage
2013-12-27 8:33 maxactive(NNNN) usage Jey Jay
@ 2014-01-06 16:46 ` Frank Ch. Eigler
2014-01-07 0:45 ` Jey Jay
0 siblings, 1 reply; 3+ messages in thread
From: Frank Ch. Eigler @ 2014-01-06 16:46 UTC (permalink / raw)
To: Jey Jay; +Cc: systemtap
Jey Jay <rjayavrp2@gmail.com> writes:
> [...]
> Below is a sample script(maxactive included).
> [...]
> ----- 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.. Jeyaram
This is working here on various Fedora/RHEL platforms and on various
systemtap versions. Perhaps the data generated by stap-report might
help point a finger at a kernel or systemtap version or configuration
problem.
- FChE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: maxactive(NNNN) usage
2014-01-06 16:46 ` Frank Ch. Eigler
@ 2014-01-07 0:45 ` Jey Jay
0 siblings, 0 replies; 3+ messages in thread
From: Jey Jay @ 2014-01-07 0:45 UTC (permalink / raw)
To: Frank Ch. Eigler; +Cc: systemtap
Frank Ch. Eigler <fche@redhat.com> writes:
> This is working here on various Fedora/RHEL platforms and on various
> systemtap versions. Perhaps the data generated by stap-report might
> help point a finger at a kernel or systemtap version or configuration
> problem.
There was a problem in kprobes. Now this works fine. thanks for the support.
- Jeyaram
On Tue, Jan 7, 2014 at 1:46 AM, Frank Ch. Eigler <fche@redhat.com> wrote:
> Jey Jay <rjayavrp2@gmail.com> writes:
>
>> [...]
>> Below is a sample script(maxactive included).
>> [...]
>> ----- 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.. Jeyaram
>
> This is working here on various Fedora/RHEL platforms and on various
> systemtap versions. Perhaps the data generated by stap-report might
> help point a finger at a kernel or systemtap version or configuration
> problem.
>
> - FChE
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-07 0:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-27 8:33 maxactive(NNNN) usage Jey Jay
2014-01-06 16:46 ` Frank Ch. Eigler
2014-01-07 0:45 ` Jey Jay
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).