Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3087889lqt; Tue, 23 Apr 2024 09:57:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUV6xiWyzqzouiVPb0Wv+wA8E/MGn5V/iYWbsrvom04jbQn5d3JDQqjYRNPHBehHCK9pPEe6ctmSYB5z4CvO0gJGU4GLVMPbEdGwDn1eA== X-Google-Smtp-Source: AGHT+IF53OcgdEaR2aAyTNt3sYdq9nUHuXNktuthGcGAzG5YT0n6wb9y+B3hHH4jA+mLSNW7WwCD X-Received: by 2002:a05:620a:8813:b0:78e:de1e:1c6f with SMTP id qj19-20020a05620a881300b0078ede1e1c6fmr57217qkn.38.1713891455498; Tue, 23 Apr 2024 09:57:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713891455; cv=pass; d=google.com; s=arc-20160816; b=LymLZavQ6e9WLofaiS2uSOAM4JuqHe0+doMfEQ3Uh9+Y3YQ8ccdV+h7mIb8pdOezmX 7LWjghhl8qWhMKKbZJyr2eHS3COzAVQtSalNF+dM/eQbJA6bXqixURdZEi85HSYhnnBz KKvnoy4Tx7Wc9C1Zmw3ggiA7skfHa4N9DpQEpwj+oNCVFFbz2O8Ai4u0HjCjB3Gq7nV2 JVWH/sZj4G6tC7vMKe6DHrBawzugIEhVB/OJdSe9ceHvdm+xC6ZEpP5kUni+fxMXcPhD Ns3M4ll7mV/cRcYdp2XaHH/O6UwzFq8XsxnljU2VWG/QK7F+rlZU0DGSwwo5g7SWP55d oVHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=YVQSZ6/UyLFVAhzq1SObZuwlgYS8Sd4w1atEPzTvjNY=; fh=vlDfio/6QExSLk3ZUfYXXdA60IOmuzUFPjYmX1O9qjc=; b=VnCnPyPiyhiQNO1gQeTw8jG+TiKInldwmEow8ho0fXqnoIw+0xxDC0+0YQIRSuLs5T KY/8gBHJEf6d9SG11e9x/DehNVEG9sGd6xlqs8eMuAuoU2yN7ora/HtSKyhYItG9ECho +pl+u/63F/vb1Z4A0fQ717SUIrNfiNUQ29mpq+ZTIV743UqZyZ6Zpgce8DIJXOwNhTpf LYZm318mbZgCf6uARja70O7vAkYZZFFz5dsfoVRR6hLlFBQq9qbSXJc5M68LidGS/KZe r9Bn4sRywW4FNaPGPtFWyEAvuDEAN0G7FlafEwvUO5t8Xt/FiZx/sDCXTnZ5KyhlCqQv cZvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ttevJ6Qq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-155605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z15-20020a05620a08cf00b0078e97171094si12850832qkz.679.2024.04.23.09.57.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ttevJ6Qq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-155605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A82161C22187 for ; Tue, 23 Apr 2024 16:57:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5B9A13D88A; Tue, 23 Apr 2024 16:57:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ttevJ6Qq" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEC03208A9 for ; Tue, 23 Apr 2024 16:57:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891448; cv=none; b=tbZjhcEDTpzRoPcWAvnvmBlx079QiH35fXrdvKbGi5PfnKYFXglqOCpgSN9xtr5uLxjl6EiqXk1SZ4X82blMymMY7SNSrCDH9qOD0F9SS1B6zEXEkuIS92l04rTu5tI1XRbVoVwqq+GzXK1/Lpap17nwE7VnlgK2GZ0wNCY+uYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713891448; c=relaxed/simple; bh=WSAGnEZjHGG4iBk3XbD+eqNOLWiSQsNvNN9QMErGy0E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=opX4/MzMeGYFeWBbQxPEjnbvuyhSCd6Xh3xVGPFlkIBsqAVB+hIRZ4BLu4VBgRT8/JOWOomHBSIcTlTWY4oPmPu6Ldns8JP01L30YuoSkSspG913Nz/o2P+xeNDQS/ftnWn0g0P+9FokIQJ544lbMGDIGKXwLkYvN8Wr7rIoVvI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ttevJ6Qq; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e8414dc4e8so3105ad.1 for ; Tue, 23 Apr 2024 09:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713891446; x=1714496246; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YVQSZ6/UyLFVAhzq1SObZuwlgYS8Sd4w1atEPzTvjNY=; b=ttevJ6QqdVcdHCa33mNOZqlVHboGuSAFRZRkwxGav1uxAaxb+m6BQXinW17/mb2jEw Yi9ckqWyzTlzkOP4mPOAzgIHQFvzd43a8s+7l0Gmm5ILJR4cyKdX7JItnIrfoBrZKZD7 8o6jMrp+bmez+fkMt5294ECYmcQTMKBxZV+1XnciA1JXE7qROJ/nCHYa6+N8J6YHMFi+ 2FdqPCmEKP5MuKuhmz/BAjRJPJ9BHoElRYIfyjJmGo4Ko859KksHhVUm5B6l2QiFCg9h QR7ulYY6y5Ciy4x46i98Fs2X421/Pc9dm9/wOvVG83HOZ+Z4QvaFSW+Lf9lkr9E/5tFX mZMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713891446; x=1714496246; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YVQSZ6/UyLFVAhzq1SObZuwlgYS8Sd4w1atEPzTvjNY=; b=l/iEPwbYe6kX0Fk/FL0LxjZbWC+wPCOh6MoRZGMiPVGNi3ZD3vjx3dziu3tU/770uH h1sF2e4tgUWvjvim8MDS8OF/vWZoMJFiAjBSOeo/rycanPqbkAitR0xNPBgNQKJgDzQj FHbDD/YMmCq32utZN60ZH6Kf9tzVpgsLD6g280yTt3KouOg5sT4hH2726Qlf4+A5dmnT 8s3qZEHZ4bOwX5kLZ0AAInrcL20CEIFf9Io158TPeFf86J/SGJBv/q4i/szf+ZrBy22q SLxtzKlVigmGSCtMyUuIsmmEabPivxpAURrTaZXP3O2MWboWhx0RT+c1XBwXoQm77Fd5 tvCg== X-Forwarded-Encrypted: i=1; AJvYcCXA1RlNMvdsq6VmVA0xQbBETHs4xIGJCVM4L05+kpL1HH+vFprhYsTeTybxevQ6N53jL3tlTNY/bNk2FtEBIdfbr95D8Xp30eKi9CBy X-Gm-Message-State: AOJu0YxorQUqKQTd/aRWltvLjPrqRIICFd+cL5ghwvN51RLAYSpVmFir iT4wMrq99WveYNgfff8tvvRnxkvQIORXeyDEWnYFUJp1mp+W+rBCx9zMfewvy9NsH0QR00o1bns luAD0KkAIvX9Cnxp4bhrKXdrlMuZaPlsCf4w9 X-Received: by 2002:a17:902:fc48:b0:1e3:e253:17e5 with SMTP id me8-20020a170902fc4800b001e3e25317e5mr234448plb.7.1713891445755; Tue, 23 Apr 2024 09:57:25 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240423020643.740029-1-namhyung@kernel.org> In-Reply-To: <20240423020643.740029-1-namhyung@kernel.org> From: Ian Rogers Date: Tue, 23 Apr 2024 09:57:12 -0700 Message-ID: Subject: Re: [PATCH] perf annotate: Fix data type profiling on stdio To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Kan Liang , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2024 at 7:06=E2=80=AFPM Namhyung Kim = wrote: > > The loop in hists__find_annotations() never set the 'nd' pointer to NULL > and it makes stdio output repeating the last element forever. I think > it doesn't set to NULL for TUI to prevent it from exiting unexpectedly. > But it should just set on stdio mode. > > Fixes: d001c7a7f473 ("perf annotate-data: Add hist_entry__annotate_data_t= ui()") > Signed-off-by: Namhyung Kim Acked-by: Ian Rogers Should we have a test to cover things like this? Thanks, Ian > --- > tools/perf/builtin-annotate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.= c > index 6f7104f06c42..83812b9d5363 100644 > --- a/tools/perf/builtin-annotate.c > +++ b/tools/perf/builtin-annotate.c > @@ -491,7 +491,7 @@ static void hists__find_annotations(struct hists *his= ts, > return; > } > > - if (next !=3D NULL) > + if (use_browser =3D=3D 0 || next !=3D NULL) > nd =3D next; > > continue; > -- > 2.44.0.769.g3c40516874-goog >