Displaying 4 results from an estimated 4 matches for "b_rptr".
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
.../dtrace -Cs
>
> #include <sys/stream.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>.
&...
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, I changed the si...
2008 Oct 09
11
Crossbow Code Review Phase III ready
(networking-discuss Bcc''ed)
Good morning,
The Crossbow team would like to invite you to participate in the project''s
third and last phase of code review.
The third phase of the review starts today, and will last for
two weeks. It covers the following
parts of the code:
VLANs
Link Aggregations
Xen
mac_datapath_setup
All drivers