This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Matching function parameters and corresponding return value
- From: Sylvain Fourmanoit <syfou at users dot sourceforge dot net>
- To: systemtap at sourceware dot org
- Date: Tue, 13 Jun 2006 18:20:18 -0400 (EDT)
- Subject: Matching function parameters and corresponding return value
Hi all,
I would like to watch calls to a preemptible function such as sys_open():
ideally, I would like to know both the tentatively accessed files and the
success (or not) of the various calls.
But I don't see how to do this: of course, I can without problem
register a jprobe and a kretprobe on sys_open(), both how do I correlate
pairs of probe calls reliably? Or is it just the wrong approach?
Any insight on how to do this, either with SystemTap or directly
with Kprobes would be really appreciated!
--
Sylvain <syfou@users.sourceforge.net>
"Don't fear the pen. When in doubt, draw a pretty picture."
--Baker's Third Law of Design.