From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CCDEC433F5 for ; Fri, 10 Dec 2021 13:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uWxW2ZpYafSdCgSBg5p6sRXL2tFbBLkvdixNlH5LF6M=; b=xXNMjt79QcdgYV FHZOhuMhHKff72/B1gXCi7LWrZHzg/NV+H+fMEgxKa3UnJ39dkI5Peu1wpOZ2Wh592RtchOURkhCt IHH5Ennm3jwmCFCX6o1qJMLBpz5Ok/KH52Pk/p9kblBw5fhFqZFIZXJ2ld7/ghZAL47JVYcLhVeBJ 7n/T0/N7Wl4JA4orW3JSWhhImz4LV3JIjyr1RjX0XMLYXzRr1bZYAbYq6+EZqqxrVkRgjAEGF8/xy AuhPzVaV6JrGlPnBzv/3JthazkiJjpF7vHC/pcGJvz6s2178snZf9fb6+f1SQc+rL5xVCwrKTDYJX mRE0GkCLnVJ4WwlW6YIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvg5R-0021P8-4P; Fri, 10 Dec 2021 13:37:21 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvg4i-0020wD-0u for linux-riscv@bombadil.infradead.org; Fri, 10 Dec 2021 13:36:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=k4ceD5jAA0ApV9bmZHn7ryLMLQE7r2V3MQGGu4sFq/A=; b=fmm9vzzoMBgNqlXvOQJpUNoh/S XFHcdfRClqXrn2LYmf1+E0Sglku8043EGmVRj6HT/ZhbsQYKP/VBfgm0vOnszHWHS0zR/a7vMm2+u 6Xsw0Z/71A5fyCupTfC5x/blzzzRZ3Q9O7L9IPZXuPs4mYUVCuYKmhUrlzWPCkHFI/Z29iWKd2ify 0IKeAD6VwJc38C6A4yLmEAJgMjhx5GgtNa32fyiHKnC0mNY5gDev8HCovnVnd5nPQtzIOj4nNmxfV f0PBlRa26GGcqTHZPHUMtmomSOTgxTsz2+NGFyDfoq/XhquU9a9oHkgHW4e0AuV5JfryhwTDz0srk ID2H7Djw==; Received: from [179.97.37.151] (helo=quaco.ghostprotocols.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvg4f-00AMF5-3c; Fri, 10 Dec 2021 13:36:34 +0000 Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id EADD5405D8; Fri, 10 Dec 2021 10:36:30 -0300 (-03) Date: Fri, 10 Dec 2021 10:36:30 -0300 From: Arnaldo Carvalho de Melo To: Alistair Francis Cc: linux-kernel@vger.kernel.org, dave@stgolabs.net, dvhart@infradead.org, arnd@arndb.de, alistair23@gmail.com, namhyung@kernel.org, jolsa@redhat.com, linux-perf-users@vger.kernel.org, alexander.shishkin@linux.intel.com, mark.rutland@arm.com, mingo@redhat.com, peterz@infradead.org, tglx@linutronix.de, Alistair Francis , Atish Patra , linux-riscv@lists.infradead.org, Arnaldo Carvalho de Melo Subject: Re: [PATCH v5 1/6] perf bench futex: Add support for 32-bit systems with 64-bit time_t Message-ID: References: <20211209235857.423773-1-alistair.francis@opensource.wdc.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211209235857.423773-1-alistair.francis@opensource.wdc.com> X-Url: http://acmel.wordpress.com X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Em Fri, Dec 10, 2021 at 09:58:52AM +1000, Alistair Francis escreveu: > From: Alistair Francis > > Some 32-bit architectures (such are 32-bit RISC-V) only have a 64-bit > time_t and as such don't have the SYS_futex syscall. This patch will > allow us to use the SYS_futex_time64 syscall on those platforms. > > This also converts the futex calls to be y2038 safe (when built for a > 5.1+ kernel). > > This is a revert of commit ba4026b09d83acf56c040b6933eac7916c27e728 > "Revert "perf bench futex: Add support for 32-bit systems with 64-bit time_t"". > > The original commit was reverted as including linux/time_types.h would > fail to compile on older kernels. This commit doesn't include > linux/time_types.h to avoid this issue. 10 9.99 alpine:3.12 : FAIL gcc version 9.3.0 (Alpine 9.3.0) In file included from bench/futex-hash.c:29: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' 37 | __kernel_old_time_t tv_sec; /* seconds */ | ^~~~~~~~~~~~~~~~~~~ In file included from bench/futex-wake.c:25: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' 37 | __kernel_old_time_t tv_sec; /* seconds */ | ^~~~~~~~~~~~~~~~~~~ make[3]: *** [/git/perf-5.16.0-rc4/tools/build/Makefile.build:139: bench] Error 2 11 114.27 alpine:3.13 : Ok gcc (Alpine 10.2.1_pre1) 10.2.1 20201203 , Alpine clang version 10.0.1 12 100.12 alpine:3.14 : Ok gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424 , Alpine clang version 11.1.0 13 101.06 alpine:3.15 : Ok gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027 , Alpine clang version 12.0.1 14 101.96 alpine:edge : Ok gcc (Alpine 11.2.1_git20211128) 11.2.1 20211128 , Alpine clang version 12.0.1 15 6.98 alt:p8 : FAIL gcc version 5.3.1 20151207 (ALT p8 5.3.1-alt3.M80P.1) (GCC) In file included from bench/futex-hash.c:29:0: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' __kernel_old_time_t tv_sec; /* seconds */ ^ In file included from bench/futex-wake.c:25:0: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' __kernel_old_time_t tv_sec; /* seconds */ ^ In file included from bench/futex-wake-parallel.c:31:0: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' __kernel_old_time_t tv_sec; /* seconds */ ^ make[3]: *** [bench] Error 2 16 73.65 alt:p9 : Ok x86_64-alt-linux-gcc (GCC) 8.4.1 20200305 (ALT p9 8.4.1-alt0.p9.1) , clang version 10.0.0 17 72.34 alt:sisyphus : Ok x86_64-alt-linux-gcc (GCC) 11.2.1 20210911 (ALT Sisyphus 11.2.1-alt1) , ALT Linux Team clang version 12.0.1 18 7.58 amazonlinux:1 : FAIL gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) In file included from bench/futex-hash.c:29:0: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' __kernel_old_time_t tv_sec; /* seconds */ ^~~~~~~~~~~~~~~~~~~ In file included from bench/futex-wake.c:25:0: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' __kernel_old_time_t tv_sec; /* seconds */ ^~~~~~~~~~~~~~~~~~~ make[3]: *** [bench] Error 2 19 8.28 amazonlinux:2 : FAIL gcc version 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC) In file included from bench/futex-hash.c:29:0: bench/futex.h:37:2: error: unknown type name '__kernel_old_time_t' __kernel_old_time_t tv_sec; /* seconds */ ^~~~~~~~~~~~~~~~~~~ make[3]: *** [bench] Error 2 20 79.16 centos:8 : Ok gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1) , clang version 11.0.1 (Red Hat 11.0.1-1.module_el8.4.0+966+2995ef20) Still building on the other containers. - Arnaldo _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv