Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1053816lqt; Tue, 19 Mar 2024 11:13:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWh8kptBPHUus5DF3hHHXh3Ys2kKC+GXSLb2nHKlBdDex2GfMoOxMQOKJ0rqJLCfYXLVIwBh01zvV+U37/OkzLXMAvZNRuNOJAwqSe0QQ== X-Google-Smtp-Source: AGHT+IHKGOMv5yxIGglU6MRovbaksYtV+ToKzoAAErQYMdIzokTtun/WGIFALWRZN8a5zAVma5Fo X-Received: by 2002:a17:902:cf06:b0:1e0:2977:9dfc with SMTP id i6-20020a170902cf0600b001e029779dfcmr4348211plg.55.1710871999873; Tue, 19 Mar 2024 11:13:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710871999; cv=pass; d=google.com; s=arc-20160816; b=P2y3YVAvPbvMKhdaGylhNLhoqmAZ/ibn1iDxHCgGaxsqWaFy/dLJ+gLps+j5wbkegQ KIS824F4gWnBVSzi7HfvEipnHD09i8GXB0KBQ+F0Z1BTkHQ22BIsGrfX8RQ0sSTZMe1M p5wHC9Zpe6u6VYuxXm9rOy/TVWKYz+6YWaXkMiadzA99X6vkHwXE5G6AM5+g9ZMxoOUq WT5Z7WhRipAYzPLcN/zx3EdbwMzgmCraweO7+glwPRDkchKv3++5svOM9qm+adFlW3Cg FIGCxCA7oOw3M5DtoI/TH5fv7mzCu0P8x0BE34OHYg7uTnQx+t2AGLq5UCDAYnezUBA0 CZPw== 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=PEYzz6pgKit2DnFH4cwKfXuK2hVTOJ3aLFQpt/p7IOo=; fh=W3KJ4rXcu85ubgqT2134A/cdx6WzcKhVk/3nUKtpIrQ=; b=0/JGBCJk7ZrycvzX7AwR2/oUxPu31r0+DscVwJGL35pc+252x7Z/48ibN9YKLzf86A DkKhCCZRX6c5pKZGDDCRROXOT2ml5uu29y24E8Pn7+GlOLoK4JqmPeJyKobZ2LkLvafa g8RUhkjEU6LQn9c+V+K3QISE/QdO/n7opaYHAFpdqPx4284c8+zk26OvpTpmEUd+jjaA Dl1dezfUbF/jGdVMVuqR6owmhNx3c9J/dYK0ncgXsoAn5jCzYIPb5fbG03i0Z1Opsz7e 34qsHnsLKr1RJjvOrfvbYFWH4BCC+oMrvM+DvF/xQFsg2Nin6IUt/rQ70fSWFqcTQPhH Fpxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hE/QSKOE"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h15-20020a170902ac8f00b001dcca361319si10994277plr.261.2024.03.19.11.13.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107986-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=@kernel.org header.s=k20201202 header.b="hE/QSKOE"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-107986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107986-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8B04C281342 for ; Tue, 19 Mar 2024 18:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0095282E1; Tue, 19 Mar 2024 18:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hE/QSKOE" 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 CB12D2C6AE; Tue, 19 Mar 2024 18:12:32 +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=1710871952; cv=none; b=cmpSXHz9qTY6RVGNmYXcnUiAiNrHTmlgQuCG2cMPCEO80tKaiZq20/8AzgdZd4pwI40l6ciKEyLFuZpQ09Zw5cCRrS4SNViN4ITIt2I7CDwysHx0GOwDV7zQrw4pvocEcIJhDx63iUQPT1qJIL4yjhqy21HC5DHbvZqknqhPGZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710871952; c=relaxed/simple; bh=SftRlw25717KfraW/oJEXJbHD1EPneudXtNW4HSfDh0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JrTutZ2N5Gahv5f8vVXVzT10dVoKAOnIa0U+CLkO5dWUHmB4n7wZFPbN55UfziPUQk5mYdb1sqaAFtgvpImVAJby5s9/XSUiQNit3/Xdd6RDtQsyH9xC368+wrt2lXVjwClAeD9xPLE0UBQGiwmRq3r7njsVmilcsuv7i21c2oc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hE/QSKOE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49514C433C7; Tue, 19 Mar 2024 18:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710871952; bh=SftRlw25717KfraW/oJEXJbHD1EPneudXtNW4HSfDh0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hE/QSKOELxDbrTwwKGHc86OuDRyhnMRz7p1Z0RNdTbSRZWM/rP0MmXmtqJlMrupoA Zz+eHvgHcC2Y8fIrYOanYS50LHQ/eaToRhT/u39AzQc9TcbQ0o16B1XvaJzqYAN3gX 3OSdHpEIF4ngB1793CqW/QJX5L0Wu1LKVMsPg9TY61FlrVvYDCuuEYhnIEh/Tjl8Yg wlNsuarphgAZA5jbuJHntgptuVKVchJuEDkl+W0QIzoToQBnYnLpZ87L3Qc9UWn8Ol VsgWz10dOlKPlT/vxjVAKez1pAgAzk2cygGSpwfB5TjLWTHpZTL/saUNZjAraIIh7a 0OpOHW1q87NJQ== Date: Tue, 19 Mar 2024 15:12:28 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: Re: [PATCH 09/23] perf annotate-data: Maintain variable type info Message-ID: References: <20240319055115.4063940-1-namhyung@kernel.org> <20240319055115.4063940-10-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, Mar 19, 2024 at 10:44:31AM -0700, Namhyung Kim wrote: > On Tue, Mar 19, 2024 at 7:07 AM Arnaldo Carvalho de Melo wrote: > > > +void exit_type_state(struct type_state *state) > > > +{ > > > + struct type_state_stack *stack, *tmp; > > > + > > > + list_for_each_entry_safe(stack, tmp, &state->stack_vars, list) { > > > + list_del(&stack->list); > > list_del_init()? > Maybe.. but I'm not sure how much value it'd have as we free it right after. Usually the value is in catching use after free more quickly, i.e. someone may have a pointer to a freed list and then it would be able to traverse the list of freed elements. - Arnaldo