You'll also find in the lib Makefile:
ifdef CONFIG_FTRACE
ORIG_CFLAGS := $(KBUILD_CFLAGS)
KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
endif
Which removes all -pg flags from all in the lib directory. The reason is
that a lot of archs (well, I know PPC for sure) use these functions on
early boot up, where simply calling mcount will produce a page fault.
-- Steve
--