Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3025896imu; Thu, 29 Nov 2018 14:14:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/WUFuQi2Pt/zK3IhBo8O89IuzcRjXimwc/PAJ631J0oZfiCbLvn7+rUb5eKHjPCbm2RRVQi X-Received: by 2002:a63:d5e:: with SMTP id 30mr2749496pgn.54.1543529650021; Thu, 29 Nov 2018 14:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543529649; cv=none; d=google.com; s=arc-20160816; b=mA3RlcA8pKAMkShGxsLzS+3QMso3GXbeoQqvwsZ1lQGFR3+BXa9oSblJoFnLmB1eU6 1Nd54AvP8RpguWZbKiDASC6Ez05YUqZB866jAo2pPnPm52Jj82QuXrUCWCSi7neR8t23 IPYjCNDBOdwNvwhoGppZvzCwQSQhpZZr6wAYo3pjGNIEwHnkfI2om4YdEMGruYPQ8CJC EKwAfcY29Ycw7/7tNoUHIOsOT/HKkC3QXl+qV2FL4JquI+zDJNjPgQa0cpovuhErLBdW DMx0eCmGOm39S/YnBbhfF6lTGnhIMV9NllZT+3Xe5yXL9Qt7qUJTFcvWw7eJDM3JzmQj Gknw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=GP3FfraulCXjgkmgA4P8Y8tKRjJlFg/5P7x7jK3usqs=; b=NRtE0UQkzRV4f9qyGv3VQH7UeiyaiP1yOhKmAzSzAxck37kk7v1g8CrWjhnToNvZ/n aiQkrrCp7m5Cir9yNuAkOZWSrLQK1jAEFvljnnRJ6/QXGrHDcbrphqrbTu4iaJfHvYch ZQozpFYNuIEd+TNKhkpoVjURv/dpSsTNn5yQR8FERBgZqhLrfwIxMIJsPSeVJ97erA1H C16vobJfHxC26YP+bPyWWQP60D4Oma8BAmLEVsBtHGcb5+Fcydq2kAM7sI16utvYesYD HMyAq7xuGoQouDKHHp4EfALqKmNxAZX2THOcHX+FREtdVeqQu3JcvCVbeYuMS5csaKnJ Xx+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XGW8cI6B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si3435436pfj.183.2018.11.29.14.13.55; Thu, 29 Nov 2018 14:14:09 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XGW8cI6B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726746AbeK3JUL (ORCPT + 99 others); Fri, 30 Nov 2018 04:20:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:49454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbeK3JUK (ORCPT ); Fri, 30 Nov 2018 04:20:10 -0500 Received: from devbox (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45D9C2145D; Thu, 29 Nov 2018 22:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543529592; bh=AgMlONgVYeT/0apqrzf5OGDaDt6Gba6MEhi+gGjOvGM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XGW8cI6Bl8yrix9pPxGUSNMKSuJoNMRI2xg1cWcAdr1tgBADofj/d6tRKMs54+d1T ZyCVx4mhKmT+y6g1CEfY6g+iAj3V5oU7hsISbyuG2/APYQply8PfCDvx5nIabS35pg MIBmcFHYfxbjp4rHAYuiJEFDjIBdX0Qa08VU51O0= Date: Fri, 30 Nov 2018 07:13:09 +0900 From: Masami Hiramatsu To: Catalin Marinas 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: <20181130071309.dfa552d2bcd7283788e5563e@kernel.org> In-Reply-To: <20181129165329.GC22027@arrakis.emea.arm.com> References: <20181128195921.GA32668@arm.com> <154346997347.21404.9819884326251206341.stgit@devbox> <20181129165329.GC22027@arrakis.emea.arm.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Nov 2018 16:53:30 +0000 Catalin Marinas wrote: > 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. Thank you Catalin! > > -- > Catalin -- Masami Hiramatsu