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 F363DE8FDCC for ; Wed, 4 Oct 2023 05:56:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232762AbjJDF4B (ORCPT ); Wed, 4 Oct 2023 01:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjJDFz7 (ORCPT ); Wed, 4 Oct 2023 01:55:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A8BAD for ; Tue, 3 Oct 2023 22:55:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2F41C433C7; Wed, 4 Oct 2023 05:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696398953; bh=ssPARn68NgZDptbx2mvFf6HZm3RGCbrKiLLObwEzL6k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cfb7ppcDmUlLaFFSKE4IQKv/be6tMpKFfECXmye5RC4kDTwlvkn4oIqiX6iAVNIxn yEfyicZRlqC3jadXNqUBaTa4HiaqekF2w/VI6dWbCCmaB3/Z/ymmAY7PwDb+8FGr3P V0xNYXYja95n/PyMqGZrkwiGJ0EJ1aGes4ewYNYR3SESSpnsPmR74609h2uwIwYq6h 9GmlBsUOtLVAwVGBnGMskAvIUuPw1ixj6mDkFmHDlpfcarITey7MZXJale6rKGYvjt EZs8Uz2gjGlI+UjcK1Pz4Z9o7xTzSSG7EyAHnKwk1Z0USVLpmQGDwLTbDyvqzSoN+C 3NVQ1KnszEb+w== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Alexandre Ghiti , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sami Tolvanen , Kees Cook , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Alexandre Ghiti Subject: Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_ In-Reply-To: <20231003182407.32198-1-alexghiti@rivosinc.com> References: <20231003182407.32198-1-alexghiti@rivosinc.com> Date: Wed, 04 Oct 2023 07:55:50 +0200 Message-ID: <87r0mb3p95.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexandre Ghiti writes: > ftrace creates entries for each syscall in the tracefs but has failed > since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers") which > prefixes all riscv syscalls with __riscv_. > > So fix this by implementing arch_syscall_match_sym_name() which allows us > to ignore this prefix. > > And also ignore compat syscalls like x86/arm64 by implementing > arch_trace_is_compat_syscall(). > > Fixes: 08d0ce30e0e4 ("riscv: Implement syscall wrappers") > Signed-off-by: Alexandre Ghiti This fix does the BPF test suite happier! Tested-by: Bj=C3=B6rn T=C3=B6pel