From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933707AbcAMJqk (ORCPT ); Wed, 13 Jan 2016 04:46:40 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:51990 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932838AbcAMJqg (ORCPT ); Wed, 13 Jan 2016 04:46:36 -0500 Message-ID: <56961CE5.8090802@huawei.com> Date: Wed, 13 Jan 2016 17:46:13 +0800 From: "Wangnan (F)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Jiri Olsa CC: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , David Ahern , "Ingo Molnar" , Namhyung Kim , Peter Zijlstra Subject: Re: [RFC 6/6] perf build: Introduce FEATURES_DUMP make variable References: <1452509693-13452-1-git-send-email-jolsa@kernel.org> <1452509693-13452-7-git-send-email-jolsa@kernel.org> <5694C73C.3070007@huawei.com> <20160113091913.GA4487@krava.brq.redhat.com> In-Reply-To: <20160113091913.GA4487@krava.brq.redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.56961CEA.00D4,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: a778bfd9151b4514be760d78f6951206 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/1/13 17:19, Jiri Olsa wrote: > On Tue, Jan 12, 2016 at 05:28:28PM +0800, Wangnan (F) wrote: > > SNIP > >> For example: >> >> $ make feature-dump LDFLAGS="-static" >> BUILD: Doing 'make -j24' parallel build >> >> Auto-detecting system features: >> >> ... zlib: [ on ] >> ... lzma: [ OFF ] <--- looks good. I don't have >> static lzma library >> ... get_cpuid: [ on ] >> ... bpf: [ on ] >> >> >> $ make feature-dump >> BUILD: Doing 'make -j24' parallel build >> >> Auto-detecting system features: >> >> ... zlib: [ on ] >> ... lzma: [ on ] <--- also good >> ... get_cpuid: [ on ] >> ... bpf: [ on ] >> >> >> $ make feature-dump LDFLAGS="-static" >> BUILD: Doing 'make -j24' parallel build >> >> Auto-detecting system features: >> >> ... zlib: [ on ] >> ... lzma: [ on ] <--- Bad... >> ... get_cpuid: [ on ] >> ... bpf: [ on ] >> >> Thank you. > right, it's because feature is not under build framework and > compilation does not care about flags change.. > > I'll try to check on that.. does this patch help to improve > the current speed or do you need to solve this to get substantial > speedup? I'm working on it. I have already done it, but still have some problem. On some machine 'make_static' test target lost '-liberty -lz' in its linker options. Seems something wrong in this part: ifeq ($(feature-libbfd), 1) EXTLIBS += -lbfd # call all detections now so we get correct # status in VF output $(call feature_check,liberty) $(call feature_check,liberty-z) $(call feature_check,cplus-demangle) ifeq ($(feature-liberty), 1) EXTLIBS += -liberty else ifeq ($(feature-liberty-z), 1) EXTLIBS += -liberty -lz endif endif endif On a 24 core machine the build-test takes about 16 mins. Faster than before: real 16m7.642s user 171m47.488s sys 19m10.692s