On Fri, Mar 11, 2011 at 03:16:27PM +0530, मनीष शर्मा  wrote:
> Hi All,
> 
> To enable profiling of qemu, I used the option "-pg". while compiling I got
> following error.
>   CC    arm-softmmu/arch_init.o
>   CC    arm-softmmu/cpus.o
>   CC    arm-softmmu/monitor.o
>   CC    arm-softmmu/cpu-exec.o
> gcc: -pg and -fomit-frame-pointer are incompatible
> make[1]: *** [cpu-exec.o] Error 1
> make: *** [subdir-arm-softmmu] Error 2
> 
> So I removed the -fomit-frame-pointer, the code got compiled. but qemu
> doesnt run. It got hanged before loading the kernel image.
> 
> Any help is appreciated, I need to profile the qemu code for performance
> improvement.
> 

You can pass --enable-gprof to configure, it should do the right thing.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurel...@aurel32.net                 http://www.aurel32.net

Reply via email to