Re: [PATCH 2/4] trace: avoid calling cc-option -mrecord-mcount for every Makefile

2018-08-07 Thread Vasily Gorbik
On Mon, Aug 06, 2018 at 11:07:40AM -0700, Andi Kleen wrote: > On Mon, Aug 06, 2018 at 03:17:44PM +0200, Vasily Gorbik wrote: > > Currently if CONFIG_FTRACE_MCOUNT_RECORD is enabled -mrecord-mcount > > compiler flag support is tested for every Makefile. > > Good catch. Does it make a measurable co

Re: [PATCH 2/4] trace: avoid calling cc-option -mrecord-mcount for every Makefile

2018-08-06 Thread Andi Kleen
On Mon, Aug 06, 2018 at 03:17:44PM +0200, Vasily Gorbik wrote: > Currently if CONFIG_FTRACE_MCOUNT_RECORD is enabled -mrecord-mcount > compiler flag support is tested for every Makefile. Good catch. Does it make a measurable compile time difference? > > Top 4 cc-option usages: > 511 -mrecor

[PATCH 2/4] trace: avoid calling cc-option -mrecord-mcount for every Makefile

2018-08-06 Thread Vasily Gorbik
Currently if CONFIG_FTRACE_MCOUNT_RECORD is enabled -mrecord-mcount compiler flag support is tested for every Makefile. Top 4 cc-option usages: 511 -mrecord-mcount 11 -fno-stack-protector 9 -Wno-override-init 2 -fsched-pressure To address that move cc-option from scripts/Mak