Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp489090imu; Tue, 27 Nov 2018 15:56:50 -0800 (PST) X-Google-Smtp-Source: AJdET5fRuT3ISYzxEk2w8/bybUcanRJooUlVugItPURNW/lfMX1T4BpR63jChgRN0A3iDLIM8A5Q X-Received: by 2002:a62:4886:: with SMTP id q6mr36081661pfi.182.1543363010695; Tue, 27 Nov 2018 15:56:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543363010; cv=none; d=google.com; s=arc-20160816; b=rEw0Z3qhbvhsbm/daaWR87aPE7+lq1Jv59Ro6pMEqYQpSJI6jfuRRDLq/dd6GGTMsx WdcIH22zutJ5mDARJbM5snysToBg/SMmFZuNVSDeagVgyj/NtyZXnkhWYAoKEvcdsb8G yHq0qEPEuzj/5Tm/dbWba0QMTep2ukUjt2uqPsVbd2QXF2FOVHdFIt9Za7A0WburM0mD wUlUttDRVZZWuauK/u2gXZQk2vmGorH7OCDhIsfTYBOyj0fQMzR+qv7pxTUEbf167sMK NaOC3dzZso8dROG/vLPD0hEpg6vHzBA6fUmJKTai5KzQ7/Aa1dIg+BaQ0SGVUv/CdJ1G LwBg== 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=SA2a8P0pW8E6erCW47C/o7nmg1GcaYhdPii8SZ+mSZ4=; b=FmMYDlWLU/LD/ZIHB7g8tSgXjgeJ16L5C79t+3KNZZwnWZr0tDYXRNgp8HEfd5rqtx eHDOR1/zB5Ut0Q6CpCccf88gg3mGIldmKs8dPTVN3+dL2lfh/EVbFvGUTn10bnWHzvUj PV74cubGdgyeBUf3clyMbo2ksuC/OoQw1rN18IONOQVgUHwxIZQl+aq6zrt/J8yz9oBu NhlmF5Vu/3f9mqgckJh6+iailrs3/IJea+TlFDBRxxOfJlPwcVvi1x3fHFKnrMDz1/Gq YfvmdAKwFb1/vNcJ+V5/bcYcr5gfNN89fAB+IchRNVXH/iy5T3RvsuJq7Lqvc/SoxbOM QSQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QemfJRMV; 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 11si5077725pgy.408.2018.11.27.15.56.35; Tue, 27 Nov 2018 15:56:50 -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=QemfJRMV; 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 S1726636AbeK1Kze (ORCPT + 99 others); Wed, 28 Nov 2018 05:55:34 -0500 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 Received: from devnote (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 E3172206B6; Tue, 27 Nov 2018 23:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543362959; bh=NwmAfCvjrtIu027XRWGklT99k8OoEMCM0fPWNpvoAg0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QemfJRMV2NexJ1aagIkbv5ABn1RPDKSF5IcBHqwkQzIIQZfhArXbrpK8XuVzdL2aj DzNmuUB2fKXreUqHKB6OA8TaxauVO1xmSiZt+rvK2ib3TWH05DEvYvshcCa8fE08SE qMxT2c0A22c/GGWClHTC0yGWLiMbVacuUYc1Eg4Q= 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> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-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 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