Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp307574lqb; Tue, 4 Jun 2024 11:57:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYA4vvsmo28smu1D28On8rdwUI3ZLVv2mO4o3LZI9d+OI5fIoIzvMcVEEHDbmAjOjjFyl6iTZTuUXmdiS5ThigyGFNqDrKRgRPruMj2w== X-Google-Smtp-Source: AGHT+IFj7zL6GfXWpfAyNBLuoppg0SnbuT+yrF8LdBSTdj8B7viz+3X5kufE12eKABLgG0dZoCfn X-Received: by 2002:a05:6359:4c1d:b0:17b:5661:5e2b with SMTP id e5c5f4694b2df-19c6c7c2e47mr34598155d.18.1717527474492; Tue, 04 Jun 2024 11:57:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717527474; cv=pass; d=google.com; s=arc-20160816; b=nknBbluLpvoYHLXVJ4UrExYRZ5FPTi0zHO+4VnvidRC3St8MO6A+C0xzdV0BtkFwxJ Be4jKfOIbZBC0qm1kXU2gG1F8zozJ2iwc4V4ku6aT2W+mAKp9Sb4KpoV1btETNKeBQvO T4OUBcRmTEEgbIiCvMniQpcUhgpuUkhG9e3VImkCMwhLQlLBIUi5PFLEKEsY/POF2PE0 SdPak5oxG9Kzel2a3OvfbA0uqb/jI6Mpzfh61Stk460t4/YNPbBREVHXuXGgYXGH+kmv A2JRoQYtyL92SKxHQQYcvNeomwHK8CI3CPkek7lAmB259IcYa95HxKPpCb8Pm6yBq2m7 HfUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=EFKNVK4lryZdwctHYORO/Crwg7m8gTbw6dkZl77lex4=; fh=eqNDKm4wAtJkTgiMqkrYTddtdYASrqeTBMH2Etb+8n0=; b=p7Uovg3bTFlbCSRRgjqJUqiZ+BTq5M84NM7bdL0trJ/sras/3KgBqjf/UcLhHmVz5X gUSg/aNPXwbki0cADOETlCnIDrX3SqOTVI8j1uBtdwLvT9CyXBkUZJioWdvsrf1r4NJg JTM0brBWTyfUoJ7TRjtVia8WsexWvn73amlZGWV0YvwvgaSEH28DZ28BuCGisp8RnTiU lUgIpldv/wZA+dDAWwCWwfazsEkRgsXXWUKnBNnv4IYwfEdTIEmIYpLuYVCbGwF+i+eA Z2GSwMSnbMCYshaFi7cyPIHRi9OJz8XJ3UKP53yqND07YGnqC4ap8du5nmOLL0BWpqyh NqLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201262-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201262-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40c6ddsi8643289a12.565.2024.06.04.11.57.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:57:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201262-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201262-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201262-linux.lists.archive=gmail.com@vger.kernel.org" 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 0DCE22854AC for ; Tue, 4 Jun 2024 18:57:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 357FB14A632; Tue, 4 Jun 2024 18:57:46 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6784266A7; Tue, 4 Jun 2024 18:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717527465; cv=none; b=DW+r+/MM5kIZ5OZLn2CsHODUEtqyqVqbAq7B17thCMJxJwPjk+5akqQLWjP5/WNuNUa78UCN+/Uue8CoIPmUErTUKD88Aop+do1Vp09qZSeWKO4Jp4cyACnXV1r03Vku1eY9P5S9H4w9fq2++mLd/g0LCm755DQ1kHbpTMHoCvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717527465; c=relaxed/simple; bh=0NuMZA+WVFtyutWRLVlJhs7dCTyIUhAUZXdDsCOc6Tk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MFlEX1RZvRk4Vc9pXsEp738gJV60D5pAm8OvTShTq9xEmFi1BbgQ85NB6+PEFVEAh7r84cgGG34laPMOL/fEjeGZ/a/Zeqrd4dLPzujNPi+8YqzeBHp8selh+veDrFb+gosIHxXwdKmhW2qVJrag9bH+kGKiPm9MPQDA/KrgPF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DF52C2BBFC; Tue, 4 Jun 2024 18:57:43 +0000 (UTC) Date: Tue, 4 Jun 2024 14:57:42 -0400 From: Steven Rostedt To: Mark Rutland 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: <20240604145742.5703d074@gandalf.local.home> In-Reply-To: References: <20240603190704.663840775@goodmis.org> <20240604081850.59267aa9@rorschach.local.home> <20240604123124.456d19cf@gandalf.local.home> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Tue, 4 Jun 2024 18:04:22 +0100 Mark Rutland wrote: > > 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. Bah, I just ran the test.d/ftrace/func-filter-pid.tc and it fails too. This did pass my other tests that do run ftracetests. Hmm, I just ran it on my test box that does the tests and it passes there. I wonder if there's some config option that makes it fail :-/ Well, now that I see it fail, I can investigate. -- Steve