Received: by 10.213.65.68 with SMTP id h4csp544937imn; Tue, 13 Mar 2018 12:30:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELuzO9BhbG9EXTJ3bnSbB30U2z28bizfRuMo0LtBr69HvCNPG5+3W0iwnBPLc4eQeO7Rb6oS X-Received: by 10.101.98.137 with SMTP id f9mr1400062pgv.6.1520969452640; Tue, 13 Mar 2018 12:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520969452; cv=none; d=google.com; s=arc-20160816; b=Cli4GCx1sUq8KcYyX+3/MIRWpakgh3n5ANSgTdhdfb9evrj5HI5N9M1zKfeRYhpxpl aV7q6iHxa8wQx2sHIIbLQ1v2bHgYRs3KeLwyr+J0V/CtWLzUV9YfBvQJ+raXPtTs3reD OdQ0Dxw9vORg25JXFIrwAtwSpN32hsRAK967TLos6yK5DBJMLJyE+pB07KlwzcaaLyar v89dlQjc7oNKzBgb9FMD9B64Lm/S1Ffi3idu92hUD3V5/2KcSRj0t29T87CdvPTDeilw kEX623r6B5yI40V6b+Ttnley2cY6wslrKn11fsS2EGQzuXhS2yurF4yMN+4ZG9WnqSDz Kxbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=DZqOHn2u9uJPqhVrD4pMW/HmOP1TZQIXQgNFHP25Pu8=; b=P+eV/pkBPkkFGqvl3cdAtCxYkIMahOwp81KwsByBkU+qlSEvh2DVAdjCe8gckwzWDX nHyLZDOaU/z7CPXidVj1OAZRadeBzH3FJ5/wbiFbRrznFqBpigDLX0GLv1YwwUCI2AxM jsVkzfxHscUKMYnZ4sw6Q8bqvMo3ibRnBNqtc0yu+9Y8LKgCV3Ma65fCa7hjQHqW9p2O 1WI61prQQVZAUSEYdWybWfcPtF5Lk8ic0rKfF1JAULObqnlHWH10Z/QynIAuzgOZwqZC gD+mx0Q53NB1ayq8X8Lf15hjLs0ckMv+PjaNJmrzHRIeeeAO4xvfPo5RsuFI+NctsXs8 nMOQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si551324pgn.191.2018.03.13.12.30.36; Tue, 13 Mar 2018 12:30:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932394AbeCMT3X (ORCPT + 99 others); Tue, 13 Mar 2018 15:29:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6197 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752227AbeCMT3V (ORCPT ); Tue, 13 Mar 2018 15:29:21 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 35E36D0A8F1DF; Wed, 14 Mar 2018 03:29:07 +0800 (CST) Received: from [127.0.0.1] (10.47.91.115) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Wed, 14 Mar 2018 03:29:07 +0800 Subject: Re: perf-core build fails on powerpc To: Sukadev Bhattiprolu , Arnaldo Carvalho de Melo References: <20180313191742.GA29120@us.ibm.com> CC: , Michael Ellerman From: John Garry Message-ID: <152d2ba4-fe57-beab-87d5-554a0fede9ae@huawei.com> Date: Tue, 13 Mar 2018 19:29:02 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20180313191742.GA29120@us.ibm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.47.91.115] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/03/2018 19:17, Sukadev Bhattiprolu wrote: > > > 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", > }, > > --- > I will check this, thanks and sorry for the hassle. John > 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 > }, > > ---- > > > . >