#4890: Add DTrace support to i386-solaris2 platform
--------------------------------+-------------------------------------------
Reporter: kgardas | Owner: igloo
Type: feature request | Status: new
Priority: normal | Component: Runtime System
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: Solaris | Blocking:
Architecture: x86 | Failure: None/Unknown
--------------------------------+-------------------------------------------
Changes (by kgardas):
* owner: kgardas => igloo
Comment:
Hello,
the patch which enables DTrace support on i386-solaris2 is attached.
Please note that the DTrace probes in RTS are visible *only* if you link
your application with RTS compiled into shared library. The reason as I
see it is that Solaris' DTrace requires compilation of probes into binary
file (ELF) which is later linked into application or library. When you
create static library containing this probes binary then while linking
target application linker detects that target application does not use any
symbol from probes binary file and hence it'll omit it from linking. The
situation is different with shared libraries for to me unknown reason. My
wild guess is that as this is shared lib, it's placed into RAM as a whole
and linker cannot optimize it per application usage omitting some object
files from it since another application might use just omitted
functionality. Hence lib is placed into RAM as a whole and then DTrace
application can detect probes....
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4890#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs