search for: q_stream

Displaying 2 results from an estimated 2 matches for "q_stream".

Did you mean: _stream
2007 Jan 10
2
[DTrace] using C preprocessor in dtrace scripts
...tion to include a file so > I can use #define''s in the file. > > 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...
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