public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* 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

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).