From patchwork Tue May 23 18:25:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 100382 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp448456qge; Tue, 23 May 2017 11:26:22 -0700 (PDT) X-Received: by 10.99.169.26 with SMTP id u26mr4210714pge.177.1495563982292; Tue, 23 May 2017 11:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495563982; cv=none; d=google.com; s=arc-20160816; b=MtufutOijG99SaHrjr1DawEpP27/a7/pn5rB5uIGUsbKmrTKXCnuRrEF0lT+B5/Jvq rNZRgg3PS6DjbutEcRDLzBMcLKCpjGggJcHcfAsQpdh+FGjqL94pRQM+rOq8Zn+nfZgI 7R8NuCWZhYqWdtvekB6sWN5LvU65Wym3o5YUtITtzqGhK8En0fAAAqgPYuhCFH26HOO2 hhdZRc+ft9rrVWZ0Xfit0YS8u80G1AhDTr1NCOTimbUT2vGuMw+cZbpJyI786IoktUHg GazOM3g05iTNm0Mt9iEjcjy2Dhkpei1dnoHQc2gnSQHer9m2aGkCmaTT+Eu9TBtW3MUK UZyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:delivered-to:sender:list-help :list-post:list-archive:list-subscribe:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=I4YuqJPoAFw7W3COwaFFyAneO44PSAEuyLbDRG1r8Sc=; b=la7HmNAWP9hf7q7BvWHPW/OeWU9NRYGVboAxhgegpnCa0Sfgo53HjPpp10H/sXe0aF ZFYLlfjtsptM8fhOxb9LI+GYiBey9Bcqwrt1MiyV9E7d6aRUkOdbuLGVzyKkAizitxj3 hasdBbCB40bSfh1mGGnxruSw0F9cugxCy1XnkPDAoM8f/MjYefFE0L89iq5O8xBLTJm7 4jLIANeWKN2grQoU5JvL1hyIxWKGlcUsHBv3IK+pxTbzyTn6kdgQ2JdWsMEn6TeCpJmX 0mHdBhPyfvA5AI3i9kn9flTqANvfUwuiBeUySAFxVVe/sg+cDpay6i9P4TkSyRyMpwhh TAew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79664-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79664-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id m25si22372747pli.193.2017.05.23.11.26.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 11:26:22 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-79664-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79664-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79664-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=CIPTrYd9whNv9m6Qhm/ZmyhuQENQ6Oq0ZP4Gaz6G8TUVOUskjXpUC ewOP6zwpWEVVDfVkr2tLzCSo1R+KGhbgdzPaHnIs/0svEakVYwZsGQbcyAkXWsf4 dVzT8Gnccq0iE/8h/5Cm52Lb4XcI5DXPam/ip3q+IZRwrPvUW0ZxAw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=aDhKvJpVMZdqmI9roZImuqrIr+Q=; b=YXVkcBEj6l7OWUYQjv+nEFBEqBKg ma13zRscQw4WbffEjvRa5zkuf0NhMr4u7u4g2WMLD3VJ/z1gSL9CwXn3E/rJXBHE ORbuvVdx1Y6wuDMxh/3nx1YU3z4IHHqSTWRDZa8ALQUmELPlK4r/+rl9isNLRIZz GO5xOrulIMgtcnM= Received: (qmail 71474 invoked by alias); 23 May 2017 18:26:09 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 71456 invoked by uid 89); 23 May 2017 18:26:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f176.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=I4YuqJPoAFw7W3COwaFFyAneO44PSAEuyLbDRG1r8Sc=; b=pOQ2HQMYKRFFPRaG2GK4VQJK6PK2h3G/Xw651ZUPpuARwCTnBv34WwDqqpPXV8HaIu hCNKm0Fap+Cpr2/m1Cw/M0uF28rklhaHPtExsmeBWh05sAEX403GuMcPPaHbZlzAFz5N 4XCZt3aHnQT87lkICqIJdfxGB4ofBBxxXsk45Da2j/xh/qbb4nijuHhD7CcW+/AisjgC JXxNM6eNB0ce9zJf6ljbIdRWpKxmSVp3i00fVR+LvPynIg5LRiI5J9vsHvHiEngKy2Y2 6qJEB9xXCmxkO/yG67xVWtfEAumYFlmFVHAJJygjQx1YbBTyrJnIppNSvDCvECrC6zc2 GvpA== X-Gm-Message-State: AODbwcCuypWJD7n0/azVhe2wsx3ciiAjGi11sMoPywjXcCIveVul9Ymh PPEtE9hJEQnsA15oqRQxYA== X-Received: by 10.237.54.2 with SMTP id e2mr28669559qtb.218.1495563967776; Tue, 23 May 2017 11:26:07 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 0/5] Remove sysdep-cancel assembly macro Date: Tue, 23 May 2017 15:25:55 -0300 Message-Id: <1495563960-669-1-git-send-email-adhemerval.zanella@linaro.org> This patchset finishes my previous work of Linux syscall consolidation and refactor to finally remove the requeriment of sysdeps-cancel.h assembly macros for cancellable syscalls. All ports now uses the SYSCALL_CANCEL macros with C implementation which in turn calls INLINE_SYSCALL macros. Besides simplify the curent code requirement, it also simplify possible future ports to require only the C bindings and the direct assembly one for syscalls.list autogeneration (another possible work for future would be to use C generate binding to simplify even further the syscall requirements). I checked with a build for mostly supported architecture: aarch64-linux-gnu, alpha-linux-gnu, arm-linux-gnueabhi, i686-linux-gnu, ia64-linux-gnu, m68k-linux-gnu, microblaze-linux-gnu, mips{64,64n32}-linux-gnu, nios2-linux-gnu, powerpc{64,64le}-linux-gnu, s390{x}-linux-gnu, sh4-linux-gnu{-soft}, tile{pro,gx}-linux-gnu{-32}, sparc{v9,64}-linux-gnu, and x86_64-linux-gnu. I also run a full make check on real hardware on aarch64-linux-gnu, arm-linux-gnueabihf, i686-linux-gnu, powerpc{64le}-linux-gnu, sparc{v9,64}-linux-gnu, and x86_64-linux-gnu{-x32}. Adhemerval Zanella (5): Fix {INLINE,INTERNAL}_SYSCALL macros for x32 Remove p{read,write}{v} and fallocate from x86 auto-generation list linux: Consolidate sync_file_range implementation Consolidate Linux fcntl implementation Remove cancellation support for syscall generation ChangeLog | 250 ++++++++++++++++++++ io/Makefile | 1 - sysdeps/unix/make-syscalls.sh | 4 - sysdeps/unix/syscall-template.S | 7 +- sysdeps/unix/sysv/linux/Makefile | 1 + sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h | 87 +------ sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h | 131 +---------- sysdeps/unix/sysv/linux/arm/fcntl.c | 1 - sysdeps/unix/sysv/linux/arm/sysdep-cancel.h | 197 +--------------- sysdeps/unix/sysv/linux/fcntl.c | 52 ++--- .../unix/sysv/linux/generic/wordsize-32/fcntl.c | 86 ------- sysdeps/unix/sysv/linux/hppa/fcntl.c | 1 - sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h | 236 +------------------ sysdeps/unix/sysv/linux/i386/fcntl.c | 61 ----- sysdeps/unix/sysv/linux/i386/sysdep-cancel.h | 119 +--------- sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h | 194 +--------------- sysdeps/unix/sysv/linux/m68k/fcntl.c | 1 - sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h | 108 +-------- sysdeps/unix/sysv/linux/microblaze/fcntl.c | 1 - sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h | 116 +--------- sysdeps/unix/sysv/linux/mips/mips32/fcntl.c | 1 - sysdeps/unix/sysv/linux/mips/mips64/n32/fcntl.c | 1 - .../unix/sysv/linux/mips/mips64/sysdep-cancel.h | 249 -------------------- sysdeps/unix/sysv/linux/mips/sysdep-cancel.h | 159 +------------ sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h | 110 +-------- sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c | 1 - .../sysv/linux/powerpc/powerpc32/sysdep-cancel.h | 118 ---------- sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c | 49 +--- .../sysv/linux/powerpc/powerpc64/sysdep-cancel.h | 147 ------------ sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h | 38 ++++ sysdeps/unix/sysv/linux/s390/s390-32/fcntl.c | 1 - .../unix/sysv/linux/s390/s390-32/sysdep-cancel.h | 105 +-------- .../unix/sysv/linux/s390/s390-64/sysdep-cancel.h | 109 +-------- sysdeps/unix/sysv/linux/sh/fcntl.c | 1 - sysdeps/unix/sysv/linux/sh/sysdep-cancel.h | 136 +---------- sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c | 1 - .../unix/sysv/linux/sparc/sparc32/sysdep-cancel.h | 111 --------- .../unix/sysv/linux/sparc/sparc64/sysdep-cancel.h | 109 --------- sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h | 38 ++++ sysdeps/unix/sysv/linux/tile/sysdep-cancel.h | 123 +--------- sysdeps/unix/sysv/linux/wordsize-64/syscalls.list | 1 - sysdeps/unix/sysv/linux/x86_64/syscalls.list | 4 - sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h | 62 +---- sysdeps/unix/sysv/linux/x86_64/sysdep.h | 251 ++++++++++++--------- sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list | 1 - sysdeps/unix/sysv/linux/x86_64/x32/times.c | 24 +- 46 files changed, 572 insertions(+), 3032 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/arm/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/hppa/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/i386/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/m68k/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/microblaze/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips32/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/n32/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h delete mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h delete mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h create mode 100644 sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h delete mode 100644 sysdeps/unix/sysv/linux/s390/s390-32/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/sh/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c delete mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h delete mode 100644 sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h create mode 100644 sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h -- 2.7.4