Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp159102imu; Tue, 27 Nov 2018 10:23:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/W2AmmN59JEXQxh7vJHJuRT6DubfNXahxVFGy8an963gUbcQ/LySyTL4n1qwXzyiFnD3Hyd X-Received: by 2002:a63:2e88:: with SMTP id u130mr30642057pgu.9.1543343003921; Tue, 27 Nov 2018 10:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543343003; cv=none; d=google.com; s=arc-20160816; b=DnTZktAtYW6jq3C0eFCk6ANSudcQmkmEJ5klSqrT12hbzQ8ch7pHdNqlSWMkn0K98B x2zvl9xvVLyePOJMVY9RajIKAhCxlFENnksU5OdyLpJJrlUHOzv+BBePYHWdrU9UZHNd bUtwQEXVDoinzAz2fQ9uWoKeDs+7JxWWNPAtagV6rB0uZXthLkiVL2SpQUBQtwmZVlKJ Y8ep4fUrIkUjTgWW5qDx1FsFOX/L1NKTwp2xhE4fr9wIyZxTGL9s9wnzpOZ79ZiQqhHk PYv6QVEPBv7idNrOu3HX1Dc0vRlNRlq/FNL/Nq7UpUWZxcRffOaojxODi6Ze82/b/RBG SUxw== 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; bh=CSc2nHG6ej/Pizi/Kc2K5D97prnJjC6uSr3Rh/JPtYM=; b=Jth99ycrRyASakOn3Syebrq8ZoE7amOXm8olCpsMh7E2VMr4oWIWUc2j4NJLuXQGqo 5gsxbJzlu3rVqphtuv8KlJXpWIp80zTJ2S06GnH8iz2Nj7GdxAepfiDfYDxgN1zIENrC o7MMD/bE+YXljD/9ozZdUl8i/eTuR8XAt+76qiWnctn0gk4BlLFnqQOc/Ui7yGGX03+w 9Fv0BU7U558z15SM4P/KsXPgIH4C8Uuv7aF+TyhmPMuiIgMKUZfQy/69LEL+J+cce2pP jBiP4JYhn5isaRznT9Cha0NnvBeTQLcYhmMGrJxf5IWQgqfNpNRzCQZwLX1RyrfYbvK2 EX2Q== 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 q7si4570822pfa.99.2018.11.27.10.22.48; Tue, 27 Nov 2018 10:23:23 -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 S1728951AbeK1FRq (ORCPT + 99 others); Wed, 28 Nov 2018 00:17:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:48082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeK1FRq (ORCPT ); Wed, 28 Nov 2018 00:17:46 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 CFD812086B; Tue, 27 Nov 2018 18:19:00 +0000 (UTC) Date: Tue, 27 Nov 2018 13:18:59 -0500 From: Steven Rostedt To: Will Deacon Cc: Masami Hiramatsu , Catalin Marinas , Naresh Kamboju , Mark Rutland , Ingo Molnar , Masami Hiramatsu , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] arm64: ftrace: Fix to enable syscall events on arm64 Message-ID: <20181127131859.79ce7da9@gandalf.local.home> In-Reply-To: <20181127165848.GA19569@arm.com> References: <154333618522.27355.8094935453351562295.stgit@devbox> <20181127165848.GA19569@arm.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; 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 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 ;-) -- Steve