search for: b_wptr

Displaying 3 results from an estimated 3 matches for "b_wptr".

Did you mean: b_ptr
2007 Jan 10
13
[DTrace] how to get socket read size
Hi i''m trying to write my first dtrace script apparently i bit off a bit more than i can chew, i want to track io over sockets, i found your socketsize.d that gave me how to track writes, but i''m at a loss how to track reads, frankly i don''t see how your write tracker works because it uses a probe in a function that only takes two arguments but you grab size of write
2007 Jan 10
2
[DTrace] using C preprocessor in dtrace scripts
...tream.h> > > strrput:entry > / > args[0]->q_stream->sd_vnode == (struct vnode *)$1 > && args[1]->b_datap->db_type == M_DATA > / > { > printf("strrput mp = %p\n", args[1]); > printf("mp->b_rptr = %*.*s\n", > args[1]->b_wptr-args[1]->b_rptr, > args[1]->b_wptr-args[1]->b_rptr, stringof(args[1]->b_rptr)); > } > > ----------------------------------------------------- > > At any rate, without the -C, I can''t use #include <sys/stream.h>. > Without the #include <sys/stream.h...
2006 Jun 29
2
tracemem() not exactly what I had in mind
I was trying to use tracemem to look at mblk contents. First, I tried to use mblk->b_wptr - mblk->b_rptr as the size, and was told that it had to be a constant. Foo. (RFE #1). Then, I tried to use 8 as the size, and kept getting decimal numbers printed. Stumbled on #pragma D option rawbytes=true (is the =true necessary, btw?) and that didn''t help. Then, in desperation...