kaushik p
2009-Mar-12 05:14 UTC
[dtrace-discuss] integrating dtrace with other scripting language
hi i was told that dtrace program can not accesses the information present in the core dump file but we can pass the information present in the file to dtrace program using some scripting language. can anybody suggest me where i can get information on how to integrate dtrace with scripting language to access files''s information ?
Jim Mauro
2009-Mar-12 05:35 UTC
[dtrace-discuss] integrating dtrace with other scripting language
Can you be more specific? The DTraceToolKit is loaded with examples of integrating DTrace with Perl and Shell, but I''m not sure if this is what you mean. Get the DTraceToolKit here; http://www.opensolaris.org/os/community/dtrace/ /jim kaushik p wrote:> hi > > i was told that dtrace program can not accesses the information > present in the core dump file but we can pass the information present > in the file to dtrace program using some scripting language. > > can anybody suggest me where i can get information on how to integrate > dtrace with scripting language to access files''s information ? > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
S h i v
2009-Mar-12 05:38 UTC
[dtrace-discuss] [ug-bosug] integrating dtrace with other scripting language
On Thu, Mar 12, 2009 at 10:44 AM, kaushik p <kaushiksjce at gmail.com> wrote:> hi > > i was told that dtrace program can not accesses the information > present in the core dump filedtracing is for a running system.> but we can pass ?the information present > in the file to dtrace program using some scripting language. >This is unclear.> can anybody suggest me where i can get information on how to integrate > dtrace with scripting language to access files''s information ? >There are 2 different things: 1. Calling dtrace utility from within other scripts. DTraceToolkit (http://www.opensolaris.org/os/community/dtrace/dtracetoolkit) has ample examples 2. Being able to use dtrace APIs from within a scripting language seamlessly (for ex like a function call in perl/tcl/python/etc). For this one needs to write language bindings for the scripting language based on APIs provided by libdtrace. This is more involved work. You may look at http://dev.lrem.net/tcldtrace as an example (for tcl) -Shiv