Re: [dtrace-discuss] Passing pointer-to-struct to USDT probes

2008-06-17 Thread John Levon
On Tue, Jun 17, 2008 at 01:57:20PM -0700, James McIlree wrote: > > Now the problems start: I meant to pass in high-level information into > > the probe, because that will maximize the flexibility of writing > > scripts. > > But now writing a D script that makes use of con means either > > - inclu

Re: [dtrace-discuss] Passing pointer-to-struct to USDT probes

2008-06-17 Thread James McIlree
On Jun 17, 2008, at 4:47 AM, Kay Röpke wrote: > > Now the problems start: I meant to pass in high-level information into > the probe, because that will maximize the flexibility of writing > scripts. > But now writing a D script that makes use of con means either > - including the structs and enum

[dtrace-discuss] Passing pointer-to-struct to USDT probes

2008-06-17 Thread Kay Röpke
Hi! I'm in the process of adding USDT probes to MySQL Proxy and am experiencing some problems with my approach. For example, I have one probe that fires when the state of a connection changes (the state machine is based on the MySQL protocol): (FYI, this is all done on OS X but everything is