Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp165102lqg; Wed, 10 Apr 2024 20:55:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWywa3xFOkPkQBMlNgdXvyGgMkjJXI33enPifbLgQUyJPHdLiwPygiVPckRKtTZO91P4L7lRU7rChGBC2f/hItXFE525ziG24TVHXsaSw== X-Google-Smtp-Source: AGHT+IE2CN1Zux0Vy7mFZ8McOygiMyXq2H57oX2YcF+rwkj0HdNHyr7Quo/WhGfpZJalqtxLFkzm X-Received: by 2002:a17:902:f601:b0:1e4:cb0e:2988 with SMTP id n1-20020a170902f60100b001e4cb0e2988mr6278788plg.2.1712807756664; Wed, 10 Apr 2024 20:55:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712807756; cv=pass; d=google.com; s=arc-20160816; b=HBQzBpbqN/dYKp4Jgw8bd36/lWb64N8rOe1IN/0u/hrIVcKPaFF+mAUd/yoV3X6f0T X9xfySmQSCwCQbRh8tsl4HVgRtengrkWCCiY5GnUppHnbGaWDJn3d6sz47kLZ6mGwOWt GePOj7x52hxisFZCjG4vUWQpH/Zs8KZ4V9gl8zqPEWa06t/VbTHHHd9fqD7JsIhLEY4f lOYn/jg5OlNr0mbkVclD+l4kNZBdek+T8VauaEpyMbCNYLgLalEUm8PG171x+D0F1wP1 SZ1kj4Vk9e7/NJBaNO1qS5pGiZXEbUke1KfWzIQYijyLdJhipnNnzYTbHZ6AwiBcL+ds giIg== 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 :date:subject:cc:to:from:dkim-signature; bh=28vzbRIQ0d0k37KmgywFyczQAPnuqL5oX2cAYOx4Z7w=; fh=fHhbvXgCev/wpffLVpfaAi8pPyv7hrTyhVPgsZ7HNrs=; b=hc5CLWFu+n1kWtX5YCknQvqDHKNI4jbCyVpfAc6YSHcE45DFJzT7BKuNgzj6wES56X BNaT2z49iGyLtNZZJf5FknhmJdjXH9WFf0uSh2CaAyA3kCFTr287Z9Q5hEsLmJmpz3yD hoC2lg8qZT16oaegutGbyFS9veqgZ5fFjqBmCCF3WqrZFImRryNhjQ6C6IEJupQa1uVu HJjIxlxTvTY9SY6MypFyGwwmtWjVJRjFKd0gKurCrDGFNSJE74YvS2BzWmgSm3dqWW+J N80JdbgXumj1DqZ9tNAYa/gFT/5xQjL2f5a5ila7Dwl/WvJcIPlisDouYzb1pFRF8WXN /jdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IARPqoAe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h15-20020a170902680f00b001e0abb2c775si476681plk.474.2024.04.10.20.55.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 20:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IARPqoAe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139714-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C0177B2813C for ; Thu, 11 Apr 2024 03:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72EB013BC13; Thu, 11 Apr 2024 03:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IARPqoAe" 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 95B1B13BADD; Thu, 11 Apr 2024 03:32:58 +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=1712806378; cv=none; b=kz3FAmbE94M4Bb5rNwGC6Z+yn6IenCe8iVWl89oaLasvi76hbKlbAcJ29isuvpJJiK9ALuQawSqnr/d6nIcdvJggg7g0uNIFEKyq+ic3M/D/6/CmJPuAAgdhoiTjBWjubRlx1vUTn4/+2rHfLCYcAMy/eTgc+mQ0X+s9hks1ui4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712806378; c=relaxed/simple; bh=iOCpCDUmajHA6Opq8WcJ6PcQv4ZZHQHjuT0DJJ405iw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ngQZZ1Ex0tp/+NFYtQCc91Kb5PnsxMPlHva3IbXUdfI4jirExbcVG9PBcZdj0XjjzBiRZFQVwuTnAbvHpLi2WNnMFJczcyx2rhajsTAIPDdGiUPUJ9zoVHpCZGslj29Ei3m+Yy5tcMEaJSUant8gQHhtabR/km8z2s+hSE7veyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IARPqoAe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA353C43390; Thu, 11 Apr 2024 03:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712806378; bh=iOCpCDUmajHA6Opq8WcJ6PcQv4ZZHQHjuT0DJJ405iw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IARPqoAeSRKcC1Y/goOtmb1IXci4uqF1C+BFBtBbFMGbU+WJmJ32+/7bWZL/1l3Wl s3UYT55fYjsEDDskCZ4uGI4QJS2U0te/kzJVLdKZGJYmBHormQgU7PW2KMtVDj6yoP ZHeqxprPyDPYZNIUpr1fZfAF+J2J8C1tNKIUAy8E7fmWpqzzaRFLxGwQJ34uzfYtIB 1sSo7X9cmxyjup4cRTaw57t5oI46vEZ/n4iCpBVvJeA6PWayIRF4xsMz2AeH/8ErGc Dug1bwnKPRjMPk+8S/lk6pCnpq/3WAGsQGpOX2YOx9BhxQqYdZow3cRnjpi2IzIAoh 6JqfpOsOMBCzA== From: Namhyung Kim To: Arnaldo Carvalho de Melo , Ian Rogers , Kan Liang Cc: Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: [PATCH 1/7] perf annotate-data: Skip sample histogram for stack canary Date: Wed, 10 Apr 2024 20:32:50 -0700 Message-ID: <20240411033256.2099646-2-namhyung@kernel.org> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog In-Reply-To: <20240411033256.2099646-1-namhyung@kernel.org> References: <20240411033256.2099646-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-Transfer-Encoding: 8bit It's a pseudo data type and has no field. Fixes: b3c95109c131 ("perf annotate-data: Add stack canary type") Signed-off-by: Namhyung Kim --- tools/perf/util/annotate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 11da27801d88..ec79c120a7d2 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -2399,8 +2399,9 @@ struct annotated_data_type *hist_entry__get_data_type(struct hist_entry *he) mem_type = find_data_type(&dloc); if (mem_type == NULL && is_stack_canary(arch, op_loc)) { - mem_type = &canary_type; - dloc.type_offset = 0; + istat->good++; + he->mem_type_off = 0; + return &canary_type; } if (mem_type) -- 2.44.0.478.gd926399ef9-goog