From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27791 invoked by alias); 30 May 2006 17:43:40 -0000 Received: (qmail 27782 invoked by uid 22791); 30 May 2006 17:43:39 -0000 X-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,DK_SIGNED,DK_VERIFIED,RCVD_IN_BL_SPAMCOP_NET,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 May 2006 17:43:36 +0000 Received: by nf-out-0910.google.com with SMTP id c29so155673nfb for ; Tue, 30 May 2006 10:43:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OAfbgbpLPyT+aojImDDDBzbWEs7zYnzJ27S5uDl5Cab0y4CMwnIIrFMtDKlZg22sUT9papcwASz2Qxec/s27ONVpGSYiCUNojADnKnxQf1Mse5O2/HVMga9cl3DYTVNX9kM/HiC5Tk7mWGZkvToAmilQ0dFU1Ti2EwIIeo+mdGo= Received: by 10.49.5.1 with SMTP id h1mr2783426nfi; Tue, 30 May 2006 10:43:33 -0700 (PDT) Received: by 10.48.206.13 with HTTP; Tue, 30 May 2006 10:43:32 -0700 (PDT) Message-ID: <4acfb6400605301043g43e18125ga54e680da923b454@mail.gmail.com> Date: Tue, 30 May 2006 17:43:00 -0000 From: "Yi Feng" To: "Richard J Moore" Subject: Re: Does anybody have a tapset to get the command line of a task? Cc: systemtap@sources.redhat.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4acfb6400605241633s7c411b66w3410ee10a84ef106@mail.gmail.com> 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/msg00518.txt.bz2 Just want to let you know, I'm still looking forward to your script. :) Thanks, Yi Feng On 5/25/06, Richard J Moore wrote: > > > > > Yes, I believe I have, but it's on a different system so will post later > unless someone else does. > - - > Richard J Moore > IBM Advanced Linux Response Team - Linux Technology Centre > MOBEX: 264807; Mobile (+44) (0)7739-875237 > Office: (+44) (0)1962-817072 > > > > "Yi Feng" > il.com> To > Sent by: systemtap@sources.redhat.com > systemtap-owner cc > @sourceware.org > bcc > > 25/05/2006 Subject > 00:33 Does anybody have a tapset to get > the command line of a task? > > > > > > > We already have pid(), tid() and execname() in tapset/context.stp. I'm > wondering if somebody has written a tapset to get the command line of > the (current) task as well. Looking at proc_pid_cmdline in > fs/proc/base.c, I understand this information is in the user memory > tracked from the mm struct of the task (instead of the task struct > itself), so there is much more indirection to get it than pid, tid and > execname. > > Thanks, > Yi Feng > > >