X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=Makefile;h=8e519953d2db955d7f78ae01fa5b6197c17fd90c;hb=bac0c9103b31c3dd83ad9d731dd9834e2ba75e4f;hp=6315424a00b9fb2634f38f17833d7f302968a664;hpb=6329d3021bcfa9038621e6e917d98929421d8ec8;p=cascardo%2Flinux.git diff --git a/Makefile b/Makefile index 6315424a00b9..8e519953d2db 100644 --- a/Makefile +++ b/Makefile @@ -528,6 +528,10 @@ KBUILD_CFLAGS += -g KBUILD_AFLAGS += -gdwarf-2 endif +ifdef CONFIG_FTRACE +KBUILD_CFLAGS += -pg +endif + # We trigger additional mismatches with less inlining ifdef CONFIG_DEBUG_SECTION_MISMATCH KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)