Re: [dtrace-discuss] tracemem() output on single line

2011-04-14 Thread Vladimir Kotal
On 04/13/11 06:18 PM, Adam Leventhal wrote: snip There's nothing particularly convenient, but you could just print out your array by hand: %02x%02x... To simplify it a little, you could cast it to a uint64_t *: printf(%16x%16x, ((uint64_t *)this-oinfo.xxx_id)[0], ((uint64_t

[dtrace-discuss] compilation, types and include files

2011-04-14 Thread Vladimir Kotal
Hi again, I am trying to construct set of scripts with common translator definitions stored in separate header file (so that all the scripts can use it): $ cat xlate.h #include sys/types.h inline string state_string[int32_t state] = state == 0 ? initial : state == 1 ?

Re: [dtrace-discuss] compilation, types and include files

2011-04-14 Thread Adam Leventhal
#!/usr/sbin/dtrace -I. -Cs The kernel only picks up one argument from the #! line. You can use #pragma incdir instead of the -I option. Adam -- Adam Leventhal, Delphix http://dtrace.org/blogs/ahl 275 Middlefield Road, Suite 50 Menlo Park, CA 94025 http://www.delphix.com