[dtrace-discuss] dtrace and compiled haskell

Lally Singh
Sun, 30 Nov 2008 03:56:17 -0000

On Wed, Nov 26, 2008 at 8:13 PM, Adam Leventhal <ahl at eng.sun.com>
wrote:
> On Nov 23, 2008, at 8:08 AM, Krenz von Leiberman wrote:
>> Hi. I plan to develop a set of programs in haskell, which are to be
>> compiled to /native code/ (not bytecode) with the Glasgow Haskell
>> Compiler. Is it possible to use dtrace on compiled haskell programs?
>
>
> If the Haskell compiler generates symbols then absolutely. If it
> doesn''t you might have some luck using the pid provider to trace
> specific addresses, but it''s going to be a bit of an uphill
battle.


Sorry, I wanted to get in this earlier..

The quick way is to look at the output of ''nm'' on a compiled
executable, and see if you like the results.  You can trap external
calls to C functions, but my compiled haskell test didn''t show any
similar symbols for my pure haskell function definitions.

--
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech