Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp71993lqh; Mon, 6 May 2024 11:36:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWt5VuLtLhe362+L3gunkn4GIMZPAcP3v63MA6RESs6jvCnM3UdJACNtgIOdvjItKeRrDIXZf/+UPHjl4akGQ+MitXJKokbdAF63Xze1g== X-Google-Smtp-Source: AGHT+IFLRqPppYkD7d2m/r033Pl1dqsH+o1xO9ToowC32EiPJZJC2K1erIkdyElppzkuxZ0nRUYb X-Received: by 2002:a05:6871:e01c:b0:229:6d0e:203b with SMTP id by28-20020a056871e01c00b002296d0e203bmr13622797oac.50.1715020580592; Mon, 06 May 2024 11:36:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715020580; cv=pass; d=google.com; s=arc-20160816; b=oMAuPj/FwtxCu2GYtGExtNfJ98UoJozdNfAey4DU700K3RvD5hv2TuDc05Dk31Npvc sVRQ91QWqndcSf74NfImd6t9dpsmUZcZEe0Uo8VtyUH2yFuAQDWbnPSwxmkl+5soA1ig RwQSuoT993QqZ0kwsd9K/HJ1UW6BeprS+nyIfktJqZwdgfMWWbiauKo5VCvsVehSUGO2 i09M1gh8tww9xt4LmeVhcacTNCYPcH+bOZqtwZTYcwxniRZaBqZeFKKjqzAXc2tdzaGg agP9TsuDd5zn38YaKziocK+TTY97DGlW3IE4+gf2NS8Q5wccUxXqwbQwLS1W9Nqj902Q hmaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pFvSNDrs1k1i/XoW+rJenYF2IphXq5bF7JP7g658FDo=; fh=nVgb6VHQ8ImGNhR0kGP0zPEP/lvFlHZfizY3+OfYv64=; b=QeTjj3UipdCHAjOwJ8MdDO7Hpi1RMM2Kta6JSmtIeXA/Xj+EFzL1St+Yl1yzkbKCXR VkmjTbVoWhHqdWRpM0hEbO772SDiBJy5OFaCwnkKb+ahoSYUaeMITIZ7ywRyqRM+3gXH c+a1a660f7nojX/R8FRr/dYCt1WqsiTClqF4bq+gFnmcGqwpdMaRFUw6ufa5ZzTpYkVz wBxMIgHOWnHoU7ajCjgxjiC3duoFFjO5U4VPuiwyZ4OuOstewDChlFp0dHoOIL62mvHf 4HEcLTEY4ZCudSzlnI5EvKqfkCDSSLZ/TV+O9fwnTS/4Mf8xvfTVzxFSaD7W6LTLDCrv X4GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qql9OWjK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170295-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170295-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. [139.178.88.99]) by mx.google.com with ESMTPS id lp12-20020a056a003d4c00b006f4832faa99si1620617pfb.352.2024.05.06.11.36.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 11:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170295-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qql9OWjK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170295-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170295-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 35EED2838EE for ; Mon, 6 May 2024 18:36:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E219F158A25; Mon, 6 May 2024 18:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qql9OWjK" 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 121861426F; Mon, 6 May 2024 18:36:12 +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=1715020573; cv=none; b=rC69j2AP9H6pBMtBSRflJfbPizAuGR+qMzHG0kypbyIFCioufX17WtbNrClioaXU+W7N/9d51+d9qZGT5NWawJm6RYpGE2xNBzOSzUnGyQIDY8yRH+LS4x4sRGgwMvdxDq5UotGt8G2HpJA5A5fJR7+9i58KZYr7IwmpC8B1sWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715020573; c=relaxed/simple; bh=GZa/wPUGojJfxaJOHsD5KLlJ1l/5vASRHRzePy2aJGg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K0ZdWFiGkf/+pR5/sVwSdZZmsEWTl+mok0+ugc/cYIPPhwmZWelusrFJMhIpUvrare5Jh3BWX+rGYCfFQlp39XzGAorPdszAdvTdJwaIHarZ406ZHlLMp5LwTpiPilWFs4jFloJ6cwunu+fFrAHnLDoosuloy9R7F97LAjqa+fI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qql9OWjK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A407C116B1; Mon, 6 May 2024 18:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715020572; bh=GZa/wPUGojJfxaJOHsD5KLlJ1l/5vASRHRzePy2aJGg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qql9OWjKemsavWDfOZqrDHDQLdALbwxGdM2GzYG2gTYplVys3DBcZPHhqK7/gGTRg Ua23ZtVxPN0GYbEvuYPfy4nRpPhWHmHUKfYPqvEtaFVjOnqK0bpn70b8zVX1ob51cN e4ohCGXI1IIy653OAhPj+DuA4kvc6tgDtvh8nZ5Xq43P1AUdDAHbqwmKUNKIjfwQAn Ee3yPcqkaGf0Z6eQMedAjDSXKne69hru8MwlXjqPtnrdwI1wF+MupYarbKU9Q6XYQo SKRH/3kdZ1Ay8L+siLZBqm9hYbfhovSO/XHqK5BETg4SJmbRHCmw0RWdy7b+Ntb6jE lSCGt2f+/6+UQ== Date: Mon, 6 May 2024 15:36:08 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Athira Rajeev , Changbin Du , Tiezhu Yang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 1/4] perf map: Add missing dso__put in map__new Message-ID: References: <20240506180104.485674-1-irogers@google.com> <20240506180104.485674-2-irogers@google.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240506180104.485674-2-irogers@google.com> On Mon, May 06, 2024 at 11:01:01AM -0700, Ian Rogers wrote: > A dso__put is needed for the dsos__find when the map is created and a > buildid is sought. > Fixes: f649ed80f3ca ("perf dsos: Tidy reference counting and locking") I just sent a reply asking you to do this, thanks a lot for adding the Fixes tag, processing this new series now. - Arnaldo > Signed-off-by: Ian Rogers > --- > tools/perf/util/map.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c > index 117c4bb78b35..e1d14936a60d 100644 > --- a/tools/perf/util/map.c > +++ b/tools/perf/util/map.c > @@ -200,6 +200,7 @@ struct map *map__new(struct machine *machine, u64 start, u64 len, > dso__set_build_id(dso, dso__bid(header_bid_dso)); > dso__set_header_build_id(dso, 1); > } > + dso__put(header_bid_dso); > } > dso__put(dso); > } > -- > 2.45.0.rc1.225.g2a3ae87e7f-goog >