Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1325353lqd; Thu, 25 Apr 2024 11:57:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHfRUOs8rwATu+PzArZkCem2Kh+LdWiPkRIBxQftOrDSvIFb1Q2ntobsFcjmgKJZh+JFRompvdMRhvqHQcT5wtwp0RDclyWrucki5Ncg== X-Google-Smtp-Source: AGHT+IF9cRCzDVduHANuHABYR0J5XGxhPKknhmHcuzgLFsc0p5dlcGkW6J3TWzKjGLJxDVj1/qdm X-Received: by 2002:a05:6402:35d2:b0:56c:292f:84da with SMTP id z18-20020a05640235d200b0056c292f84damr4039097edc.17.1714071447565; Thu, 25 Apr 2024 11:57:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714071447; cv=pass; d=google.com; s=arc-20160816; b=WDG/nKpJx0ATCTk3rGcH1vkZ5jz5p13WTaxyX3YiZsafPPdtw7Sx0xzlOaz9aYDczK OA96VtOLRM3YDMfU56oe+bT8IKrxUnVzQKYMEwRMh84KnQALmlYBM4ggGUZOq2kzf2Bh ziA39e3kbiKSTKFOEcxMYmvBiW7blXY2suVvlqjKQul6rrzRcVRl+X5a3VlgErDAVuaR D1AaOyjyoX3pTwvrXl27XlLne/42g+fdchMsWyICW+CyRTLOvhT/bimZCsWGEvWYpDTr C+eNXJesVmXKOpt9qnnArc0we2y08yIaMiCWYpymMsTvjQDI8zFbV0fNnA/U7cH+sFpq GU8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5dlPLqNGTCT0Y1Kx4nY9haaBgig/VmpEn1DkQowvlk0=; fh=49GrrO/H3LiGmymuFnNd59pBYHHWBS2xk/6Ejg0rn8E=; b=djhqHlktCreuCIsTY+GA6v2PA5sy9e7Vxoi3lpe4dbNYYhjPqv1Bgga7sMsL79OZR0 n339JhUWDFu3Q/f5fIgJjFoKbd7MAg2B3Yd53GYS8MoOcUOFPnFNUSjBwkedDPYS7r5d HXUsKO0MvQjWmkEWuPkmXRGli4cxDDt993geWBNeiv7hpUy5gU5bPlT2T/IQ68Fwa2EQ wdpvSRjfeDXkNxFU4lzKEyT2S449eNQZICo+ODh7/Gq5+u3EY2qZ1a2ndvyCJeuvIf/F Yk9H317F89NFIjHDdIlIaj0woRKZBbv/3/wXvfvv8iRDAvGN5gjXZEZ7YbXHOtFdjGD9 Qxjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+CVexLB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w7-20020a05640234c700b0057211be637esi5285811edc.536.2024.04.25.11.57.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 11:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+CVexLB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id E0B601F2251B for ; Thu, 25 Apr 2024 18:57:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 473AF14F9DE; Thu, 25 Apr 2024 18:57:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p+CVexLB" 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 6F7B639AFD; Thu, 25 Apr 2024 18:57:19 +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=1714071439; cv=none; b=BXn2EhJTO01WQBcChD7mdITFNdJjaqNSuxFXk0r9SyLp/CsHGfAYRxPcuCDWypdrm+5OJ0nYO8QXiIin/mGekfxTdaTvQ7rPJ8I0xmxFxXS5YwizG1MAv3SJrDZtAFqJK606WG3GjmEIJ7w18VOkxIde0LGvlPxTnlioO8Bt42g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714071439; c=relaxed/simple; bh=DR/cNmaTWBltOT5kSocGhLsohmj7ZxNGmrgCEc8e2ng=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Qy0Av0TflRK78KaxrPEmco1isfj7TIyDY0iIuvYJocXxq+HWm/vu2KWUQi4EaujefdZDT+ioSsJATsd3/xtlgc0YVwWBCfy8mjOwgGlw8wybmTWQXhL5X7JO2o51cM5NLkoxHbSvoanUIL7jERYTuW3yRJwNpe2jEB8sMeQHdJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p+CVexLB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A7C4C113CC; Thu, 25 Apr 2024 18:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714071439; bh=DR/cNmaTWBltOT5kSocGhLsohmj7ZxNGmrgCEc8e2ng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p+CVexLBzIXepUF2cGGvJqSDrARB1iAyGZW7ZfZd4HBNreDUXh60lT3NsafiSn75X 2//Gr4iMmguzeQRs57Ni3WfDTy3+TyJGPdgZvSBblBtt0Zd3ytxOT5/V1mQvXgj+kV w8nGvSqd1fOihnuIIbosiRLvKTjk1N7xnkyOSjYZ0LpdOZRzI9r7B2ITS2cmT4Qvmg r6hgm10pgOovokfWrFvOuQ6OdPUZ47WghX+GZ6kqLwYkxVIe1kmBblkvY7bMWhpRZ8 eNz9IV/UaPRExnsQuCcSC/XSylLn73sIT4LtUYIz+m+lwY+BMPhLExO/IkxQ3MPgzo 3wLJm1P7JCIkg== Date: Thu, 25 Apr 2024 15:57:14 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Kan Liang , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: Re: [PATCH] perf annotate: Fix data type profiling on stdio Message-ID: References: <20240423020643.740029-1-namhyung@kernel.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Apr 23, 2024 at 04:07:08PM -0700, Namhyung Kim wrote: > On Tue, Apr 23, 2024 at 9:57 AM Ian Rogers wrote: > > > > On Mon, Apr 22, 2024 at 7:06 PM 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_tui()") > > > Signed-off-by: Namhyung Kim > > > > Acked-by: Ian Rogers > > Thanks for your review! Thanks, applied to perf-tools-next, - Arnaldo > > > > Should we have a test to cover things like this? > > Ok, I'll try to add one for perf annotate. > > Thanks, > Namhyung