From: Richard J Moore <richardj_moore@uk.ibm.com>
To: "Yi Feng" <ericyifeng@gmail.com>
Cc: systemtap@sources.redhat.com
Subject: Re: Does anybody have a tapset to get the command line of a task?
Date: Fri, 02 Jun 2006 14:57:00 -0000 [thread overview]
Message-ID: <OF2BC2931C.583D3515-ON41257181.00521394-41257181.00523155@uk.ibm.com> (raw)
In-Reply-To: <4acfb6400605301043g43e18125ga54e680da923b454@mail.gmail.com>
Sorry, I have been on vacation. Now I look at my scipt I realise it uses
execname(), which is standard. It doesn't attempt to extract the full
command line.
- -
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"
<ericyifeng@gma
il.com> To
Richard J Moore/UK/IBM@IBMGB
30/05/2006 cc
18:43 systemtap@sources.redhat.com
bcc
Subject
Re: Does anybody have a tapset to
get the command line of a task?
Just want to let you know, I'm still looking forward to your script. :)
Thanks,
Yi Feng
On 5/25/06, Richard J Moore <richardj_moore@uk.ibm.com> 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"
> <ericyifeng@gma
> 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
>
>
>
prev parent reply other threads:[~2006-06-02 14:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 23:33 Yi Feng
2006-05-25 8:51 ` Richard J Moore
2006-05-30 17:43 ` Yi Feng
2006-06-02 14:57 ` Richard J Moore [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OF2BC2931C.583D3515-ON41257181.00521394-41257181.00523155@uk.ibm.com \
--to=richardj_moore@uk.ibm.com \
--cc=ericyifeng@gmail.com \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).