[Top] [All Lists]

Re: x86 profiling

To: "Marko Kiiskila" <mkiiskila@xxxxxxxxx>, <kernprof@xxxxxxxxxxx>
Subject: Re: x86 profiling
From: "John Hawkes" <hawkes@xxxxxxx>
Date: Thu, 11 Jul 2002 14:25:59 -0700
References: <20020711211424.70160.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-kernprof@xxxxxxxxxxx
> I patched a 2.4.9 kernel with the profiling package,
> and the kernel crashes right away when I try to
> enable some other mode than PC sampling.
> Seems like the combination of regparm, -pg flag and
> -O2 flag are causing trouble.
> I tried Redhat's gcc 2.96, as well as their gcc 3.0.4,
> and I'm seeing this behavior with both of the
> compilers.

Yes, indeed.  For gcc 2.96 you need the gcc patch that's on the kernprof
website.  I don't have much experience with gcc 3.x and kernprof, so I
don't know how to solve that problem.

John Hawkes

<Prev in Thread] Current Thread [Next in Thread>
  • x86 profiling, Marko Kiiskila
    • Re: x86 profiling, John Hawkes <=