Message ID | 1465445930-3960-4-git-send-email-zlim.lnx@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 087D260467 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Jun 2016 04:21:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2D27281F9 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Jun 2016 04:21:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7C4C2824F; Thu, 9 Jun 2016 04:21:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94D68281F9 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Jun 2016 04:21:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bArRe-0006P0-Q6; Thu, 09 Jun 2016 04:19:50 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bArRT-0006Ki-1j for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2016 04:19:39 +0000 Received: by mail-pa0-x241.google.com with SMTP id ug1so1830649pab.1 for <linux-arm-kernel@lists.infradead.org>; Wed, 08 Jun 2016 21:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nZPasN6tI6QXLDiAJ2+l/ubtbMdPxfZAzs2ouU9GSwk=; b=kjgEgOKbzSP1eohUb8O5NcKMonygg4NVl/J5j5/jgf5bXwxT14Rnok/zhlm97lmgig bvv7BewRIMO9sdk6M42zG1eIE4CgihrRGkWfovbV9d4siaJeR6Te4PPSK5er2rIhg2ZQ npkqn77F8WJcQKQAwnvNtGhYCm5NCIuedQgeaxITJF/w/zszVj5Mbx7q3JS6fCJTUtP0 7koeoHqKaVXJNiPH5MS+ZJHM8eu/M7FP0n7oV7RkYxe69Uc/TIIT6uWavpEIhuljrA61 U6maSMVeEf4nbF0h/FDt/cDFyHXelitLE4Wqje+eRqEihT2jBNqPbwFmBEuJVot3EE82 5COQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nZPasN6tI6QXLDiAJ2+l/ubtbMdPxfZAzs2ouU9GSwk=; b=jzPXkUzaKowyjHsSI27e1rQV9lc0U6opJFPRQTzGjc4xWjPgn5iHXXGUr1+wBJolRi CNtUKx2/6LyQB9b5BZc4HNZqEA569qNPe/ODdnYparIkaWFEkXSVilC5ZLqgkU8+Cnw2 iLkLbEFWaRnKRRI26BsM9p9VV3tGEe02OUASrEjUohFAYJpvLSGzkwN+2+v7EW2uWI8X l/ud462QOAQ8j2a4mPv0JED49llVpMogGtr4Qs1W+FC/BExEH+l1ij/WFGo+DtLgHvHT 4OZRkFVh48Vn5jeSZZerMM2p6pbAzBonZswFj5ozERNUvxHzFbEV+zKdwSB7LdZoMTPG F0OA== X-Gm-Message-State: ALyK8tJbrLbztirz+iC+WE1qaJP5avUYfKbRMax4bkvGjQGCP7rUHYpQK2uWugIVyMJI2w== X-Received: by 10.66.127.47 with SMTP id nd15mr9645265pab.84.1465445958375; Wed, 08 Jun 2016 21:19:18 -0700 (PDT) Received: from localhost.localdomain (c-73-223-118-172.hsd1.ca.comcast.net. [73.223.118.172]) by smtp.gmail.com with ESMTPSA id c13sm5848579pfc.40.2016.06.08.21.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 21:19:17 -0700 (PDT) From: Zi Shen Lim <zlim.lnx@gmail.com> To: "David S. Miller" <davem@davemloft.net>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com> Subject: [PATCH net-next v3 3/4] arm64: bpf: optimize JMP_CALL Date: Wed, 8 Jun 2016 21:18:49 -0700 Message-Id: <1465445930-3960-4-git-send-email-zlim.lnx@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465445930-3960-1-git-send-email-zlim.lnx@gmail.com> References: <1465445930-3960-1-git-send-email-zlim.lnx@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160608_211939_206099_2748406B X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Yang Shi <yang.shi@linaro.org>, Daniel Borkmann <daniel@iogearbox.net>, Zi Shen Lim <zlim.lnx@gmail.com>, Alexei Starovoitov <ast@kernel.org>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c index 51abc97..7ae304e 100644 --- a/arch/arm64/net/bpf_jit_comp.c +++ b/arch/arm64/net/bpf_jit_comp.c @@ -578,11 +578,8 @@ emit_cond_jmp: const u64 func = (u64)__bpf_call_base + imm; emit_a64_mov_i64(tmp, func, ctx); - emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); - emit(A64_MOV(1, A64_FP, A64_SP), ctx); emit(A64_BLR(tmp), ctx); emit(A64_MOV(1, r0, A64_R(0)), ctx); - emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); break; } /* tail call */
Remove superfluous stack frame, saving us 3 instructions for every JMP_CALL. Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com> --- arch/arm64/net/bpf_jit_comp.c | 3 --- 1 file changed, 3 deletions(-)