From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:60678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeK1Kze (ORCPT ); Wed, 28 Nov 2018 05:55:34 -0500 Date: Wed, 28 Nov 2018 08:55:55 +0900 From: Masami Hiramatsu To: Steven Rostedt Cc: Will Deacon , Masami Hiramatsu , Catalin Marinas , Naresh Kamboju , Mark Rutland , Ingo Molnar , Masami Hiramatsu , linux-kernel@vger.kernel.org, stable@vger.kernel.org, AKASHI Takahiro Subject: Re: [PATCH] arm64: ftrace: Fix to enable syscall events on arm64 Message-Id: <20181128085555.a8987cbe18aa6d1d1f0a827e@kernel.org> In-Reply-To: <20181127131859.79ce7da9@gandalf.local.home> References: <154333618522.27355.8094935453351562295.stgit@devbox> <20181127165848.GA19569@arm.com> <20181127131859.79ce7da9@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: Hi Will, On Tue, 27 Nov 2018 13:18:59 -0500 Steven Rostedt wrote: > On Tue, 27 Nov 2018 16:58:49 +0000 > Will Deacon wrote: > > > This looks fine to me, but I'm curious about whether this is supposed to > > work with compat syscalls as well, where the prefix is "__arm64_compat_". > > > > If we broadly follow the x86 lead, we'd have: > > > > return (!strncmp(sym, "__arm64_", 8) && !strcmp(sym + 8, name)) || > > (!strncmp(sym, "__arm64_compat_", 15) && !strcmp(sym + 15, name)); > > > > Do we need to handle compat (i.e. 32-bit) tasks here? > > Only if you want to trace compat syscalls as well ;-) Actually I thought about that, but I found below comment in arch/arm64/include/asm/ftrace.h * Because AArch32 mode does not share the same syscall table with AArch64, * tracing compat syscalls may result in reporting bogus syscalls or even * hang-up, so just do not trace them. That's why I dropped compat syscall support. Thank you, -- Masami Hiramatsu