Received: by 10.192.165.148 with SMTP id m20csp4106906imm; Mon, 30 Apr 2018 11:52:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqC+HwThW5lATQO9PnrZU9bfQKy580kFyFg15jQa7JSFKyUHDc94ZOLPiU3c4oA05zKfQfM X-Received: by 2002:a17:902:6ac3:: with SMTP id i3-v6mr3352669plt.378.1525114335640; Mon, 30 Apr 2018 11:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525114335; cv=none; d=google.com; s=arc-20160816; b=iELMmwbR77Sbb2Ifzj59MfP8A41/pTPv8zxebO7M9RJspcSiyrJDe2PBEPa5sOZR7n dyEkSvQA0hdFHfWodujqQ1TyK0l8RZZLzPQehvvdCy+E41i/bMJf3qpUW07xI5zWp67O wBU/PTJsS4Sk0ZCSDmCLJ2yFE2JJkJ1Qucqrd4v9YpU29NWicaq+nPq92WR5kouHRtvi un3Domx1KGftrGEECVwX3fTD73AeSIAD0fTi3cJKpp5T1RT3bP0+IWy5R7qb4OoSKMtt lZ47Yi7dLLuMlaX5Ahc8XALmrxfXP4RUjbjkXQEYEYyeQ2pKu+SEBuTUveAtZMcLzOCU arGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :organization:autocrypt:openpgp:from:references:cc:to:subject :reply-to:arc-authentication-results; bh=8OvqQlIhVn2EVeHdCCcHvgjImFvgORdFmKfyBeGXbGA=; b=Aerpk0VXJwOYg1lq7mLMmq0j9RS3/nKCsQskEW0Q5ywNNiU0ZJBeoOn8bsvx9fdg07 Pg7OHdssWrIUAHVBaWMrJfzlD/r06PSfVby6MUg7T26fMKZ8WD+M0bfxaeJnaqB1nndj xv3oEUEBctQUcVxRrTOAAe8sL+jPQN/Ej5DKpat+r5Nv6KY/5RG2zW5z7uybTo2ExGPx 7tbh9BuP/SoUdCqb52N0UpNRaXuo377TmFAjbkNfnqmnuS8kNG+OnovJLaT0XLwxTMTJ MgffevPk/NI8A72UgYdInHAlBNLU046kJzp6YEpXBjXgHhi6es84cErztxJE/6NeIZF/ hgYA== 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 u8-v6si7792305plh.22.2018.04.30.11.52.00; Mon, 30 Apr 2018 11:52:15 -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 S1754506AbeD3Svv (ORCPT + 99 others); Mon, 30 Apr 2018 14:51:51 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:32970 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255AbeD3Svu (ORCPT ); Mon, 30 Apr 2018 14:51:50 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3UIoUav146460 for ; Mon, 30 Apr 2018 14:51:49 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hp4ma43kp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 30 Apr 2018 14:51:49 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 30 Apr 2018 14:41:43 -0400 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 30 Apr 2018 14:41:38 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3UIfcNH50725000; Mon, 30 Apr 2018 18:41:38 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C673FAE052; Mon, 30 Apr 2018 14:43:31 -0400 (EDT) Received: from [9.80.214.79] (unknown [9.80.214.79]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id 61C24AE03C; Mon, 30 Apr 2018 14:43:27 -0400 (EDT) Reply-To: muriloo@linux.ibm.com Subject: Re: [PATCH] perf session: Fix undeclared 'oe' To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Alexander Shishkin , Andi Kleen , Arnaldo Carvalho de Melo , David Carrillo-Cisneros , He Kuang , Ingo Molnar , Jiri Olsa , Masami Hiramatsu , Paul Mackerras , Paul Turner , Peter Zijlstra , Sasha Levin , Simon Que , Stephane Eranian , Wang Nan , Namhyung Kim , Adrian Hunter References: <20180411184135.27664-1-muriloo@linux.ibm.com> <20180411193353.GA5656@kroah.com> <82d8f577-bbbb-0419-bf41-057522eb3f30@linux.ibm.com> <81025fb9-bab8-58ff-8f82-b1da9a1202ec@linux.ibm.com> <20180430172008.GA4266@kroah.com> <20180430174934.GB10052@kroah.com> From: Murilo Opsfelder Araujo Openpgp: preference=signencrypt Autocrypt: addr=muriloo@linux.ibm.com; prefer-encrypt=mutual; keydata= xsBNBFC2LJYBCADMXZCh0JjMe5T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1ggyyd46l4XTjAPs1wQwyLRmJ4aleL5FiXdTNNQ8SmYGDy17werKL fWcgqOZC/Z3cEK1LvYUzcqGrf8/3bsP2QMfvFmPEV4W2Co0DqPDxg1UAEQEAAcLAXwQYAQIA CQUCULYslgIbDAAKCRCU4cxoSM8OOJPBB/4ld3N0LoT57XIZj2ZCJ0C9VdknlE9QTEG2huD0 mVAL2Em3ZydgJz/TWXEKAMO50OHDvHiRFutFGZtHZuhCDgENQCaRvyI/xfi/UUA29J8Ahg2l zaICSEXwAuFZnecurvgTX2ioZNPrri2rgjKqEB+uJhkYXAziMCFSq1m+blREfjipiPKnTcLB EYizy8CewE2qHW2whXiYO7E+UPg186pF86bXiNYpEJSWB9z7ZlFsHE+ABngUjqrrCAmoteTK URTzrqPMFaiUrColsoulJamkbEn7amM9pN285U3CFREnsRv5m7TmSnPhZbBzAbEeHEaeqwO3 xFlpAuK/RlKTJ/9D Organization: IBM Date: Mon, 30 Apr 2018 15:41:32 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180430174934.GB10052@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18043018-0052-0000-0000-000002E666F9 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008952; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01025569; UDB=6.00523721; IPR=6.00804800; MB=3.00020867; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-30 18:41:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18043018-0053-0000-0000-00005C83B95D Message-Id: <8a9a895b-6647-d3b1-ef78-31f0ec34192b@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-30_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-1804300180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/30/2018 02:49 PM, Greg Kroah-Hartman wrote: > On Mon, Apr 30, 2018 at 10:20:08AM -0700, Greg Kroah-Hartman wrote: >> On Mon, Apr 30, 2018 at 02:11:55PM -0300, Murilo Opsfelder Araujo wrote: >>> On 04/11/2018 05:21 PM, Murilo Opsfelder Araújo wrote: >>>> On 04/11/2018 04:33 PM, Greg Kroah-Hartman wrote: >>>>> On Wed, Apr 11, 2018 at 03:41:35PM -0300, Murilo Opsfelder Araujo wrote: >>>>>> Using linux-3.18.y branch, perf build fails with the following: >>>>>> >>>>>> $ make -s -j16 -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=/usr DESTDIR=/tmp/builddir/build all >>>>>> [...] >>>>>> util/session.c: In function ‘__perf_session__process_pipe_events’: >>>>>> util/session.c:1093:36: error: ‘oe’ undeclared (first use in this function) >>>>>> ordered_events__set_copy_on_queue(oe, true); >>>>>> ^ >>>>>> util/session.c:1093:36: note: each undeclared identifier is reported only once for each function it appears in >>>>>> >>>>>> This patch fixes it for linux-3.18.y branch. >>>>> >>>>> Why is this failing now? Has it always been broken? Is there an >>>>> upstream patch that fixed this instead? >>>>> >>>> >>>> Hi, Greg. >>>> >>>> We've caught this build issue this week. I'm not sure since when it's >>>> failing. >>>> >>>> The upstream patch that fixes this is: >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fa713a4eb9cebe5dec71b1bd11429603e17d841d >>>> >>>> commit fa713a4eb9cebe5dec71b1bd11429603e17d841d >>>> Author: Arnaldo Carvalho de Melo >>>> Date: Tue Mar 3 11:48:12 2015 -0300 >>>> >>>> perf ordered_events: Untangle from perf_session >>>> >>>> But it doesn't apply straightforwardly. At >>>> fa713a4eb9cebe5dec71b1bd11429603e17d841d, perf API and perf_evlist >>>> struct are slightly different from linux-3.18.y. >>>> >>>> A list of upstream patches for a clean backport (I think) would be: >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=54245fdc357613633954bfd38cffb71cb9def067 >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75be989a7a18e9666efd92b846ee48bed79e8086 >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=313e53b08e99b1dacf9ea2b0fbe97890db1ea95f >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9fa8727aa4d98d35ca50ef9cd8a50c6468af921d >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fa713a4eb9cebe5dec71b1bd11429603e17d841d >>>> >>>> Do you prefer all above patches backported to linux-3.18.y or just the >>>> one-line fix I sent? >>>> >>>>>> Fixes: 95b33b99cdd6 ("perf inject: Copy events when reordering events in pipe mode") >>>>> >>>>> Was this just a bad backport? >>>> >>>> Some patches were left behind, I guess. >>>> >>>>> >>>>> thanks, >>>>> >>>>> greg k-h >>> >>> Hi, Greg. >>> >>> I've realized that perf build on v3.18.107 is still broken, actually, it >>> got a bit worse than v3.18.104. >>> >>> After applying my patch to fix the undeclared 'oe', perf build fails >>> with the following errors: >>> >>> $ make -s -j16 -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 >>> HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 >>> prefix=/usr DESTDIR=/tmp/builddir/build all >>> [...] >>> tests/code-reading.c: In function ‘read_object_code’: >>> tests/code-reading.c:145:19: error: ‘KMOD_DECOMP_LEN’ undeclared (first >>> use in this function) >>> char decomp_name[KMOD_DECOMP_LEN]; >>> ^ >>> tests/code-reading.c:145:19: note: each undeclared identifier is >>> reported only once for each function it appears in >>> tests/code-reading.c:208:2: warning: implicit declaration of function >>> ‘dso__needs_decompress’ [-Wimplicit-function-declaration] >>> if (dso__needs_decompress(al.map->dso)) { >>> ^ >>> tests/code-reading.c:208:2: warning: nested extern declaration of >>> ‘dso__needs_decompress’ [-Wnested-externs] >>> tests/code-reading.c:209:3: warning: implicit declaration of function >>> ‘dso__decompress_kmodule_path’ [-Wimplicit-function-declaration] >>> if (dso__decompress_kmodule_path(al.map->dso, objdump_name, >>> ^ >>> tests/code-reading.c:209:3: warning: nested extern declaration of >>> ‘dso__decompress_kmodule_path’ [-Wnested-externs] >>> tests/code-reading.c:145:7: warning: unused variable ‘decomp_name’ >>> [-Wunused-variable] >>> char decomp_name[KMOD_DECOMP_LEN]; >>> ^ >>> >>> Apparently, this was introduced by commit >>> 091b3b4ba55daf8b28f40794aefdaa0bdb5af7a1: >>> >>> commit 091b3b4ba55daf8b28f40794aefdaa0bdb5af7a1 >>> Author: Namhyung Kim >>> Date: Thu Jun 8 16:31:07 2017 +0900 >>> >>> perf tests: Decompress kernel module before objdump >>> >>> >>> Namhyung, are you fixing this? >> >> Ugh, I can fix this, I just did so on 4.4.y... > > Nope, this is a mess. When did perf last build on 3.18.y? It really > looks like no one cares about it... perf build is broken since v3.18.101. v3.18.100 works just fine. Cheers Murilo