Re: low-level profiling

2013-02-18 Thread Simon Marlow
On 18/02/13 17:37, Nicolas Frisby wrote: Hmm. build.mk.sample includes STRIP_CMD = : (so do the build.mk files I'm using) Is that symbol for something else or is there a typo somewhere? It looks like the GHC build system uses STRIP_CMD, but the nofib build system uses STRIP.

Re: low-level profiling

2013-02-18 Thread Nicolas Frisby
Hmm. build.mk.sample includes STRIP_CMD = : (so do the build.mk files I'm using) Is that symbol for something else or is there a typo somewhere? On Mon, Feb 18, 2013 at 2:12 PM, Simon Marlow wrote: > On 15/02/13 20:31, Johan Tibell wrote: > >> On Fri, Feb 15, 2013 at 12:02 PM, Nicolas Frisby

Re: low-level profiling

2013-02-18 Thread Simon Marlow
On 15/02/13 20:31, Johan Tibell wrote: On Fri, Feb 15, 2013 at 12:02 PM, Nicolas Frisby mailto:nicolas.fri...@gmail.com>> wrote: Thanks for rallying everyone! I made a bit of a breakthrough while trying to pinpoint where the linker is invoked. Here's the situation: * If I use

Re: low-level profiling

2013-02-15 Thread Nicolas Frisby
OK. I added a blurb on the wiki page. On Fri, Feb 15, 2013 at 8:31 PM, Johan Tibell wrote: > On Fri, Feb 15, 2013 at 12:02 PM, Nicolas Frisby > wrote: > >> Thanks for rallying everyone! I made a bit of a breakthrough while trying >> to pinpoint where the linker is invoked. >> >> Here's the situ

Re: low-level profiling

2013-02-15 Thread Johan Tibell
On Fri, Feb 15, 2013 at 12:02 PM, Nicolas Frisby wrote: > Thanks for rallying everyone! I made a bit of a breakthrough while trying > to pinpoint where the linker is invoked. > > Here's the situation: > > * If I use nofib's "make" command to build the text, the executable does > not have the fun

Re: low-level profiling

2013-02-15 Thread Nicolas Frisby
> > Geoff > > ** ** > > *From:* ghc-devs-boun...@haskell.org [mailto:ghc-devs-boun...@haskell.org] > *On Behalf Of *Nicolas Frisby > *Sent:* Friday, February 15, 2013 7:41 PM > *To:* Johan Tibell > *Cc:* ghc-devs@haskell.org > *Subject:* Re: low-level profiling &

RE: low-level profiling

2013-02-15 Thread Geoffrey Mainland
Try invoking ghc with -optl-g? Geoff From: ghc-devs-boun...@haskell.org [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Nicolas Frisby Sent: Friday, February 15, 2013 7:41 PM To: Johan Tibell Cc: ghc-devs@haskell.org Subject: Re: low-level profiling Ah, looks like the symbol information

Re: low-level profiling

2013-02-15 Thread Nicolas Frisby
Ah, looks like the symbol information exists in the .o files, but not in my actual executable. Could I invoke ld manually with some incantation to preserve the function symbols? On Fri, Feb 15, 2013 at 7:18 PM, Nicolas Frisby wrote: > No, nothing fancy. It's just a nofib program. > > I am seei

Re: low-level profiling

2013-02-15 Thread Nicolas Frisby
No, nothing fancy. It's just a nofib program. I am seeing the .size directives in the .s files. And objdump -S gives output like this: 0368 : 368: 48 83 e3 07 and$0x7,%rbx 36c: 48 83 fb 02 cmp$0x2,%rbx 370: 0f 83 96 00 00 00 jae40c 376: 48 8b 4

Re: low-level profiling

2013-02-15 Thread Johan Tibell
On Fri, Feb 15, 2013 at 10:24 AM, Nicolas Frisby wrote: > I'm not passing any flags related to code generation, I don't think. > > $HC -H64m -O -Rghc-timing -package array -H32m -hisuf hi -O1 -rtsopts -c > Main.hs -o Main.o > > So that'd just be the native code generator, right?. > > $ uname -a >

Re: low-level profiling

2013-02-15 Thread Nicolas Frisby
I'm not passing any flags related to code generation, I don't think. $HC -H64m -O -Rghc-timing -package array -H32m -hisuf hi -O1 -rtsopts -c Main.hs -o Main.o So that'd just be the native code generator, right?. $ uname -a Linux cam-05-unx 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC

Re: low-level profiling

2013-02-15 Thread Johan Tibell
On Fri, Feb 15, 2013 at 10:05 AM, Nicolas Frisby wrote: > I'm way below my depth here, but I'd like to use the perf tool to see > where a program is spending its time. > > Unfortunately, the recipe here > > http://hackage.haskell.org/trac/ghc/wiki/Debugging/LowLevelProfiling/Perf > > isn't working