Kernel Profiling

I compiled my device driver with the profiling option -p but while linking I am getting undefined reference to _mcount.

LD [M] /vobs/femto_drivers/DspBiosLink/dsplinkk/src/dsplinkk.o
Building modules, stage 2.
MODPOST
*** Warning: "_mcount" [/vobs/femto_drivers/DspBiosLink/dsplinkk/src/dsplinkk.ko] undefined!

Architechture: ppc32

From where I can link this _mcount and how to get rid of this issue. Can anyone please guide me.