Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966055AbbDWO3f (ORCPT ); Thu, 23 Apr 2015 10:29:35 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:26295 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964779AbbDWO3e (ORCPT ); Thu, 23 Apr 2015 10:29:34 -0400 Message-ID: <553901BC.3040001@oracle.com> Date: Thu, 23 Apr 2015 08:29:16 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Will Deacon , Ingo Molnar CC: linux-kernel@vger.kernel.org, mark.rutland@arm.com, jolsa@kernel.org, namhyung@kernel.org, acme@redhat.com Subject: Re: arm/arm64 perf build issue with mainline References: <20150423112916.GF1652@arm.com> In-Reply-To: <20150423112916.GF1652@arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1364 Lines: 38 On 4/23/15 5:29 AM, Will Deacon wrote: > Hi all, > > Commit 6428c59a97de ("perf tools: Set JOBS based on CPU or processor") > causes weird behaviour on arm/arm64 platforms because we use the "CPU" > prefix for things like: > > CPU implementer : 0x41 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0xd03 > CPU revision : 0 > > in /proc/cpuinfo. Consequently, a 6 core machine ends up doing: > > will@confinement-loaf:~/linux/tools/perf$ make > BUILD: Doing 'make -j36' parallel build > > which is a little overwhelming. Any chance we can predicate the extra > part of the regex on $(ARCH) being sparc? Frankly, I think the JOBS parameter needs to be removed. It's non-standard way of controlling parallelism in the build and it makes the assumption that if a system has N processors all of those can be used to build perf which is not true if you are building perf as part of bigger image builds -- like Yocto for example. Ingo: As I recall you put this in? Opinions on removing it? Users can always add the standard '-j N' for parallelism just like they do for kernel builds. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/