I'm working on a set of USDT probes and need to expose fairly complex
data in a reasonable way. I'd like to build up some compound structures
but dtrace doesn't seem to like translating them :(

I boiled the problem down to a simple example:

  1 typedef struct simple {
  2         uint32_t simplevalue;
  3 } simple_t;
  4
  5 typedef struct complex {
  6         simple_t simple;
  7 } complex_t;
  8
  9 translator complex_t < uint32_t x > {
 10         simple.simplevalue = x;
 11 };
 12
 13 dtrace:::BEGIN {
 14         printf("simplevalue: %d\n", xlate <complex_t>
(2).simple.simplevalue    );
 15 }

dtrace complains of a syntax error on line 10.

Is there a way to do what I want?


Thanks,

-M
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to