From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA07F395441B; Tue, 29 Sep 2020 17:12:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA07F395441B From: "m.j.harvey at imperial dot ac.uk" To: systemtap@sourceware.org Subject: [Bug tapsets/26666] nfsd tapset - fh_export and fh_dentry always NULL for NFSv3 Date: Tue, 29 Sep 2020 17:12:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: m.j.harvey at imperial dot ac.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2020 17:12:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26666 --- Comment #3 from MJH --- (In reply to Frank Ch. Eigler from comment #2) > Do you think we should extend the example, or make a nfsd3_watch.stp samp= le? I'd be inclined to make a separate one, maybe renaming the others nfs4*. The probe I peosted earlier relied on a return probe being able to access f= inal values of an argument. This worked on my test machine but not in our produc= tion environment, and I understand the former is not intended behaviour. So, her= e's what we are using now: global ip global pf global uid probe module("nfsd").function("nfsd3_proc_*") { ip[tid()] =3D addr_from_rqst_str($rqstp) pf[tid()] =3D probefunc() uid[tid()] =3D $rqstp->rq_cred->cr_uid->val } probe module("nfsd").function("nfsd_permission") { printf("%d %s %s : %s\n", uid[tid()], pf[tid()], ip[tid()], inode_path( $dentry->d_inode ) ) } --=20 You are receiving this mail because: You are the assignee for the bug.=