Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp246129lqb; Tue, 4 Jun 2024 10:04:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbVlhXhQXjIuz2ldZmNvmWDuE8xC2u54gY/0S8TvP29WYZtlhluyu6H4YIweQAAHRCFFNgyO8rEwuPSJ0pOSwTc+WJ4gabmWXHLm/QgQ== X-Google-Smtp-Source: AGHT+IEYtP9CyTGwI4w8HqzHZd+ka+rnPcdnvb5Ye+lIp6yy33vgVL0cru83MmgMKzJ4K5A8TmB/ X-Received: by 2002:a05:6a00:1494:b0:6f4:bbba:1155 with SMTP id d2e1a72fcca58-703e5944aadmr92779b3a.3.1717520688997; Tue, 04 Jun 2024 10:04:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717520688; cv=pass; d=google.com; s=arc-20160816; b=JCp2T2ZSVG3pSm8mL2ZeUp9h4O2ua+TtjUbWeQYvsCOcwUkJextUgQOp//s4VPfFK5 Ryjq58gy40tWivGR7NncbtUxMmoXMnoyqzXJtkCg6JdKyyv83xpxNFyT0eHVZCJAroie NA1TocSmp+yOPCgK82TSymjzCNqPI46BYQTZfosioSxQnALSj6ZNktTJLuBVzIl43wbv tJk6FryaKwR1kY8Q3ug7xX1QbCgM/ckTbKpxQyOTiDKbX/3KUqnQiU83b7qRAEnKszUn M5SqCaGxvHLk5AZ0p7Ff9h0EfZTGdZwkNwmhN/jNSi3Fxo0KTeJpIRNtweOHi1IdiwoK N0JA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Iur5wbL70IFRCiax7XOWx7gnTVQvfz6z5HOQqL7oQP4=; fh=yu0yLgpuHtyDO7qnLp4wENeZjtb2ArxiihNs1kqSW88=; b=zc+QmJ2a8rUJmwhGvvB9YHoOkFrJ6RIV0OCDpT7t2fhzgo3FybzJZLqsbAVS2v8UlX wdu01/a3otB2NGuVFzzp2MrwqIQzwzaIWWau73OdctSgsC7psjtfuwRqc1P6czEnWQlM il+QSLMXolvUUz6NzB7sIP6VisuOho3gGM+t1pKIudd85E0nHxlZbYi+G14AQMTpf77P iiL48qy0YM38coG0OKgjMnQWBdKDcnzg1sFIQD8gHDJq6TfmYi81Ho7FWSLLZzwy3r1f syZmqlUkk/B4gpxAR24Xichoc9IaZz3f3DbLaLOej2ChESzLXXOrH/IYk335DyPbTess tpXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-201118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-7026bad85aasi4231731b3a.102.2024.06.04.10.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 10:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-201118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A74B2826DE for ; Tue, 4 Jun 2024 17:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A647149C54; Tue, 4 Jun 2024 17:04:41 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B0BE148820; Tue, 4 Jun 2024 17:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717520681; cv=none; b=r8bqTlEBFKhzSSXM8AZkYrPxj5ovu/40viMo8/Oiwt/PPGa4KchaLg60ZCclPpnd/tppmKGYeVycD9FnM4uG1J4DXXiwsVMTth0y/yHOIq0KDjDCVk3u3LJFVlpBerz6YITnznKwGXSM1rBsKn+xMX38h2rhYN0qpLzDo1eFlkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717520681; c=relaxed/simple; bh=LJWf3QoCZ3rFmQ9GULoPGURQSMideMDjJ/XO70462sI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RGJYTcz74XgEfSssw39Ku0oGib9go4QCtvpTyj8prFosoFlmQJ/5bsrxBS9F3bgVD8tIuIvZLITUbBt5noj7/w0lk+Vx84ZhkPRtYPfNo/+ZEZ6qp+DY9Gjutd+kleRBb6BQyrJ4B8QjpoCRTtj+7MmCCWpGKwuec2rTNS8ccaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8F64C1042; Tue, 4 Jun 2024 10:04:55 -0700 (PDT) Received: from J2N7QTR9R3 (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 097E53F762; Tue, 4 Jun 2024 10:04:27 -0700 (PDT) Date: Tue, 4 Jun 2024 18:04:22 +0100 From: Mark Rutland To: Steven Rostedt Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mathieu Desnoyers , Andrew Morton , Alexei Starovoitov , Florent Revest , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: Re: [PATCH v3 00/27] function_graph: Allow multiple users for function graph tracing Message-ID: References: <20240603190704.663840775@goodmis.org> <20240604081850.59267aa9@rorschach.local.home> <20240604123124.456d19cf@gandalf.local.home> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240604123124.456d19cf@gandalf.local.home> On Tue, Jun 04, 2024 at 12:31:24PM -0400, Steven Rostedt wrote: > On Tue, 4 Jun 2024 15:44:40 +0100 > Mark Rutland wrote: > > > Hi Steve, Masami, > > > > On Tue, Jun 04, 2024 at 08:18:50AM -0400, Steven Rostedt wrote: > > > > > > Masami, > > > > > > This series passed all my tests, are you comfortable with me pushing > > > them to linux-next? > > > > As a heads-up (and not to block pushing this into next), I just gave > > this a spin on arm64 atop v6.10-rc2, and running the selftests I see: > > > > ftrace - function pid filters > > (instance) ftrace - function pid filters > > > > ... both go from [PASS] to [FAIL]. > > > > Everything else looks good -- I'll go dig into why that's happening. > > > > It's possible that's just something odd with the filesystem I'm using > > (e.g. the wnership test failed because this lacks 'stat'). > > Thanks for the update. I could be something I missed in patch 13 that had > to put back the pid code. > > There may have been something arch specific that I'm unaware about. I'll > look at that deeper. It looks like e are lines in the trace that it doesn't expect: + cat trace + grep -v ^# + grep 970 + wc -l + count_pid=0 + cat trace + grep -v ^# + grep -v 970 + wc -l + count_other=3 + [ 0 -eq 0 -o 3 -ne 0 ] + fail PID filtering not working? ... where we expect that count_other to be 0. I hacked in a 'cat trace' just before the 'fail' and that shows: + cat trace # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 3) ! 143.685 us | kernel_clone(); 3) ! 127.055 us | kernel_clone(); 1) ! 127.170 us | kernel_clone(); 3) ! 126.840 us | kernel_clone(); I'm not sure if that's legitimate output the test is failing to account for or if that indicates a kernel-side issue. Mark.