Received: by 10.213.65.68 with SMTP id h4csp540238imn; Tue, 13 Mar 2018 12:20:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELt+KAOT6rpOIfOLhQfHwa5Gzv4dE/SJ3DcLardLocrXSns2xJXTpi2auBAT80aPRId7xxeR X-Received: by 10.101.101.133 with SMTP id u5mr1361688pgv.151.1520968839829; Tue, 13 Mar 2018 12:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520968839; cv=none; d=google.com; s=arc-20160816; b=B+ieGZrPGolKnEy46r1rz3/bTb5dfnXfv8PMqXRx7hI50jJ7PjI7S/BVqRTa0M24J+ voz/2NNiS300LK82TwrpQIMLZaW3FcC0oUDho00WVRrCINFM0V/sxBA5sdUu16f3Hpyc RKAfMc9ZO+L6RWm9nEzwA0TBHbDmVioM5IGntPGBeNFbj6zQsG7i4wIc3TVD242uq+K0 fVGPOtoz8Hmz37CdB1CPB+ZjSdpdxxa3YYUHhSy3T4S+TQnAvP+06vrx9xGJP+BFnx2o a6mYnQbUs7k92jJjWc5DMymh8dnaFReLZjEBq/NGcoxpNluFHgHGgZNcqayHLqGQ77wM oxPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent :content-transfer-encoding:content-disposition:mime-version:subject :cc:to:from:date:arc-authentication-results; bh=qma1wEzpLfEWGBv++Fr7NW812sHRWq31KTGXS/2rKgM=; b=GwVSs1HCqvMMCFmclA+2naZG7TVayjiGBoGH6HE/1kEzvJnw+bBFrJENY+jcYBLPAI m0hF9xz6tiYFnVUW+vfBg+4bn9EFH9Gwr4ybUWMQVOY/wwUnQ7aQPC0J9aFw6PoaIAlW vhL2JfK8kC4iL8Ifj+f/ql4sQU0QwRlntNPjZ/97+XE48X7ivPIvPtRZj+Ba0IZpQrxr qTMKcXafOB7Op1Vnd9Cvt5AhBT3cxYk6T3bIqzkVVLp21hBijSL6U/gLiwhFOUjPg3+b Pn9/UIHiJgIOrOLFD51ndE1Av28U1Y8Biz1LgMJEJmGBEaT8Ge5KyLI5FeZqwFh8KOmq eDzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si585771ple.246.2018.03.13.12.20.25; Tue, 13 Mar 2018 12:20:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbeCMTRt convert rfc822-to-8bit (ORCPT + 99 others); Tue, 13 Mar 2018 15:17:49 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49354 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751957AbeCMTRs (ORCPT ); Tue, 13 Mar 2018 15:17:48 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2DJFtls144812 for ; Tue, 13 Mar 2018 15:17:48 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gpjjrdecf-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 13 Mar 2018 15:17:47 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Mar 2018 15:17:47 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Mar 2018 15:17:44 -0400 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2DJHhUS54526162; Tue, 13 Mar 2018 19:17:44 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AFF11124037; Tue, 13 Mar 2018 16:19:55 -0400 (EDT) Received: from suka-w540.localdomain (unknown [9.70.94.25]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id 66340124050; Tue, 13 Mar 2018 16:19:55 -0400 (EDT) Received: by suka-w540.localdomain (Postfix, from userid 1000) id 78C462292A2; Tue, 13 Mar 2018 12:17:42 -0700 (PDT) Date: Tue, 13 Mar 2018 12:17:42 -0700 From: Sukadev Bhattiprolu To: Arnaldo Carvalho de Melo Cc: john.garry@huawei.com, linux-kernel@vger.kernel.org, Michael Ellerman Subject: perf-core build fails on powerpc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT X-Operating-System: Linux 2.0.32 on an i486 User-Agent: Mutt/1.7.1 (2016-10-04) X-TM-AS-GCONF: 00 x-cbid: 18031319-0024-0000-0000-000003360677 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008667; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01002567; UDB=6.00510150; IPR=6.00781897; MB=3.00020012; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-13 19:17:46 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031319-0025-0000-0000-000047512202 Message-Id: <20180313191742.GA29120@us.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-13_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803130215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building perf on Powerpc seems broken when using Arnaldo's perf/core branch with HEAD as: 1b442ed ("perf test: Fix exit code for record+probe_libc_inet_pton.sh") It maybe related to this commit: commit d596299 Author: John Garry Date: Thu Mar 8 18:58:29 2018 +0800 perf vendor events: Add support for pmu events vendor subdirectory Reverting this hunk from tools/perf/pmu-events/jevents.c, seems to fix the problem for me. @@ -957,8 +963,12 @@ static int process_one_file(const char *fpath, const struct /* model directory, reset topic */ +#if 0 if ((level == 1 && is_dir && is_leaf_dir(fpath)) || (level == 2 && is_dir)) { +#else + if (level == 1 && is_dir) { +#endif The problem is that the tools/perf/pmu-events/pmu-events.c file generated by the jevents program is missing the "prefix" lines like: struct pmu_event pme_power8[] = { and struct pmu_event pme_power9[] = { i.e the pmu-events.c begins like: --- #include "../../pmu-events/pmu-events.h" { .name = "pm_data_from_dl2l3_mod", .event = "event=0x4c048", .desc = "The processor's data cache was reloaded with Modified (M) data from another chip's L2 or L3 on a different Node or Group (Distant), as this chip due to a demand load", .topic = "cache", .long_desc = "The processor's data cache was reloaded with Modified (M) data from another chip's L2 or L3 on a different Node or Group (Distant), as this chip due to either only demand loads or demand loads plus prefetches if MMCR1[16] is 1", }, --- Below is the debug and info messages at the time of failure: --- HOSTCC /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/jevents.o HOSTLD /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/jevents-in.o LINK /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/jevents GEN /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/pmu-events.c d 0 50 powerpc pmu-events/arch/powerpc d 1 4096 power8 pmu-events/arch/powerpc/power8 f 2 10275 cache.json pmu-events/arch/powerpc/power8/cache.json f 2 302 floating-point.json pmu-events/arch/powerpc/power8/floating-point.json f 2 29283 marked.json pmu-events/arch/powerpc/power8/marked.json f 2 12028 memory.json pmu-events/arch/powerpc/power8/memory.json f 2 159271 other.json pmu-events/arch/powerpc/power8/other.json f 2 10777 pipeline.json pmu-events/arch/powerpc/power8/pipeline.json f 2 3781 pmc.json pmu-events/arch/powerpc/power8/pmc.json f 2 6664 translation.json pmu-events/arch/powerpc/power8/translation.json f 2 25104 frontend.json pmu-events/arch/powerpc/power8/frontend.json d 1 4096 power9 pmu-events/arch/powerpc/power9 f 2 1096 floating-point.json pmu-events/arch/powerpc/power9/floating-point.json f 2 5503 cache.json pmu-events/arch/powerpc/power9/cache.json f 2 14885 frontend.json pmu-events/arch/powerpc/power9/frontend.json f 2 27807 marked.json pmu-events/arch/powerpc/power9/marked.json f 2 4820 memory.json pmu-events/arch/powerpc/power9/memory.json f 2 85387 other.json pmu-events/arch/powerpc/power9/other.json f 2 23839 pipeline.json pmu-events/arch/powerpc/power9/pipeline.json f 2 5138 pmc.json pmu-events/arch/powerpc/power9/pmc.json f 2 9897 translation.json pmu-events/arch/powerpc/power9/translation.json f 1 440 mapfile.csv pmu-events/arch/powerpc/mapfile.csv jevents: Processing mapfile pmu-events/arch/powerpc/mapfile.csv CC /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/pmu-events.o /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/pmu-events.c:2:1: error: expected identifier or ‘(’ before ‘{’ token { ^ /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/pmu-events.c:8:2: error: expected identifier or ‘(’ before ‘,’ token }, ^ /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/pmu-events.c:15:2: error: expected identifier or ‘(’ before ‘,’ token }, ^ /home/suka/linux-acme.git/tools/perf/perf-obj/pmu-events/pmu-events.c:22:2: error: expected identifier or ‘(’ before ‘,’ token }, ----