From: Kenji Arisawa <arisawa@ar.aichi-u.ac.jp>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] validateaddress
Date: Tue, 11 Aug 2009 14:26:45 +0900 [thread overview]
Message-ID: <7ED1969C-3B1B-4FE4-8E2D-5B486E636E26@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <db54ced81720f4ae901ffb396e8c9fb3@quanstro.net>
Thanks Erik,
ar% ps -a
...
none 1236297 48578:46 0:00 172K Running
validateaddress /mail/lib/validateaddress ar.aichi-u.ac.jp!hatbox
...
ar% ACID -l /sys/lib/acid/truss 1236297
/proc/1236297/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
/sys/lib/acid/truss
acid: truss()
no output, so I examined the status using ps
ar% ps -a
...
none 1236297 48578:46 0:00 172K Running
validateaddress /mail/lib/validateaddress ar.aichi-u.ac.jp!hatbox
...
bootes 2056324 0:00 0:00 236K Await ACID /bin/ACID -
l /sys/lib/acid/truss 1236297
bootes 2056328 0:00 0:00 1472K Stopwait acid -l /sys/lib/
acid/truss 1236297
bootes 2056329 0:00 0:00 188K Pread ps -a
where ACID does
chmod 660 /proc/1236297/mem
acid -l /sys/lib/acid/truss 1236297
Thanks
Kenji Arisawa
On 2009/08/11, at 13:07, erik quanstrom wrote:
> On Mon Aug 10 23:59:56 EDT 2009, arisawa@ar.aichi-u.ac.jp wrote:
>> Thanks Erik.
>>
>> However I don't know how to truss running process.
>>
>> Kenji Arisawa
>>
>
> for example:
>
> ; cat > truss.c
> #include <u.h>
> #include <libc.h>
>
> void
> main(void)
> {
> for(;;)
> sleep(10*1000);
> }
> ; 8c -FVTw truss.c && 8l -o truss truss.8
> ; truss&
> ; acid -l/sys/lib/acid/truss $apid
> /proc/116801/text:386 plan 9 executable
> /sys/lib/acid/port
> /sys/lib/acid/386
> /sys/lib/acid/truss
> acid: truss()
> sleep(10000)
> return value: 0
>
> - erik
>
next prev parent reply other threads:[~2009-08-11 5:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-10 6:11 Kenji Arisawa
2009-08-10 17:13 ` erik quanstrom
2009-08-11 3:57 ` Kenji Arisawa
2009-08-11 4:07 ` erik quanstrom
2009-08-11 5:26 ` Kenji Arisawa [this message]
2009-08-11 15:27 ` Russ Cox
2009-08-12 6:48 ` Kenji Arisawa
2009-08-12 14:59 ` Russ Cox
2009-08-13 1:39 ` Kenji Arisawa
2009-08-13 2:15 ` Russ Cox
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=7ED1969C-3B1B-4FE4-8E2D-5B486E636E26@ar.aichi-u.ac.jp \
--to=arisawa@ar.aichi-u.ac.jp \
--cc=9fans@9fans.net \
/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 NNTP newsgroup(s).