From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11348 invoked by alias); 13 Jun 2006 22:20:30 -0000 Received: (qmail 11339 invoked by uid 22791); 13 Jun 2006 22:20:26 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relais.videotron.ca (HELO relais.videotron.ca) (24.201.245.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Jun 2006 22:20:20 +0000 Received: from sylvain ([24.203.238.62]) by VL-MH-MR001.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0J0T00K71KPUJO10@VL-MH-MR001.ip.videotron.ca> for systemtap@sourceware.org; Tue, 13 Jun 2006 18:20:18 -0400 (EDT) Date: Tue, 13 Jun 2006 22:20:00 -0000 From: Sylvain Fourmanoit Subject: Matching function parameters and corresponding return value X-X-Sender: sylvain@sylvain To: systemtap@sourceware.org Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q2/txt/msg00618.txt.bz2 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 "Don't fear the pen. When in doubt, draw a pretty picture." --Baker's Third Law of Design.