Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031434AbbKEBl6 (ORCPT ); Wed, 4 Nov 2015 20:41:58 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:42035 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932340AbbKEBl5 (ORCPT ); Wed, 4 Nov 2015 20:41:57 -0500 Message-ID: <563AB3C7.2010600@huawei.com> Date: Thu, 5 Nov 2015 09:41:27 +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: Arnaldo Carvalho de Melo CC: , , , , Alexei Starovoitov Subject: Re: [PATCH 1/4] perf tools: Pass available CPU number to clang compiler References: <1446636007-239722-1-git-send-email-wangnan0@huawei.com> <1446636007-239722-2-git-send-email-wangnan0@huawei.com> <20151104220953.GL13236@kernel.org> In-Reply-To: <20151104220953.GL13236@kernel.org> 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.0A090203.563AB3D8.000B,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: 7c97cf0a5345933a18d2682ae37d02fe Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 747 Lines: 21 On 2015/11/5 6:09, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 04, 2015 at 11:20:04AM +0000, Wang Nan escreveu: >> This patch introduces a new macro "__NR_CPUS__" to perf's embedded >> clang compiler, which represent the available CPU counters in this > available "CPU counters"? ENOPARSE :-) Your changing is better. This patch is for support Alexei's BPF output and Xia Kaixu's BPF pmu reading. In these cases we need to create an array with same number of slots with system CPUs. Thank you. -- 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/