Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11020700imu; Thu, 6 Dec 2018 10:12:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/WmYqPZh/r+Zpzh1PvXy6LvKTXg7rd+HPydjmlCflRvUbWSUEtJuYC3mXYWOq2sahyEjn0m X-Received: by 2002:a17:902:9897:: with SMTP id s23mr27883892plp.69.1544119951452; Thu, 06 Dec 2018 10:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544119951; cv=none; d=google.com; s=arc-20160816; b=FLfSfufcsrg13ZYJyzxIxb8ttccjW6eX0+ZE5OEXCx3Ixtw+trD/oJAWet/VE93M60 LMfV2z2klIjc1wVFH1Tx7+CpSe/ZubZMp/EigaFW75NNIVfqM8pJiWw9N4zqKmDfAOoN QrfyrPSnLxCG3/t7sDHzbJHhKF4SeFzaF4R660fWXAOaWQ0LvAAozOuRUHomoncgyYE9 b2oYl4APOhwxhO09ekucRlgP/tuCb3Jjid7tUD0Q3MyTQlbaO9F2UbxUwpH8wvXjH3xB yrILTj7lFuzXcPHiNEYGBRiH5GuNGTNoJIvypir2D/gvSCqLwGEfVIIMy768csVdSJ4e EziQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=kKyAoxmtIgsU4FsE1y1ML21Y2BGSVzIybYZN+eEoENg=; b=FeHcBF6t0j+Yab/kQx2aM3Ojy66UsjfDJee8sQp7OmFwpGsgIH7Z4NteCJKcZeKFls 1ULyMP9Y1XQplK+ujlfji8qJatQNRH72tI7lixIGhcucomdm54U8QGe+UkN4zPCmu+IB dbGk+bV9KqE9X+w24Ygi5d/YVTT7aIedhlmyf3R6J891tlPl8kTTzjUOo7wAXKe5Ud2e vIl70Q+lw3gSx0z770Xi6g85xmrRSNcLvLr+zXSAy9tMC286Lte1+gPbUUi5hiPSqdYL GenSPegGWw8o80aT0UnLSEyls8aonKq6+Bhvl8i7LZmp4jhV1SIX1hBGNkxrD7c4xiTu vPwg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si702735ply.359.2018.12.06.10.12.15; Thu, 06 Dec 2018 10:12:31 -0800 (PST) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726084AbeLFSLF (ORCPT + 99 others); Thu, 6 Dec 2018 13:11:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56488 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbeLFSLF (ORCPT ); Thu, 6 Dec 2018 13:11:05 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9F1248AE77; Thu, 6 Dec 2018 18:11:04 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-106.ams2.redhat.com [10.36.116.106]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 005FE5C88D; Thu, 6 Dec 2018 18:10:59 +0000 (UTC) From: Florian Weimer To: "Maciej W. Rozycki" Cc: Joseph Myers , Paul Burton , Firoz Khan , "open list\:RALINK MIPS ARCHITECTURE" , Ralf Baechle , James Hogan , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Arnd Bergmann , Linux Kernel Mailing List , Linux-Arch , Deepa Dinamani , Marcin Juszkiewicz , libc-alpha@sourceware.org Subject: Re: [PATCH v3 0/6] mips: system call table generation support References: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> <20181205063436.kzxgnvgexcgq572k@pburton-laptop> Date: Thu, 06 Dec 2018 19:10:57 +0100 In-Reply-To: (Maciej W. Rozycki's message of "Thu, 6 Dec 2018 17:43:27 +0000 (GMT)") Message-ID: <87mupiikzy.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 06 Dec 2018 18:11:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Maciej W. Rozycki: > On Thu, 6 Dec 2018, Joseph Myers wrote: > >> > So how are `SYS_' macros generated that land in ? >> >> By gen-syscall-h.awk, which generates #ifdef conditionals for each >> possible __NR_* name (as listed in syscall-names.list in glibc). > > I seem to remember having to take extra care with how the three MIPS ABIs > wire the syscalls to get it right in glibc, but I take it then this has > been now addressed reliably enough for the glibc not to care how exactly > has been arranged. This is a fairly recent change (commit 2dba5ce7b8115d6a2789bf279892263621088e74, ": Use an arch-independent system call list on Linux", first release with it is glibc 2.27). This patch is quite backportable; we have put it into our 2.17-derived glibc, and the upstream work was originally driven by downstream ordering requirements of kernel header and glibc builds. Glad to see it's useful elsewhere. The test retains the old -based macro extraction for testing purposes, but it needs that only for the actual target architecture and only the *names*, so it's easy to implement. Before that, the generation would have to carefully take into account multiple sub-targets (i386/x86-64/x32 is one of the more complicated scenarios). Presumably, you saw problem with that part. Even if you introduce breakage here, it will only affect older glibc builds. It's not something that application developers would see. Thanks, Florian