search for: b_datap

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

Did you mean: b_data
2007 Apr 04
2
aggregate printing with S10
Using the following dtrace command, I can see who''s calling what with lots of +/- numbers: dtrace -n ''fbt:ip:ip_output:entry{@dbtypes[((mblk_t *)arg1)->b_datap->db_type,caller] = count();}'' ...the output is what I want but not how I want to see it. What I''d rather see is the function names associated with caller and for db_type to be output in hex. Looking at the docs online for s10, http://developers.sun.com/solaris/articles/dtrac...
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
...gt; > This is part of a larger script: > ------------------------------------------------------- > > #!/usr/sbin/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)); > } > > -----------------------...