Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp380620pxb; Wed, 22 Sep 2021 04:27:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySv5+kF5/7ctjkHWlRp55aEgGslSx7OlKHC7nq9QcQENLVpcrxcrpoDvJP5C+Ha9tl1R9a X-Received: by 2002:a5e:870f:: with SMTP id y15mr3902647ioj.80.1632310079543; Wed, 22 Sep 2021 04:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632310079; cv=none; d=google.com; s=arc-20160816; b=AQ9cJx7O+5MTIiykUVZ76DZFCUwQ8wEe2GzPUgSlaVv1Py5TiRi+Vn7J3lxEfkDTRg 2STgfjm819/g4my5CDmVYBXbXCh09Umov97ECbmLiOx/CaMp39iooVs8xNsY3qsmxQr1 cpHRouwcO8u5r19v7ksb5RDcOyMFePd4FeXxQ9bWUcHEi6C0Yef5SXe/hc6GkS70ZAOB pLY6fpOSESwlm6Zs/x+T4+UMi6lEdcckkJWW2i49qr01kRowc4x2tiVVr6yKMp9pxc+8 yZtXy7qk8J3THHQyMx3gPsvaz+/FcaWVhwylY9tnWT8rX729ntLTAeeO8tRVdk9MwEIB j5qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=XNndM4cjq7C0UHZMZI7Uy2b6mSjeVz7aog32CVOdScU=; b=xi+l9nrVgU8lVbqnr3wim6KQeMOy2BzxuURsBNY+FQ0VKwV71aDubxqq9nRVQ8ZP6h sHR4k83HvrXVZ/lo2iKZnkwJeSTPnmXy8lzKntYgZFEtkdWWlSYlswup5J/DdEMDg/Jg di4bAzb3Y9NIuu+wvUd5AWL943vQsZrRmO9qxrhNktdALhKzG230sJb9mhamDNEYJb7/ GKMph8719jCaopZK3gAx9YvfBvdyatwK6TfF4qp1vdclv8RF4rLlEmO5hHfX6Ay22gED c28evyx/ocGGdg6jUS7rHS+BYw6Ro8U/cnB1KOTMStfSni5ZNNxHWum3kROxsDtpbIR8 KOSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u2si2250726jat.52.2021.09.22.04.27.48; Wed, 22 Sep 2021 04:27:59 -0700 (PDT) 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; 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 S235719AbhIVL2E convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Sep 2021 07:28:04 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:51701 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235567AbhIVL2D (ORCPT ); Wed, 22 Sep 2021 07:28:03 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MDy9C-1mcwXs3dhs-009yuP; Wed, 22 Sep 2021 13:26:32 +0200 Received: by mail-wr1-f48.google.com with SMTP id t8so5826332wri.1; Wed, 22 Sep 2021 04:26:32 -0700 (PDT) X-Gm-Message-State: AOAM533LsjKHRHjlQInwTX0j/HGbg1arUoToMliProsOZ4IaDiP4Ba5y A+QjtfANgq8mEYZNS9SHXc+ZUSGRDXxN9UU6l3M= X-Received: by 2002:adf:f481:: with SMTP id l1mr10119089wro.411.1632309992502; Wed, 22 Sep 2021 04:26:32 -0700 (PDT) MIME-Version: 1.0 References: <20210917061040.2270822-1-alistair.francis@opensource.wdc.com> <20210917061040.2270822-2-alistair.francis@opensource.wdc.com> <72990864-5ec6-1f73-efd9-61b667a172dd@collabora.com> <9db8c79a-f704-84ce-360b-84335f926a48@collabora.com> In-Reply-To: <9db8c79a-f704-84ce-360b-84335f926a48@collabora.com> From: Arnd Bergmann Date: Wed, 22 Sep 2021 13:26:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] perf bench: Add support for 32-bit systems with 64-bit time_t To: =?UTF-8?Q?Andr=C3=A9_Almeida?= Cc: Arnd Bergmann , Alistair Francis , Linux Kernel Mailing List , Alistair Francis , linux-riscv , Namhyung Kim , Jiri Olsa , linux-perf-users@vger.kernel.org, Alexander Shishkin , Mark Rutland , Arnaldo Carvalho de Melo , Davidlohr Bueso , Darren Hart , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Atish Patra , Alistair Francis Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:DVyMJu3EjIwLUe2Ypw4bUMl+M9UBYlSLH1ODjKc+u1OVi8dNV3I kbbbC9VP6r4vZtTTWHqIDwdWO7JNYK9H670FzpUoE/w3NeTEM9Ti/rJtzeAyBnA90h1J8Yn kghcVpILj3m4u71GMidgvFcvY48nDvIBv5u3d3eddAPbgIJjvhHHileEtP4kGagBoRPOW8t AQty/39s9A2PfUir+ei0g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:XOi8kqRnCCs=:2721ZEHrD0X0Fgqt5mARlB W6J86hPyLugTT5k1p6aporsqWgKsvXJs9w6qhcylhVjoq+K8yO0xDX4PaC91R+Zks3wgCEzI1 sbbVPtaIKtN/UxopsXstSI5yGt2cwOxO+M+R7eIb2HcLA52zVYxCRCXIaStNO6PK1tO4Jayqy lVMGSIGviD0nPgOTOJxB7krLyc8FYeasKUl0ljSLrvMi+XMKe1wk0ThBICCWTlRq4MPkM+TrI Q9sZ20e//alhXLPMU0nz9Jjd5mdp4gpflQLHuVnAe5+T9Ln++mO2TezvxvT/xJ7n0RWa1eRMH AeylAbm+AIcRKEe7r2tZ+EUtqI0XPKBworlqQ0P7leKO+agsyAeNsmFNSyH1tTw3c5bbGWWZZ d/1qrtYxW7bc42d3Xr8dNQf9bWj6cmah6ON/eUHn2utJCYL8ygE4s3mywSRaTxN7aNMjZQhsW 0qCBCSB5JloXpH+xiDpNIa8b9evDt8unBQLKLCavxYsxkM0mPhE6MklUw43exAF3NQzu1rXp9 xtEY6kV6MN2urO26jCF+Z6tTodNEgDUNIyKfh+apgxodtt83lN+p7zgb08KOsfy8fth1O7MGe jRm2b1UT52MZ1uLRBncflHOO4zh+So5re8VLHaQWPCdNMqYMWQmrVwNBdhH1MWCwzeSDvVyDa 4FdJ/C8RuGfBNwOy+SBYsX7wuAT40D4bU/k9cjYOTVdQ5tOQnjScnY03R+atergTgzyVedLk6 F3gnwXBl7tMnmfujV5rd3LwYTjsIN1BPYVvYTgzTULsoHtBvcgcfNxg3agzpzCjAdoIZA7b/u 965eCYwiiZHSwSD3behe75QcQoXuQb2hvxLZqG/D1ar8Huw7whPk5kfP1wRR1u2NoL6TIEFlW aT1K0txkQQlSkwhVjoEg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 1:06 AM André Almeida wrote: > Às 05:08 de 21/09/21, Arnd Bergmann escreveu: > > I would love to see the wrapper that Alistair wrote as part of some kernel > > uapi header provided to user space. futex is used by tons of applications, > > and we never had a library abstraction for it, so everyone has to do these > > by hand, and they all get them slightly wrong in different ways. > > Why we don't have a futex() wrapper at glibc as we do have for others > syscalls? I think mainly because there was no agreement on what the calling conventions should be: The raw syscall is awkward because of the argument overloading that cannot easily be expressed in standard C in a typesafe way. Having a per-operation interface would avoid that problem but requires specifying what that particular interface has to be, and there is no standard to fall back on for this syscall. Arnd