From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id C5E823858D33 for ; Wed, 12 Apr 2023 21:11:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C5E823858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681333885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/0qezDQZqQvZNHpgNFVSqxmVsfpqfJhw+X3l3hXGSNM=; b=OFTD+C46L5Z9ud0tuMGuaw3h8NTdgqI0QGdrPCvQ64YSi9wtGUKelicVoalIh7Gp5PVo1y a4b6vjF4sVrZ0B+9feEn5EYK/TEy35CmR6IUkmql3xuM06avJZyT2MDqjLaT8eFr5GLl0f ZIZKF1aocV9blVaMuNkAxI3O4MRgyHk= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-551-SQ3NTZ4WOqe0W2Rp7HFhOw-1; Wed, 12 Apr 2023 17:11:24 -0400 X-MC-Unique: SQ3NTZ4WOqe0W2Rp7HFhOw-1 Received: by mail-qk1-f198.google.com with SMTP id r127-20020a374485000000b0074a6b927a49so10564327qka.3 for ; Wed, 12 Apr 2023 14:11:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681333883; x=1683925883; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/0qezDQZqQvZNHpgNFVSqxmVsfpqfJhw+X3l3hXGSNM=; b=etVYcywCh6KMyepp6LfGrYGoNhOa7CSnZZk4saYJx1nG/Mr4e9kHySrWv4UUo8mJ3l 3Xonsipab3kyqkO3naedm2cIMgJVSJvqNevbHzrMU9f86jknD5wufCa2eVh/aee3HY4U Tr4QYogVJLgw27dYrdXPNBOx8ZF5KP2UbF/4D+bTug2zzzL+kxpQYv5JJhbINH+mUIIk ognvMRHF88e6MPJyhpK70t7SqWQ6u+WvSivsMYS4Zft6cLbPSjHeh8OxUypm67PPU1Ir M/nFJX4PtKPlko24F6UVMR0xuRaF8akiise1e5IVbi7qn03DBIcL1ES518SFdm81cZkX 1pQA== X-Gm-Message-State: AAQBX9do4VLA11mG7ZKaloNT2fXI7TRwoh0br7wANul1oM/oXfEJoe6x MJEJVu8MtmBhDZ0T7u6Is+NfYauPhw+aLAMp5Y6gDWSijc0pUBUep8Yu1YJIm8jT02nM6XJSJ5V n3bGNpoT52xwA1L2M51BOMGLvylRMNS2ycSsNW2HA/iNnelJ6HLvadWzMmkm27inCy7y8dRPWTl XxZLq8 X-Received: by 2002:ac8:5896:0:b0:3bf:d7f8:4f85 with SMTP id t22-20020ac85896000000b003bfd7f84f85mr766334qta.12.1681333883444; Wed, 12 Apr 2023 14:11:23 -0700 (PDT) X-Google-Smtp-Source: AKy350af1weFPclnIFd9GwfOWSPZEhZ4qrJKUthdXD93dTGntE2HR4m+WsrQZP5aGkTH+G+Tv5ep/Q== X-Received: by 2002:ac8:5896:0:b0:3bf:d7f8:4f85 with SMTP id t22-20020ac85896000000b003bfd7f84f85mr766315qta.12.1681333883163; Wed, 12 Apr 2023 14:11:23 -0700 (PDT) Received: from oak.redhat.com (c-71-206-142-238.hsd1.va.comcast.net. [71.206.142.238]) by smtp.gmail.com with ESMTPSA id r82-20020a37a855000000b0074a0051fcd4sm4939068qke.88.2023.04.12.14.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 14:11:22 -0700 (PDT) From: Joe Simmons-Talbott To: libc-alpha@sourceware.org Cc: Joe Simmons-Talbott Subject: [PATCH v2 0/2] x86_64: aarch64: Set call number just before syscall Date: Wed, 12 Apr 2023 17:11:02 -0400 Message-Id: <20230412211104.2609738-1-josimmon@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230411133004.2268170-1-josimmon@redhat.com> References: <20230411133004.2268170-1-josimmon@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: To make binary call tree analysis easier place the syscall number into the register just before the syscall is made. Only do this if the syscall number is a constant integer. Tested on x86_64 and aarch64. Changes to v1: * aarch64: Combine two inline asms into one. Avoid loading name twice. Joe Simmons-Talbott (2): x86_64: Set the syscall register right before doing the syscall. aarch64: Set the syscall register right before doing the syscall. sysdeps/unix/sysv/linux/aarch64/sysdep.h | 20 +++++++++++--- sysdeps/unix/sysv/linux/x86_64/sysdep.h | 33 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) -- 2.39.2