Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2850700imu; Thu, 29 Nov 2018 11:12:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uzej/f59Fq6hCnz9BHVs2MbZ9CfsD1AdOdK/IkrCRd03XZfi2gj5qo1t55xqtyFuTRDtQ3 X-Received: by 2002:a63:b94c:: with SMTP id v12mr2249997pgo.221.1543518760813; Thu, 29 Nov 2018 11:12:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543518760; cv=none; d=google.com; s=arc-20160816; b=BNCqZgDWwxf8LZhrDkUfQnPQ2NrVlsJ4CFZrUd8JypGc+ltIXSwSiPyT7opVIZFHKV xur0nKwVWexfT7+7t31Ezj7iV9+g8BXR649Noh3BvFeYAvMXJeOYs0u1zh+Yr+DBwxIF kekrOA+0xqqKLs7pNaCnfvkzpyZGboPD3+SkVTav4nDQHywgGCsCj9gnH7m+bxg9pA/7 7Iib6Y5TX1PWOspLigiLwVjBUDXoXlXXkYhxXqG+0phPz2+lY29wEw7UL1Mn14sEprp7 vCTWsinLaK57jEc6Qrcyhss/nI43pU4zIyMN/dWZFfqGhVAFTzuGaH0IMpu4xWdcIL1v XQBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I/JBsn4jMCDitOgNQ+aiTTnVU/jI5k1Vl6yui1BV8So=; b=p5M5/Vae5L/j8bC9UEOoc1Yew8w5WjKbfP2itxBqm63P/sdMYfdhkV0V0hMrpw9cFb eK3G8fDBdv+CdAbsmIO8x4AhRdYYQyp2IdgagWj2NsfEsHulCUfqpY/GoYFTKV2o9+Va h96xNC3nSHR64gN9Qh4jzoeYt0gOm9EIiObDnOpDcXPj6Uy3KvkneuBoSg5C+hf4bHbJ ZPu0cY36sinPCHqsIe5BBkLjDJV3NNlLx/DtaDJn/0b+DQAKPfkgl6Mcw6ZotO78jNvm bCwd9CRmGbOCZ9tMMYCyyqXSt+TIUZy6FDTmIpG2W3hsRWhfh9y1BeZ2MAIaw0b7JmrB p6Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si2574988pgw.195.2018.11.29.11.12.23; Thu, 29 Nov 2018 11:12:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729827AbeK3D7f (ORCPT + 99 others); Thu, 29 Nov 2018 22:59:35 -0500 Received: from foss.arm.com ([217.140.101.70]:39354 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729519AbeK3D7e (ORCPT ); Thu, 29 Nov 2018 22:59:34 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 79F07A78; Thu, 29 Nov 2018 08:53:34 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0B423F59C; Thu, 29 Nov 2018 08:53:32 -0800 (PST) Date: Thu, 29 Nov 2018 16:53:30 +0000 From: Catalin Marinas To: Masami Hiramatsu Cc: Steven Rostedt , Naresh Kamboju , Will Deacon , Mark Rutland , Ingo Molnar , Masami Hiramatsu , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] arm64: ftrace: Fix to enable syscall events on arm64 Message-ID: <20181129165329.GC22027@arrakis.emea.arm.com> References: <20181128195921.GA32668@arm.com> <154346997347.21404.9819884326251206341.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <154346997347.21404.9819884326251206341.stgit@devbox> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 02:39:33PM +0900, Masami Hiramatsu wrote: > Since commit 4378a7d4be30 ("arm64: implement syscall wrappers") > introduced "__arm64_" prefix to all syscall wrapper symbols in > sys_call_table, syscall tracer can not find corresponding > metadata from syscall name. In the result, we have no syscall > ftrace events on arm64 kernel, and some bpf testcases are failed > on arm64. > > To fix this issue, this introduces custom > arch_syscall_match_sym_name() which skips first 8 bytes when > comparing the syscall and symbol names. > > Fixes: 4378a7d4be30 ("arm64: implement syscall wrappers") > Reported-by: Naresh Kamboju > Signed-off-by: Masami Hiramatsu > Acked-by: Will Deacon > Tested-by: Naresh Kamboju > Cc: stable@vger.kernel.org Queued for 4.20. Thanks. -- Catalin