Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1876213pxb; Sat, 14 Nov 2020 05:32:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJgsP8b8+qxtCHyaJ/6sQtZ9YjbiKuJJZM1fngu5P83Y9J1Ju6tUgToeh5i32wNQeikd/u X-Received: by 2002:a17:906:c186:: with SMTP id g6mr6279254ejz.465.1605360748811; Sat, 14 Nov 2020 05:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605360748; cv=none; d=google.com; s=arc-20160816; b=cPfJBEdK7R4Zyu2BGIzXr4vrVL3eOVQYIqMAnu9YpZM6vkL+S0aLy5kplYjQgPLPt7 b9d00f32UA/NTEY4UQtmn+JfWNQWZj/vv/UM8WHydT2+X0rTiJIiZnqnwBlAO4wgJZdD i0tb5DfhvfiC6+m2zDE79LcjV0V9QWvFNQzb6QkU4oSOnXK4blpYt50VDc6iX95rHdz3 MeIk/rmsZq2xX6MoTFdvARb0cXTjWmg4nQ8iqtPrLaXzhBH7IeGaJo352yQGydv/Qok7 qGhlwKiv/bNRjRkPW/S4AeyeiAcuxSIajMaNmwzND9EPjGMLQfQCcSocjaL87x6Dkell 44ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=zbSQsfeOY4JcwQCUyrh1NU+e1lKtei+bdr5l30242X4=; b=iHDoVCb7XfesQLZsPFcyzqK5pcmMoOpO4Gp29C4FIsLgqFskhXPACZzP35Fvxm9VQb xk7En8hepovZTozN7gZ8NNOniertbROO1isj27AoRm25JPuDdPw9qJ02kJvxLQyTmGAn 4o8xaCz8Y5B41eluihXG4NILzQehwTlRp1MOS0FHax9UDsFpnx5Ii4v7pzE1ZztEzKNU ZYIwb2s/BPrJdGXPDDRU2BtpAM8WJulrPhFQfykRCQ6gEw61/4+QpJzt7oNHJy0yuifv 1WUvUyWcaPBAbFcXBR02TbqR0nkPDJMunvmSitwr7D/I9YQslvMXwfDlGZS277fDXm6U ejEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a2YyogWT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si7763593edr.105.2020.11.14.05.32.03; Sat, 14 Nov 2020 05:32:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a2YyogWT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbgKNN1r (ORCPT + 99 others); Sat, 14 Nov 2020 08:27:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgKNN1p (ORCPT ); Sat, 14 Nov 2020 08:27:45 -0500 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82793C0613D1; Sat, 14 Nov 2020 05:27:45 -0800 (PST) Received: by mail-ot1-x341.google.com with SMTP id n11so11535713ota.2; Sat, 14 Nov 2020 05:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zbSQsfeOY4JcwQCUyrh1NU+e1lKtei+bdr5l30242X4=; b=a2YyogWTAi7eWupJhxdfQCvt+14GJnDWtyuzKtcB6bjdN3evoEMicCfHxN0MPaZnsi 5TFm1YS4mAELxzSGnza+dhfdrDXk1UjC1Fx3Ushzi6D41eKLDjEQz1e1qNBG1QTDIBHS d2RBXyq+u8EQ2mOC7szrOr0abVqTzDaOuqXmTOIuh30+wQhSgwKBZY3GUSccQ2UiS4Hs SzJfOXxsKRf+kc73psWpL5BB5l9UdO2wwGfEg+5jDb3fR0taziSjm6/2k1yHPLmftR2W 0NUCQII0sDygdrf59hSVwZHMWZPFHImaGDfehYvtBPd5pFiJnD46AwqpEmqILzq+tvNA A0ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=zbSQsfeOY4JcwQCUyrh1NU+e1lKtei+bdr5l30242X4=; b=pge8qjyxdxCwX6CEczqtR/zz2hMh/vTqjy74Gv6FO4sR+LNVNMPd+qOUmDCFhBS8sW SXhks40A/FWnU36MuIbqkohtATqwVOyPFrEnm9T0Rb4npGekJfxKZrWBDCvdYFqKfRW3 0TjR5Jjx/WaItnszOlenEwR3JotVMZ7ldth5wIKCTL5c041xGF8lr1glF5UjitiVfGuC vN5UDyQXau1T9vgvRx4Gmx9FE08H5hvX/rNMXKu1zrw49yjP978Nry6v1QkRbt66P5aV YvAWx9DKA9ahbEJUsp3WA9KWLi2MSCH/Btq0+qHbIzi/2hPf8RXm0AFNjjyXxa1J57MT CKtA== X-Gm-Message-State: AOAM5324E0XWrUwqIj+v7yPc3fU5SaI/oSp4Zmm3qQTuA+lEIU2Q0Ko+ gL9x0/ft5nLpP33YaxpltsOlJaS/Wu4= X-Received: by 2002:a05:6830:1dc4:: with SMTP id a4mr4639815otj.361.1605360464508; Sat, 14 Nov 2020 05:27:44 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 12sm2770045oiq.9.2020.11.14.05.27.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Nov 2020 05:27:43 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH 4.19 000/264] 4.19.153-rc1 review To: Salvatore Bonaccorso Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, stable@vger.kernel.org References: <20201027135430.632029009@linuxfoundation.org> <20201028171035.GD118534@roeck-us.net> <20201028195619.GC124982@roeck-us.net> <20201031094500.GA271135@eldamar.lan> <7608060e-f48b-1a7c-1a92-9c41d81d9a40@roeck-us.net> <20201114083501.GA468764@eldamar.lan> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXa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8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <0a338aae-c3cc-97d4-825e-9082a9659504@roeck-us.net> Date: Sat, 14 Nov 2020 05:27:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201114083501.GA468764@eldamar.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/14/20 12:35 AM, Salvatore Bonaccorso wrote: > Hi Guenter, > > On Sat, Oct 31, 2020 at 07:31:32AM -0700, Guenter Roeck wrote: >> On 10/31/20 2:45 AM, Salvatore Bonaccorso wrote: >>> Hi Greg, >>> >>> On Wed, Oct 28, 2020 at 12:56:19PM -0700, Guenter Roeck wrote: >>>> Retry. >>>> >>>> On Wed, Oct 28, 2020 at 10:10:35AM -0700, Guenter Roeck wrote: >>>>> On Tue, Oct 27, 2020 at 02:50:58PM +0100, Greg Kroah-Hartman wrote: >>>>>> This is the start of the stable review cycle for the 4.19.153 release. >>>>>> There are 264 patches in this series, all will be posted as a response >>>>>> to this one. If anyone has any issues with these being applied, please >>>>>> let me know. >>>>>> >>>>>> Responses should be made by Thu, 29 Oct 2020 13:53:47 +0000. >>>>>> Anything received after that time might be too late. >>>>>> >>>>> >>>>> Build results: >>>>> total: 155 pass: 152 fail: 3 >>>>> Failed builds: >>>>> i386:tools/perf >>>>> powerpc:ppc6xx_defconfig >>>>> x86_64:tools/perf >>>>> Qemu test results: >>>>> total: 417 pass: 417 fail: 0 >>>>> >>>>> perf failures are as usual. powerpc: >>> >>> Regarding the perf failures, do you plan to revert b801d568c7d8 ("perf >>> cs-etm: Move definition of 'traceid_list' global variable from header >>> file") included in 4.19.152 or is a bugfix underway? >>> >> >> The problem is: >> >> In file included from util/evlist.h:15:0, >> from util/evsel.c:30: >> util/evsel.c: In function ‘perf_evsel__exit’: >> util/util.h:25:28: error: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type >> /usr/include/stdlib.h:563:13: note: expected ‘void *’ but argument is of type ‘const char *’ >> extern void free (void *__ptr) __THROW; >> >> This is seen with older versions of gcc (6.5.0 in my case). I have no idea why >> newer versions of gcc/glibc accept this (afaics free() still expects a char *, >> not a const char *). The underlying problem is that pmu_name should not be >> declared const char *, but char *, since it is allocated. The upstream version >> of perf no longer uses the same definition of zfree(). It was changed from >> #define zfree(ptr) ({ free(*ptr); *ptr = NULL; }) >> to >> #define zfree(ptr) __zfree((void **)(ptr)) >> which does the necessary typecast. The fix would be to either change the definition >> of zfree to add the typecast, or to change the definition of pmu_name to drop the const. >> Both would only apply to v4.19.y. I don't know if either would be acceptable. >> >> Either case, reverting b801d568c7d8 won't solve that problem. > > Are we talking about the same problem though? With v4.19.157 and > building with "gcc (Debian 8.3.0-6) 8.3.0", with an unpatched source: > > $ LC_ALL=C.UTF-8 ARCH=x86 make perf > mkdir -p . > make --no-print-directory -C perf O= subdir= > BUILD: Doing 'make -j2' parallel build > Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs from latest version at 'include/uapi/drm/i915_drm.h' > diff -u tools/include/uapi/drm/i915_drm.h include/uapi/drm/i915_drm.h > Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h' > diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h > Warning: Kernel ABI header at 'tools/include/uapi/linux/perf_event.h' differs from latest version at 'include/uapi/linux/perf_event.h' > diff -u tools/include/uapi/linux/perf_event.h include/uapi/linux/perf_event.h > Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h' > diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h > Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/kvm.h' differs from latest version at 'arch/x86/include/uapi/asm/kvm.h' > diff -u tools/arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm/kvm.h > Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S' > diff -u tools/arch/x86/lib/memcpy_64.S arch/x86/lib/memcpy_64.S > Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h' > diff -u tools/include/uapi/linux/mman.h include/uapi/linux/mman.h > > Auto-detecting system features: > ... dwarf: [ on ] > ... dwarf_getlocations: [ on ] > ... glibc: [ on ] > ... gtk2: [ OFF ] > ... libaudit: [ on ] > ... libbfd: [ OFF ] > ... libelf: [ on ] > ... libnuma: [ on ] > ... numa_num_possible_cpus: [ on ] > ... libperl: [ on ] > ... libpython: [ on ] > ... libslang: [ on ] > ... libcrypto: [ on ] > ... libunwind: [ on ] > ... libdw-dwarf-unwind: [ on ] > ... zlib: [ on ] > ... lzma: [ on ] > ... get_cpuid: [ on ] > ... bpf: [ on ] > > Makefile.config:456: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev > Makefile.config:623: GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev > Makefile.config:682: No 'python-config' tool was found: disables Python support - please install python-devel/python-dev > Makefile.config:853: No alternatives command found, you need to set JDIR= to point to the root of your Java directory > Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' > CC util/cs-etm-decoder/cs-etm-decoder.o > CC util/intel-pt.o > util/cs-etm-decoder/cs-etm-decoder.c: In function 'cs_etm_decoder__buffer_packet': > util/cs-etm-decoder/cs-etm-decoder.c:287:24: error: 'traceid_list' undeclared (first use in this function); did you mean 'trace_event'? > inode = intlist__find(traceid_list, trace_chan_id); > ^~~~~~~~~~~~ > trace_event > util/cs-etm-decoder/cs-etm-decoder.c:287:24: note: each undeclared identifier is reported only once for each function it appears in > make[6]: *** [/build/linux-stable/tools/build/Makefile.build:97: util/cs-etm-decoder/cs-etm-decoder.o] Error 1 > make[5]: *** [/build/linux-stable/tools/build/Makefile.build:139: cs-etm-decoder] Error 2 > make[5]: *** Waiting for unfinished jobs.... > make[4]: *** [/build/linux-stable/tools/build/Makefile.build:139: util] Error 2 > make[3]: *** [Makefile.perf:633: libperf-in.o] Error 2 > make[2]: *** [Makefile.perf:206: sub-make] Error 2 > make[1]: *** [Makefile:70: all] Error 2 > make: *** [Makefile:77: perf] Error 2 > > Reverting b801d568c7d8 would still fix the issue for me. > You are correct, that is a different issue, and b801d568c7d8 will need to be reverted to fix it. I just can't figure out how to convince perf to compile this file for me. Guenter