Re: [9fans] system call trace version of 9vx available.

2010-05-21 Thread Bakul Shah
On Wed, 19 May 2010 17:32:19 PDT ron minnich wrote: > On Wed, May 19, 2010 at 5:26 PM, Bakul Shah wro= > te: > > > time ratrace -o /dev/null -c mk # about 19.67 seconds > > did you want [2]>/dev/null? No, because that eats time output as well. My change uses a new fd if -o is specified, 2 oth

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
I had a question from someone about the syscalltrace. It has not relationship to the earlier devtrace work that Floren and I did. Thanks ron

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 5:26 PM, Bakul Shah wrote: > time ratrace -o /dev/null -c mk # about 19.67 seconds did you want [2]>/dev/null? > mk clean > time mk                         # about 0.88 seconds > > And here I thought naming it ratrace would make it go faster. Speed is left as an exercis

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 15:25:52 PDT ron minnich wrote: > On Wed, May 19, 2010 at 3:02 PM, Bakul Shah wrote > : > > >> It gives you the option of not restarting the system call until later. > >> There could be more complex usage scenarios. > > > > I don't understand this. > > You read the "start o

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Nick LaForge
You THINK you have lots of control when you're dropping 'into' acid.

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Devon H. O'Dell
2010/5/19 ron minnich : > On Wed, May 19, 2010 at 3:02 PM, Bakul Shah wrote: > >>> It gives you the option of not restarting the system call until later. >>> There could be more complex usage scenarios. >> >> I don't understand this. > > You read the "start of the system call" message. The process

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 2:48 PM, ron minnich wrote: > 3. phooey. For some reason when a syscall fails the errstr prints an > empty string. 9vx/trap.c: any suggestions? Fixed. Ron

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 3:02 PM, Bakul Shah wrote: >> It gives you the option of not restarting the system call until later. >> There could be more complex usage scenarios. > > I don't understand this. You read the "start of the system call" message. The process is stopped. It has not run the sy

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 13:38:36 PDT ron minnich wrote: > On Wed, May 19, 2010 at 1:30 PM, Bakul Shah wro= > te: > > > You write "startsyscall" to /syscall for every trace > > buffer read -- don't quite understand why that is needed. > > It gives you the option of not restarting the system call un

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
1.name changed to ratrace 2. output now to stderr 3. phooey. For some reason when a syscall fails the errstr prints an empty string. 9vx/trap.c: any suggestions? ron

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 1:30 PM, Bakul Shah wrote: > You write "startsyscall" to /syscall for every trace > buffer read  -- don't quite understand why that is needed. It gives you the option of not restarting the system call until later. There could be more complex usage scenarios. But it's a v

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 11:33:24 PDT ron minnich wrote: > On Wed, May 19, 2010 at 11:23 AM, Bakul Shah > wrote: > > > Ok! I don't feel strongly either way. =A0But I hope you do > > consider counted bytestrings to represent random memory. > > It is cheap to parse and produce and doesn't lose info.

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread erik quanstrom
> strace on linux sends to stderr as well. > > OK, you win, I'll change that one. It bothers me to lose error output however. if you really need bug-for-bug compatability, you can always ratrace >[1=2] | ... - erik

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 11:43 AM, Bakul Shah wrote: > BTW, truss does the same thing (output to stderr).  ktrace on > FreeBSD finesses by just dumping trace output to a file and > then kdump is used to show it. > strace on linux sends to stderr as well. OK, you win, I'll change that one. It bot

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread John Floren
On Wed, May 19, 2010 at 2:23 PM, Bakul Shah wrote: > On Wed, 19 May 2010 10:41:26 PDT ron minnich  wrote: >> On Wed, May 19, 2010 at 10:18 AM, Bakul Shah >> wrote >> >> > 0. Name syscalltrace is too long :-) >> >> pick a name and I'll change it. > > I used strace but don't really care what you

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 10:53:59 PDT ron minnich wrote: > I'll only take that patch if it does NOT include stdio.h. Well, you have the trivial diff so do what you want. > As for output ... I'm conflicted on output on 1 vs. 2. But it is nice > that you can see normal output of the traced process. Bu

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 11:23 AM, Bakul Shah wrote: > Ok! I don't feel strongly either way.  But I hope you do > consider counted bytestrings to represent random memory. > It is cheap to parse and produce and doesn't lose info. bear in mind that 99.999% of the time (well, that's an exaggerat

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread erik quanstrom
> Ok! I don't feel strongly either way. But I hope you do > consider counted bytestrings to represent random memory. > It is cheap to parse and produce and doesn't lose info. no keep it text. plan 9 wins this way. "bytestrings" (it seems to me that byte strings are neither) would require knowle

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 10:41:26 PDT ron minnich wrote: > On Wed, May 19, 2010 at 10:18 AM, Bakul Shah wrote > > > 0. Name syscalltrace is too long :-) > > pick a name and I'll change it. I used strace but don't really care what you call it as long as it is short! How about ratrace (Ron's ascii

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 10:51 AM, erik quanstrom wrote: >> >                     if (cmd[0] != '/') { >> >                             char* pcmd = malloc(strlen(cmd) + 5); >> >                             sprintf(pcmd, "/bin/%s", cmd); >> >                             exec(pcmd, args); >> >      

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
I'll only take that patch if it does NOT include stdio.h. As for output ... I'm conflicted on output on 1 vs. 2. But it is nice that you can see normal output of the traced process. But, hmm, if traced process prints on 2, well ... you'll lose it. So, my feeling is, if you are *really* concerned

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread erik quanstrom
> > if (cmd[0] != '/') { > > char* pcmd = malloc(strlen(cmd) + 5); > > sprintf(pcmd, "/bin/%s", cmd); > > exec(pcmd, args); > > } shouldn't that be

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Wed, May 19, 2010 at 10:18 AM, Bakul Shah wrote: > 0. Name syscalltrace is too long :-) pick a name and I'll change it. > 1. Curiously, an actual errstr is not enclosed in "..". that goes on the bug list. If you want, use the bugtracker at bitbucket.org, on my rminnich/vx32 project, and add

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Bakul Shah
On Wed, 19 May 2010 08:09:50 PDT ron minnich wrote: > > The format arose out of discussions with nemo and others. > > It is a straight text layout of system call params and return. The = > separates the params and return. The format is: > pid textname syscall-name pc [params] = retval errstr >

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Tue, May 18, 2010 at 10:45 PM, erik quanstrom wrote: > ron, please enlighten the ignorant.  could you constrast this with > truss?  or maybe there's a man page? I need to write one. The biggest diff from truss is that the program itself is dead simple, since most of the work is done by the k

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread ron minnich
On Tue, May 18, 2010 at 10:40 PM, Bakul Shah wrote: > term% 8.out -c /bin/echo Boo! > 511 echo Brk 0x3233 b450 = 0 "" 0x11af077310cde470 > 0x11af077310d0da40 > 511 echo Pwrite 0x31d6 1 a458/"Boo!." 5 -0x1Boo! >  = 5 "" 0x11af07731e11e758 0x11af077326aed448 > 511 echo Op

Re: [9fans] system call trace version of 9vx available.

2010-05-19 Thread Ethan Grammatikidis
On 19 May 2010, at 05:37, David Leimbach wrote: On Tue, May 18, 2010 at 7:13 PM, ron minnich wrote: On Wed, May 19, 2010 at 1:54 AM, David Leimbach wrote: > Were all of the binaries within recompiled against this code? Running 9vx > on my iMac is pretty smooth! Hm, not sure what

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread erik quanstrom
> term% 8.out -c /bin/echo Boo! > 511 echo Brk 0x3233 b450 = 0 "" 0x11af077310cde470 > 0x11af077310d0da40 > 511 echo Pwrite 0x31d6 1 a458/"Boo!." 5 -0x1Boo! > = 5 "" 0x11af07731e11e758 0x11af077326aed448 > 511 echo Open 0x32c0 9ec0/"#c/pid" = 3 "" 0x11af0773

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread Bakul Shah
On Tue, 18 May 2010 18:54:21 PDT David Leimbach wrote: > > Were all of the binaries within recompiled against this code? Running 9vx > on my iMac is pretty smooth! vx32/src/9vx.*.gz are the same as before (in case you are running those). Compiling 9vx on a MAC OS 10.6.3 required changing HOST

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread David Leimbach
On Tue, May 18, 2010 at 9:52 PM, ron minnich wrote: > On Wed, May 19, 2010 at 4:37 AM, David Leimbach wrote: > > > There were pre-built binaries in this cloned repo, I'm totally unable to > > rebuild the Mac OS X binary, due to some "impossible constraint" in some > > assembly or something like

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread ron minnich
On Wed, May 19, 2010 at 4:37 AM, David Leimbach wrote: > There were pre-built binaries in this cloned repo, I'm totally unable to > rebuild the Mac OS X binary, due to some "impossible constraint" in some > assembly or something like that per my recollection. I was merely wondering > if you expe

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread David Leimbach
On Tue, May 18, 2010 at 7:13 PM, ron minnich wrote: > On Wed, May 19, 2010 at 1:54 AM, David Leimbach wrote: > > > Were all of the binaries within recompiled against this code? Running > 9vx > > on my iMac is pretty smooth! > > Hm, not sure what you mean. > > ron > > There were pre-built binari

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread ron minnich
On Wed, May 19, 2010 at 1:54 AM, David Leimbach wrote: > Were all of the binaries within recompiled against this code? Running 9vx > on my iMac is pretty smooth! Hm, not sure what you mean. ron

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread erik quanstrom
> Were all of the binaries within recompiled against this code? Running 9vx > on my iMac is pretty smooth! trace device doesn't require user land support. - erik

Re: [9fans] system call trace version of 9vx available.

2010-05-18 Thread David Leimbach
On Tue, May 18, 2010 at 5:22 PM, ron minnich wrote: > http://bitbucket.org/rminnich/vx32 > > this is my hack of vx32. > Were all of the binaries within recompiled against this code? Running 9vx on my iMac is pretty smooth! Dave > > It includes a ram block device, but more importantly, it sup

[9fans] system call trace version of 9vx available.

2010-05-18 Thread ron minnich
http://bitbucket.org/rminnich/vx32 this is my hack of vx32. It includes a ram block device, but more importantly, it supports the system call trace code. In the 'root' of the repo is the syscalltrace directory; cd in there to make the syscalltrace binary. Comments and improvements welcome. Noah