Message ID | 1465276979-10147-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 F144060571 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Jun 2016 05:25:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5E8027248 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Jun 2016 05:25:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA96F2833E; Tue, 7 Jun 2016 05:25:30 +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 9A33327248 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Jun 2016 05:25:30 +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 1bA9Ua-0006ii-99; Tue, 07 Jun 2016 05:23:56 +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 1bA9UW-0006d9-Em for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2016 05:23:53 +0000 Received: by mail-pa0-x241.google.com with SMTP id ug1so3304886pab.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 06 Jun 2016 22:23:32 -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=zCDRESIfOJCnZo0Ceq71xEGgwBwPPcYFfGhlrsPQLE4gR0c/K+O9tl5UsXoFrDV4hT YTkk7190l7ycaicZJn9zZDNZW+fEeJUaAE11hnonX5el927BbMgiCG28u3T9BARLRq5z gXMsiSIzBWdh0Sn5jmLI1K+6Ff+7IS6e923NT5Cvwps2FEMOlruxal7NJxONoThVrKPK +HR3bACZwlHHaAH/t1UNIay2FB7u2JGQ5zujO9z9bbAo/tfHa1fzNP+3RWEcwzkLv7rs L8LAgJ1kHIShEEtu+LvKALxdeeWxM2suI3lZJoAVf7un/z5KYkf5Lo+nYlCo56TkKxBP 3U2g== 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=QV4/OiX0zI6EZF+rs2IqJKE4RiWE3z+Porhhb3jlQFB/aAouhfNOc+b5CNF/Gy/HXK CKscaqaAy1yRCOZW44PCVKah07XA4FyWLkunI8i1IcDBC3+cWJwvRITRDh04yq+8yCbR 9fcyw3Sjok/tGxZu3l6cXErkHcsAkKMTl5zueMe6FoUv0r/RBFzajbM11wu2UIC+EDOw lSZZziQYL7FwOGcUsmwtfl4oUEuTsjSxwyNsDDEETYz02IRjkM2vzE4vDa7EB9SjQV1v dv/pBXedY33/VZmiCrVKy95NkQS/pnxOz6NQ8XsSt+5tBlWnZFKZg5sVZcRGQoaBLtub YjSw== X-Gm-Message-State: ALyK8tJG2tfazzxBqXHnOkjr78OkGiQP++Tj4j+eFRpTA//HiR+1TIWm6CdFqaFgqa4ZoQ== X-Received: by 10.66.245.111 with SMTP id xn15mr29124906pac.76.1465277012562; Mon, 06 Jun 2016 22:23:32 -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 4sm31609674pfz.35.2016.06.06.22.23.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jun 2016 22:23:31 -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 v2 3/4] arm64: bpf: optimize JMP_CALL Date: Mon, 6 Jun 2016 22:22:58 -0700 Message-Id: <1465276979-10147-4-git-send-email-zlim.lnx@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465276979-10147-1-git-send-email-zlim.lnx@gmail.com> References: <1465276979-10147-1-git-send-email-zlim.lnx@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160606_222352_562615_165E8B1A X-CRM114-Status: UNSURE ( 9.26 ) 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(-)