Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1126691lqt; Tue, 19 Mar 2024 13:34:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhO3AaMd3bZH4Sd2A0o49ilUWO8zs331RT/P6mhVuquIeu96CoBddD5OVndcIJDsE0rdi64YuRLi2pwpKeq1Z9QqZ3XTe5fjMuD3LH/Q== X-Google-Smtp-Source: AGHT+IGmvCxpkhDkT1Bqvx67DlHlpR/pzoSSDqZcvFYNrxhC4n39udnOgRVxPq00BnmBJqgroZJV X-Received: by 2002:a05:620a:2008:b0:789:f5bc:699b with SMTP id c8-20020a05620a200800b00789f5bc699bmr9045664qka.70.1710880466531; Tue, 19 Mar 2024 13:34:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710880466; cv=pass; d=google.com; s=arc-20160816; b=DiqgLFafEiJIJ+NcORLhnGpgjHHfBsBABc1JUH/NsMyUhQdfVFU6c6FWNKzSuBgVGg wn4jfq82xFG0/e/S7/H09xnMZNKoleheJWGZweQ/3KKnT/PcpbatHWEbJfP1ZLxZ3fz1 +rjLGaIQkWuA17lN/fVeK82AfslMj3sWBvonIsBuG5nKO9oqZJtLIQzM+RlA0QHsUDWT mY/QrviXIGkkrxgNfWPFQIVFB82aI1DTL88OrOds8ZstkKSvftMA9g7pIju5jOA5Q3Ts ZQKSKWKR1YbJtDrUYYDhPZu3f5SUWcWYCz6AMf0vk0rZcIEGK09rnAZ/bx/xqgGZXyU2 /96A== 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=o+Df92XRVdf3D86q1MMjvFQKOFIc+7iDlGP6UKYnwIg=; fh=LZm8pvZ1zjjLnmYZxx4rasVVtDWN76+UZkNqByYrZU4=; b=oBRP4IHJZIgpOxLpQLw1jsUxjNQnOBXQ4QKBv/DJXFM+pVjKnwXIilebFtoW+j5846 U/eNN4P42g1Xn/qJd5dO/kRZRghuhN43nkEBqQPf5j6RDVqn6WMrWSlxefeHCtJ7oEdu tMqZK4qQSsuBBLoFHse77Yu/Rxhg4kkGZBFwtDgSjPM/sE50WmQR/J2a4ltEC0yZIjZ1 c/FBqfBq+2PZf7M6Jdtam3atCFSfv615++2iMpQePEPJzwWSiIxxa2dIUS99FtsYRgPH nVh5nWlx7D4tUYUXkdy6nvspSTmcNB5JHgbPBVrBDp8vVTKwh37A2tg4rvh+0EfYcrZN 5A9w==; 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-108112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108112-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f27-20020a05620a20db00b007882ce62365si12390004qka.112.2024.03.19.13.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 13:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-108112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108112-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 177241C21C5C for ; Tue, 19 Mar 2024 20:34:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EA8A3BBE0; Tue, 19 Mar 2024 20:34:19 +0000 (UTC) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 61CA93FB80; Tue, 19 Mar 2024 20:34:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710880458; cv=none; b=uN6v9eIQGb49xwEI6CfmErj8TPMZGR1udrMQBOx+XfxQ0TZJMGFdiGOaZk/XNAtNC92NHftT8MS3VjeURgSudYhO8rJFQ0lUk1NnAC5ATAdZ6OhCNQKAqVCGDZ6C3m5O4oPSWutQrry16kodMrl7XOi5bOutWNdwXMHOWsmXQvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710880458; c=relaxed/simple; bh=fiaVOACM/C/ner0zjz+kZWrpVYTb+WyH0bwNXulDEN8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mvS2o4r92A1+ZhFbMJLaAt85S4XrrP2C2rZ9CScA3i+tDVtKuGYQRM/AUo7maAZqt5a1J5QLHdS7SiAYXmFPMbsFA0Rw05dwrujz8yrwSbKRBrcmSiH6dxiIJ0SmVQ3m02Nb3G/5Gvu4ovnNOL/SNrsJRrjZxZfWYQEL4FdvfEI= 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.216.44 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-pj1-f44.google.com with SMTP id 98e67ed59e1d1-29de2dd22d8so3013214a91.2; Tue, 19 Mar 2024 13:34:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710880456; x=1711485256; 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=o+Df92XRVdf3D86q1MMjvFQKOFIc+7iDlGP6UKYnwIg=; b=AiCpjm3f78tN+kGNHOtXIgZnXUqRN1W33iKnVVZjrwrn8teLTMX4bFoGUJ9lwVCUEQ 8ZxQKh/gpc3Okz0S2yoPiz0GE3NkXV5NQI9KjWoWkXvx9qxVnvnn7txe6xFAHerXfksP SLpYPjY5QTqOusX5spQaWWDFEgXdgYNCJg2W18dXmcyz2zBBc5L7UOaLpVistWxIgc/t 5kBnZ8gmcEIisSmDbkTwAo8FJvBxfmpslEOA1NrjyVFejxQ+l4saSutmBoUnKramTOxC XS+bXJ1lJn5Je0tgH/w8zvav9XHK2I0y4v12gkr7uX3Qb8NzS2xcOwBYgMoWsgCO3bWW FYtg== X-Forwarded-Encrypted: i=1; AJvYcCV3BD2NdVMhRNCwFwS+TAbmP6APoEaII33M9jgT0JE4VPCjJ0j3pK1CuIQlq7vd+yg4DtVsjGZLxTg+xz1u/jjL61N+wjCFUtnqFn8macEl+QhvvTZxsBr2WP2ncnRHtEyApctkUhnwXb6V4NaE54k2XI8/Ghoam3z+EQI53xpTUouM5V5LEyyCAdK/dxbJAYM/OWdFIcX2nNKWgwcEGvW/NcwtkkE6lIqF3DilAmSGF4wzJA== X-Gm-Message-State: AOJu0Yz/nEjIDv+cJF116HAhNbxv8F90B4+fa4j07aFg+Pc/HcK6hDOu V5bQrn7udDT64BdzWN8E9ClszGCni+nOUZoChWvMajImPZIFP9v7rrm2t1+LIXRhcIBPM7UaUTc EnpheVLDNCL4NmR/bcso2/3s9jnM= X-Received: by 2002:a17:90a:6c42:b0:29b:b3fa:b7a5 with SMTP id x60-20020a17090a6c4200b0029bb3fab7a5mr13418863pjj.7.1710880456588; Tue, 19 Mar 2024 13:34:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240319055115.4063940-1-namhyung@kernel.org> <20240319055115.4063940-10-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Tue, 19 Mar 2024 13:34:05 -0700 Message-ID: Subject: Re: [PATCH 09/23] perf annotate-data: Maintain variable type info To: Arnaldo Carvalho de Melo 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 19, 2024 at 11:12=E2=80=AFAM Arnaldo Carvalho de Melo wrote: > > On Tue, Mar 19, 2024 at 10:44:31AM -0700, Namhyung Kim wrote: > > On Tue, Mar 19, 2024 at 7:07=E2=80=AFAM 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 a= fter. > > 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. Ok, then. :)