Hi, I''ve got a VM that reads in a compiled bytecode file, generates native code, and executes it. The format derives from a C-like language. What sort of data should I provide, and how do I make it visible to the pid provider to make it possible to dtrace it? Thanks, -Lally
Adam Leventhal
2009-Sep-11 18:41 UTC
[dtrace-discuss] Making generated code pid-compatible
Hey Lally,> Hi, I''ve got a VM that reads in a compiled bytecode file, generates > native code, and executes it. The format derives from a C-like > language. > > What sort of data should I provide, and how do I make it visible to > the pid provider to make it possible to dtrace it?The pid provider merely scans the symbol table to detect symbols so that would suffice, but I''d guess that that isn''t an option for you. Alternatively you could piggyback on the USDT mechanism or write your own new provider. Both of these would be fairly complex, but certainly not impossible. Does your VM have a cache of compiled code or once compiled is the native code fairly static? Adam -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl