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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8ECC6C4167B for ; Tue, 15 Feb 2022 15:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240614AbiBOPmm (ORCPT ); Tue, 15 Feb 2022 10:42:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242429AbiBOPm3 (ORCPT ); Tue, 15 Feb 2022 10:42:29 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68BC6D0B4A for ; Tue, 15 Feb 2022 07:37:28 -0800 (PST) Received: from integral2.. (unknown [36.68.63.145]) by gnuweeb.org (Postfix) with ESMTPSA id 103AC7E25A; Tue, 15 Feb 2022 15:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1644939433; bh=/FgHNUez6EN6l8BVNLeQey/0NJBAPNOH5gNwnrHSUYY=; h=From:To:Cc:Subject:Date:From; b=Fj/XnGaLCTnNfrLrdQWQOkayco2kgwpfjpzEShiJ5HOp1oZIN+I4U5osHi6C91aUl ni/589qjn5QNvmv/QNasxEFsUVrj7OcJfVKwm4CznruurYIPZ41KZq/2eh6oe+wVtX oSvVI7SUAuXqYZJOwydqnWRnVYyg40t8ItDF7sTWtxrxkXuqHrq8oIzTnuNy9aq7V6 mpCt2zYsYkUjWyW5CTtboyeEFacixAue8moVd9bY+SYh22kQjSDU7gGF03F+6T8LWM Isqts1em04J5dBS9fgoqAvrWoYNaU2D11vFkHuzHiQ/NTClCFoojzKoKjf0zdHai4+ Ar/ko/8uvUSuw== From: Ammar Faizi To: Jens Axboe Cc: io-uring Mailing List , GNU/Weeb Mailing List , Tea Inside Mailing List , Ammar Faizi , Arthur Lapz , Nugra , Alviro Iskandar Setiawan , Nugra Subject: [PATCH liburing v1 0/2] Support busybox mktemp and add x86-64 syscall macros Date: Tue, 15 Feb 2022 22:36:49 +0700 Message-Id: <20220215153651.181319-1-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hi Jens, Two patches in this series. 1) Support busybox mktemp from Nugra. ------------------------------------- Busybox mktemp does not support `--tmpdir`, it says: mktemp: unrecognized option: tmpdir It can be fixed with: 1. Create a temporary directory. 2. Use touch to create the temporary files inside the directory. 3. Clean up by deleting the temporary directory. 2) Create syscall __do_syscall{0..6} macros from Alviro. ---------------------------------------------------------- Reduce arch dependent code by creating __do_syscall{0..6} macros. These macros are made of inline Assembly x86-64. Use them to invoke syscall via __sys* functions. By using this design, we don't have to code in inline Assembly again when adding a new syscall. Tested on Linux x86-64, all test passed, but rsrc_tags timedout. Cc: Arthur Lapz Cc: Nugra Signed-off-by: Alviro Iskandar Setiawan Signed-off-by: Nugra Signed-off-by: Ammar Faizi --- Alviro Iskandar Setiawan (1): arch/x86: Create syscall __do_syscall{0..6} macros Nugra (1): configure: Support busybox mktemp configure | 13 ++- src/arch/x86/syscall.h | 242 +++++++++++++++++++++-------------------- 2 files changed, 132 insertions(+), 123 deletions(-) base-commit: ea1e6f8c4e9180bde1844bd56a072bd4c1afae3e -- 2.32.0