Received: by 10.213.65.68 with SMTP id h4csp699469imn; Tue, 13 Mar 2018 18:54:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELssaeGtP+CxG2CpWNzYlK2uH7wcVyHkz5LkXxfas04dUxoY+hIT4JJR7wAObVKdXJA5O2zI X-Received: by 2002:a17:902:a613:: with SMTP id u19-v6mr2442071plq.92.1520992442820; Tue, 13 Mar 2018 18:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520992442; cv=none; d=google.com; s=arc-20160816; b=jfW/XA2dep0uQd6owo5dHEciXNgDskzkTZNjf5UBaCnPzNIEG82E1HOlvpzSmAqMRF oObbuKmDeXVTM//Np9fUm0W1InFNae1nnDas72ucTNURE3ND9PowrXJt1sVAxWP1VFu7 uInf0qg6O2tsXMJ3Hb7/NGaa4vTntt7iQGQ27fYKnyzuVhSZqUwzxiEp1uu4iIegN9rF Nac/T4+c2e9wTvgMuEsVa6Q5b2/qdKeCg+oRj+VSDovnIGj5P3RXLcWXPS4ncCgcYCWL Gke24D+25K80SBGqm58J3c6NbX4DZiI1evdw/wG6YaSKnpPFJ6+LTqJyh0hnWaFmxqRG QXHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=6SwzhzuiKcbnf0/18fS7bkwFZeA0dl4zP0jkR39V/JQ=; b=TQw4TjljgKL8Ik+Zx0sbnDOl+3CVp5Mx0vj3uOAWDp7v1iNN6lOQwJ6wr37kB7ZTcH IATrQAdmSirucYJMn9fMRBeozdRpQYwdB6+2LVt7TkHePktpNq3iL5LHz0N+d0iIdRFQ umq5bEXXKYr8YKyOjI8gGLtdIgpBOznpC1VhqJHPH5J2tHs0DicsLVV4QCvL4wQR3rKl zHU920MbZRfzUJLxi4TsOxgndvlSm055RYHvjeXM0aA205UAHex5thjtk8mUqSIjyvFy WS4XvtzCHJ8vC4ydrCFckC8PBULvzz1i56PJv4Obl38ZDoqS2jg820RoD6PmN5p1mPxK FByA== 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 s10-v6si1096901plj.626.2018.03.13.18.53.46; Tue, 13 Mar 2018 18:54:02 -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 S932995AbeCNBwj (ORCPT + 99 others); Tue, 13 Mar 2018 21:52:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:47230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932782AbeCNBwi (ORCPT ); Tue, 13 Mar 2018 21:52:38 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8315205F4; Wed, 14 Mar 2018 01:52:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8315205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id 6FFBB145173; Tue, 13 Mar 2018 22:52:34 -0300 (-03) Date: Tue, 13 Mar 2018 22:52:34 -0300 From: Arnaldo Carvalho de Melo To: Sukadev Bhattiprolu Cc: john.garry@huawei.com, linux-kernel@vger.kernel.org, Michael Ellerman Subject: Re: perf-core build fails on powerpc Message-ID: <20180314015234.GA19781@kernel.org> References: <20180313191742.GA29120@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180313191742.GA29120@us.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Mar 13, 2018 at 12:17:42PM -0700, Sukadev Bhattiprolu escreveu: > > > 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: Humpf, this should've been caught by one of the powerpc crossbuild containers I have in place... will check why the jevents.c code is not being stressed... - Arnaldo > 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 > }, > > ----