Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp91638lqd; Tue, 23 Apr 2024 16:07:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXakdwvLHOQc/MbPstPzuipugCn4CljdSfPDUGPpKJeGGy7PrDmLjrKn3+CcUl569uuslXxoRzQeUUGNnN5Ntr4N8e2Nh5h5nNQkNO/zA== X-Google-Smtp-Source: AGHT+IGUcv8H7NJzDyLqWbgs1GLu3+0mymc4Q7UJv8owcN7KRu7/t+I5GgeGccZ2vmW1cosCFL4H X-Received: by 2002:a05:622a:2a16:b0:439:8bae:6ab2 with SMTP id hc22-20020a05622a2a1600b004398bae6ab2mr1151129qtb.17.1713913648361; Tue, 23 Apr 2024 16:07:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713913648; cv=pass; d=google.com; s=arc-20160816; b=KBH3kOGzC5LJT8nzsSbIn4eOV2iAAqfT2asYuA3Mu/GffY0/8Y4NJifW5nzxGXxasN gJAT3AvhGK828rlJVewEOd3mGcYf2MS/N6HiHn5BfIg0hsC6Df1P2t4kvLU4s4ktXupf BU4e0HB7ZjBviGuczksq/FS/dV7aUC8Ql1cCGYoRLR4Zv19D+7J+bqMasO9xHv+a9KWe x51D/0pT364K78z5WUr8Am35tR53j1ggSBcNklDJW2VXvXQ5SvF2ZjrOe5VZO1G+69zp feyIVIHY031EXETuvCZmvNLCwSNeJClM0KB0H2mSpEymHYE+Nk+PEU6fUmZsE9A+O+jO /8Lw== 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; bh=IG/KbkkbCeeM2yWNtYv7yl98W911rAWcRZclYU6jgao=; fh=oJsVFFRvaqlLQWefyc3zLtmPJpE56S/BxtaC+cyW8sM=; b=xJIYn9yUMjgvEUHD9/0EALQo+zxaQMxssAS1HMBtqkCW3p2kJXib92gByYgLPLzWND 5IpQWq1OfSeotyQSONVwpKkJEsz63ZTFmFp2YRwnrABi/zlPQZtUhmcCu7U3bio7tNyu yTDLiYvT/k9yfHzHS0yh+yFZtFb0+N4hvpjkIVnDsriyx84OJOjwZrKefukYiC4FHE0o /h15Dtg9KAjJmwLhCQI9rdrtWwIY7+osa/JE2wvLIErOPA+cqs7zvFi/cLBBfTmdn5do Rd84Q3yus5c4cMgihs8XIFpE8XomXKtXyC1XqaJEHxpvVGOqrZMOw/fQ9F9R5FRHUp24 Zvow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-155989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 20-20020ac85754000000b0043a0d2a41f2si1235579qtx.753.2024.04.23.16.07.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 16:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-155989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155989-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1D5DA1C22443 for ; Tue, 23 Apr 2024 23:07:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2453381DA; Tue, 23 Apr 2024 23:07:21 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 2B7602D047; Tue, 23 Apr 2024 23:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713913641; cv=none; b=OudVWAc6MBZrYU9gtqyHwO9ntW+HaQpxmXhDoJDj3mLyApGYqQNPI5tsGB/r5D4/letbvleAX3Koll6e8wqaSG/OgSAgo89HcT5pDWQz/dILNAxr51MMEvO+uKNnxwN3nehldE0rVotsDVSgDNWknQeMG18QLTwFez8PZ8N78+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713913641; c=relaxed/simple; bh=fdKTsQiz3KqlISfMisn7By3lzpT2+DPiBiUVpiXpxsk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=M1yT0cvqCOOHXf+OrP43WHaetQ2+lSVfv//3QjxVqmZuRsGHxpNakM/in5roePzpPaMJEuljc3Dc4vkfN4PyyENRp1hVU/t5CRHhYoasJp/c3vXqMTZTiYFqTBpMXSfdk+RlyyV3UumUyHIAYpfzUmUN8UPwntaTzNJfC0cyOm4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ecee1f325bso5098025b3a.2; Tue, 23 Apr 2024 16:07:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713913639; x=1714518439; 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=IG/KbkkbCeeM2yWNtYv7yl98W911rAWcRZclYU6jgao=; b=EdZ20q7fZK4WIiCdNmqYuhOBtC6c2cE499wIwt87wLh47Dwb+sy+vfUrSypMDe4K4a fAp75h9Q1tQfqqNAZi0ysjoUxI9XSUkZ0EnBioZ3Gmo2S1FlVTXiemOzsxdq2bbXRrQE w7K+eK1y/cOyW8ywp9zq65EDv6W5TAN9Ex2Q12AG3JsWl3vHe1bc4I4QtBMzJjwJ6X2h qkzcSfLic2LtG0Z6fMf4vhuc3chMP1T2a33l/ojjnqYGChIYhEiNXLep0jMblR7m0kRR UuWqwSi7wlp7sCXSfbya18QyVTxY+cYMvH6CzeeauQtbbnLA9i0ttHysKL1EtitKAZ17 gAGg== X-Forwarded-Encrypted: i=1; AJvYcCU/RTQk+kLp51qWSEt7qZTz6/cl5CCKgXJkIHLF6Gtv4oUAAYEbHLSJfdwqOy6KpK1FeLTVyddWtkDYDTguz4Q5y/f4dHnljBsu4ECHyhoNmdOauJtmHofEaMF6Rx4wajt9syYDhJEnQplT1aO5oQ== X-Gm-Message-State: AOJu0YxzTEubqmPse7zzwLxZu7z0d/DzxJkMJAgALuS3d6U/4hZ8Y++V aHps4KaF+MWONn0KwFd/3bzEaXBumCT5N9famolEfVU5NNf9yYkxJowvkEOd8Ptj2T/nyzo18Ln HwOuXbNa16EgmlwKsn5nALVOc0seYuQ== X-Received: by 2002:a05:6a21:3985:b0:1aa:5fb4:86a9 with SMTP id ad5-20020a056a21398500b001aa5fb486a9mr1078514pzc.26.1713913639442; Tue, 23 Apr 2024 16:07:19 -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: From: Namhyung Kim Date: Tue, 23 Apr 2024 16:07:08 -0700 Message-ID: Subject: Re: [PATCH] perf annotate: Fix data type profiling on stdio To: Ian Rogers 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 Tue, Apr 23, 2024 at 9:57=E2=80=AFAM Ian Rogers wro= te: > > 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 NUL= L > > 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! > > Should we have a test to cover things like this? Ok, I'll try to add one for perf annotate. Thanks, Namhyung