If I understand what you want to do, you want to pull information from a
core file to use as the values for certain variable in a DTrace script.
The problem is that D action blocks are executed in kernel mode with
interrupts turned off, which means no IO allowed.
In order to gather information from a core file (or any file) to be
dynamically included in a D script, you should build a shell script the
gathers the data, and then calls the D script. If it''s simple info,
you
could pass it as arguments to the D script, but if there is a lot of
complicated data, you would probably want to include your D script as a
"here" document in you shell script, and then tailor the D script with
shell variables.
Brendan Gregg''s stuff has a lot of examples of including D scripts as
"here" documents. http://www.brendangregg.com/dtrace.html
Chip
> -----Original Message-----
> From: dtrace-discuss-bounces at opensolaris.org [mailto:dtrace-discuss-
> bounces at opensolaris.org] On Behalf Of kaushik p
> Sent: Monday, March 09, 2009 12:27 PM
> To: dtrace-discuss at opensolaris.org
> Subject: [dtrace-discuss] files in dtrace
>
> hey everybody
>
> how can i use files in dtrace?? i have a plan to use the details
> present in the core dump file
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org