Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp838250lqd; Wed, 24 Apr 2024 20:18:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX++iJg67ZL5p+zE8RRWqa3CiNZo6xRgpoTfNUQ3ZUfrBfoIcA3F4o513PCCVnAl78q7HwZsqtkNQH7wUpILW2Hm2EedMx1sObwLybhzw== X-Google-Smtp-Source: AGHT+IFIvU5yZJavR3HlnLoPGym43/RY+RT8xvFxhXQjtsBaW47510T8+fxZgZwPNFMN6+PRyqys X-Received: by 2002:a05:6a20:9792:b0:1a7:73ed:7f8d with SMTP id hx18-20020a056a20979200b001a773ed7f8dmr4534847pzc.38.1714015123727; Wed, 24 Apr 2024 20:18:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714015123; cv=pass; d=google.com; s=arc-20160816; b=v5jlA3GbSib8vqyDQTM8KLGcIdITATPcVlA3kmq2+V9pL0UhTtXoUdxdzrRnwoqtV5 2F5dEb4oMoPp02P2CgHMCY4+YaIUku0fEZw0nOXD8fQQB0a5O7qQ//G2JGkAxEKPxklh rIg+IX2SGr+RMEwM7d9AXzTWS/fJzG3tBfcwBJK6MXTJEQP4KpjFwbu8w1tthIqd3uwq gZgxi0oNf8S3H9ENjv2qiyOE73/E+midRRzcGpeDPaR8wraYcW31yUJ3fd2uKzHxMfxj T1BDpd4tUiWhx5zOCGpu6D7Iyf0fCJxeaSZriGc/uMkWutqf3YN63h21LJQGSx4BDYeP pgcg== 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=pPYiVyxMu3u5xOHBv4eVLhhrFMPrsWmts8AO796WRkI=; fh=nUlkASJTZNywZXMNIgbJoldNC6YAtt+Cy6B7kw289hM=; b=P9Cp2zzFZ6S+mOBe8Ef1cemUUEouBQ+5LGQ+AOpzLMI4Sctaxflom5230NNTbm7KBU M/KlCKPvCk3ZJ9SYeRB9+Y3BhzqPB/XjU2pVWi5kP0TUjlORKUtok9CERZqx2ay7GyTf 4b7vcRIkim+L/uZeY39jS7+ziNUKHxAdoFqskMcWMwzjNLjlcyWMX7/spCWv+RbXY4Bl H8zjpjQnVbIRId909nRon0jZFzTZX1QbgT8OvyyC64r6zLmHTueVxz7FGl1Oo039u1CT GKVWwh31KWeCLuHw2hVJZNvYOIFY8xPdPazYnvH5ADpDObXOUUdkMzR1SLi/xyKgf+Dl 9NxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=GjOHtVYT; 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-157961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 mq18-20020a17090b381200b002ae0bb781bbsi5963870pjb.9.2024.04.24.20.18.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 20:18:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157961-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; dkim=pass header.i=@google.com header.s=20230601 header.b=GjOHtVYT; 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-157961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157961-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5E21C2822F7 for ; Thu, 25 Apr 2024 03:18:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27CC01CF8A; Thu, 25 Apr 2024 03:18:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GjOHtVYT" Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) (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 09F324C89 for ; Thu, 25 Apr 2024 03:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714015118; cv=none; b=XPmGnNjjfte8ySmQz/N/sen8kRQ8TcemoKIrXdfCni1xFdbE1+YLSxn2pAguQqFczrCsCaiEVyhG5UL1zb03yD59Gfmgs2JjtcgK2pprIjDb66bQ0J0Z8zP314ZZ4MyI4cOyAuHF//qBnmZMFyZt/MyhPmeDYoJFQ/mFwiLLCoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714015118; c=relaxed/simple; bh=Ns7Fo30/xpBBMDoCH6XFa8kXXTSy9aXlglwSRJUr1S4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VeCBxZ2Qq4RG1kdhRT7vY5UjElHAA0xMmtP+dtyS0DUt0dIwTUPddwq7DVE+Ae3EpBhxDQP+GxXbi2/P6R5vLisshtKqeSUPAdV1D4cDaM2EeXUwoR3tvlBV5CcCEu35gXsSFJVudr4DqjdGg9pMmzFoEKcOXb83jdLebgSHBnc= 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=GjOHtVYT; arc=none smtp.client-ip=209.85.166.178 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-il1-f178.google.com with SMTP id e9e14a558f8ab-36b3738f01cso73905ab.0 for ; Wed, 24 Apr 2024 20:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714015116; x=1714619916; 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=pPYiVyxMu3u5xOHBv4eVLhhrFMPrsWmts8AO796WRkI=; b=GjOHtVYT1xniLQ9wjvVzxdDXqV5eK08Gc4QHHABtW9UFer34tOnrfAZfhsahNWDsUk CZw4d9gMRi+4vXyOe/ZfqfrNxnhASnFCsGLygs1oycmJXQXzSBgNiGk0g8feKTArcSSZ +mAwY9w/7U53NbtIDd5DSgEdpRUT60bEHSe+eZOX4JxFQ2X3x4H6BX8ebPlRDm7J7tFS 6FXUrYTD1EbwqHfTYoFyfyPKqH3Hgug15KatOauv4f9yWB2KXtMbEHqNhSGA4ihqkquG SoRSWPvvk4wG9TYMD5GSTdzXz7uCOS1jFWnin22KRlThVhGJC0wGf2WyvPNYhhoJoq99 2/Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714015116; x=1714619916; 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=pPYiVyxMu3u5xOHBv4eVLhhrFMPrsWmts8AO796WRkI=; b=ovgDUsQTSHotfACDO3iyg/a09C8q2pthO3xfvUWAzVGk1LUsTgy//0T8lycsnkLMQr 4n3PWlMpfJV8nI8VE+C5Ob8sl/wOWbP5eOMfTbVpFB3bZ89QvJiH1HNjKoBzpnA9dVa3 S7U9XGxcZiZR1MGZjLDQefRJOeMQA4mZm4I4SVZ1jIaWe/51BrFJCxfjpweUqX6xiAxp Al9GSOTLfO2w82SP/2XEfN/beTw7qhiGHmquIohYXy1oepncem8FnzMvLamqR/R8r1Au IRMqgx5TcH/0emkkrttU/RT5lZ7Vr0BsZcaZaRWkHXQ4CwcKNbGhJNQpOpod8c+eBYnV W8/A== X-Forwarded-Encrypted: i=1; AJvYcCWCg3PdWJvtY0qR/9KZ4/6ZoGRt9vjmBHb4Xn60hN9/v1t/eUNUb+7d0n9PNsFbpOBPI4zq6FVs1YrdH4GREJh2yM0jDsOodg1Ab7Bf X-Gm-Message-State: AOJu0Yzf2xYiIMggbdk6HFQToXHHaADZp4c3b0rwI66n3ERj5b55MiSz oBi6s0iHsY4pYaR9GicCicIBqIRrq0FUekBkP11QbT9rmYnBq8Czwu7C+LUhWQnZ9hr80hRCmrK ZkWNSiTSnvcziq2c5n62sohf21dQLD9twZIm9 X-Received: by 2002:a05:6e02:68b:b0:36b:2eee:85c2 with SMTP id o11-20020a056e02068b00b0036b2eee85c2mr95258ils.15.1714015116024; Wed, 24 Apr 2024 20:18:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424230015.1054013-1-namhyung@kernel.org> In-Reply-To: <20240424230015.1054013-1-namhyung@kernel.org> From: Ian Rogers Date: Wed, 24 Apr 2024 20:18:24 -0700 Message-ID: Subject: Re: [PATCH] perf annotate-data: Check annotation on perf report TUI 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 Wed, Apr 24, 2024 at 4:00=E2=80=AFPM Namhyung Kim = wrote: > > As it removed the sample accounting for code when no symbol sort key is > given for perf report TUI, it might not allocate the annotated_source > yet. Let's check if it's NULL first. > > Fixes: 6cdd977ec24e1 ("perf report: Do not collect sample histogram unnec= essarily") > Signed-off-by: Namhyung Kim Reviewed-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/annotate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index dca2c08ab8c5..f5b6b5e5e757 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -906,7 +906,7 @@ int symbol__annotate(struct map_symbol *ms, struct ev= sel *evsel, > if (parch) > *parch =3D arch; > > - if (!list_empty(¬es->src->source)) > + if (notes->src && !list_empty(¬es->src->source)) > return 0; > > args.arch =3D arch; > -- > 2.44.0.769.g3c40516874-goog > >