Received: by 10.192.165.148 with SMTP id m20csp4052375imm; Mon, 30 Apr 2018 10:50:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhoIyJw3RH3JDvGh6ivLz09SXsOoAZDU58hwZPVKaXt87kYZhBa3mKNSEx/KlDMHpxemqq X-Received: by 10.98.242.13 with SMTP id m13mr12937993pfh.170.1525110612420; Mon, 30 Apr 2018 10:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525110612; cv=none; d=google.com; s=arc-20160816; b=ez/Vcqw1PiGe8xLpLOiZDdGNH2sCPkm6D1P3ofryRnpZJNB5at3EWxmbWd/rjDB2J2 MBsGxdWIJSh+p0kfEFP5x+ODb+vjWZO/GeG9btABIiFgyFilKVnt4Tba/KK1zXYrLVgL NWUh21pi4K9qp0DMZZRJzXYj2XfAplVjalE9/SdjTqFfM0Jdu0amUBOmPIdG9NCVKmP7 ZZBZmLOOHUtzFg/RYg9bfKfnEV/XggIVbB4qkH+q1x3Mfi4m+n0nk+/OFBrEKys5QVqN UrdvsEwHaTEVZ2mlBOgQa6cCNaGsIMDtoXTvvMWCKfZjmt4lbxr5nHM58UUuCDbTCXxE hN3A== 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=EfaoU2zpxw3ZaJYy4UFvslZ84ERPlw2wCe61MNYwP3s=; b=bu0wU/1wbow1rw6gL3A7lHIy92xwnR9d44wU13F4t7QEM+NB/5FNcOwyMUSWsvn4+h mzBfJ7ADrsE4JGYmxwevyzZhukSQHW/bEU4XOa7OkbfHjKg8wggZeHiCljjvMxawU1C0 t8+WsU+aCxgq1MzOC33jl1xsK8Nw3MiMEcebVMAji8PRvqaXAwLHVgOj/iqJbDIeXHQ8 AfBi4JRuHf2CuNXMa2LaO78Uav6eK02sOkMv2xp59wT84F6o1nY4Rqab3flx3SiSOOjm WMibjUNg6D38fqxr7gqtSmIZF5J8o2rRb7qYKY0ZHPnW6y+siHM+ujcXXnyJD0J5FxXP OZ3g== 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 f10-v6si63150pgo.406.2018.04.30.10.49.57; Mon, 30 Apr 2018 10:50:12 -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 S1754104AbeD3Rtr (ORCPT + 99 others); Mon, 30 Apr 2018 13:49:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:34884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255AbeD3Rto (ORCPT ); Mon, 30 Apr 2018 13:49:44 -0400 Received: from localhost (unknown [104.132.1.102]) (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 3E46222D84; Mon, 30 Apr 2018 17:49:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E46222D84 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org Date: Mon, 30 Apr 2018 10:49:34 -0700 From: Greg Kroah-Hartman To: Murilo Opsfelder Araujo 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 Subject: Re: [PATCH] perf session: Fix undeclared 'oe' Message-ID: <20180430174934.GB10052@kroah.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180430172008.GA4266@kroah.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... greg k-h