Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp54521lqh; Mon, 6 May 2024 11:02:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdFYb7bnkJ70Q+XyGLX5jgFpOaWHSFISbJ2XAeD4dBxqLZM6sNH5iz+Ck6yuN/nPSb4EPP89Ewvdur3/PLX9ol555qO0fZe5H+M0HFzw== X-Google-Smtp-Source: AGHT+IFCD0UaC9KJkFSCTONPeFFHeZBBp5tkgI92pHPpLavWQaI+KB6rDp/KB4v2KPZZWY2L7lvT X-Received: by 2002:aca:2105:0:b0:3c9:6c63:67be with SMTP id 5-20020aca2105000000b003c96c6367bemr3759386oiz.25.1715018548221; Mon, 06 May 2024 11:02:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715018548; cv=pass; d=google.com; s=arc-20160816; b=bkgJDMBmbR3ONvCEUPNW+uL1OIjz24mvgr8OiPiAqOx4MIMQYVuYuvRLj3fUWupHOc M7AERzMK3gMoPKk6aY8iDThGsuyadVYBszbvfeyzvsIF9JpVP8/IET3Y7GNt/1tGKY0v 7bgkPdXXorggtWoYaAYpfnSoWNuih+bLBMPel3VPiN0vcLPhReHSqQD97g6Fv2NyNvwY J8S3zC25kJnv3O7CWqT0O5Zg19bkgdaRHpUC9BZSWDfYgyHAJUSxG+RcYhKwrIsVgD7l ILR68b9kuV03LhaO3T1aJvrdTaBtXD/S/JaQ8FmJFg/lPZLQ6dW6t2EiaAtkVPYDDOQO N78Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=0nd3szNl+OFQsnbvKRBpAQwbxRmYTuaSHyM0OpbQt04=; fh=vf/4IF7plZjyYehtwEk+bZrKKquOq88nuRwzqCZLd6g=; b=ZZKxXr2vIPAv1jzhIJj8LHcFfH/GIZh0+7YfFiMqD/9FeV4NkEqNzl1ET68VAuRMJk kyT31VtBg9xtgg/UHCWcXc+eFhoL0Hx+Xyk4pb38JQd+uwTgcKMPL/r+Eq5lLeHgy3Sf uXlwdFfvutGVn0Z5sKVP/fS2A+3EeU6708Uf340EhxLbxiifgRfknzbXcaT6xPTYTgPN Rh6iEoIOGKBVhe++Xu3l0RF/lMdf8b6WtnlkweMaW8Bo3F2k2j4qC9ck0OmvRMmvk104 l9bQfswi3wJF0SCQVrfbJNylNXY9fFUT72uc8O4y5TMiafsOCFc9pKThYkBq++W4O0fR A2Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=a3Do7Wgg; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-170268-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170268-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 cd11-20020a056808318b00b003c96370803dsi1704786oib.94.2024.05.06.11.02.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 11:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170268-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=a3Do7Wgg; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-170268-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170268-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 D53FB283E50 for ; Mon, 6 May 2024 18:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C737158A2D; Mon, 6 May 2024 18:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="a3Do7Wgg" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 18519157493 for ; Mon, 6 May 2024 18:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715018515; cv=none; b=bRcqSvkc8UPyksH7OcacpHw77b0hbMlV4YmjYGdPJnQbGTzERekjVMWXcdcjLevXG2qPKnooGvKyBExcraSGD5NnJo9kcKgACY8WhruTuPLYeaLmajWvu76PnyOoACJTbTi7ZsqVeUP0j6j3orlus32DV4vm4twl+tb28FtGAkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715018515; c=relaxed/simple; bh=70y0Uq70fTi9vP6E1n3v/21p95xUIVe00JfnSvODJ4M=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=WJzdAxPcvj/vvTThUKJUn7K3DQMn2kqojQYP5wRX8S2FE8bFnVknkBqbK4POmEVsQD5c356m/dXT1ai4epN3Gc1e63XYvHkjHz9as1JX+q6jB6IDnX6dW5Voa0xwboFQBI50C/i73lHD0gENOGm8GdyR5L73JH+XPh7RxB/a224= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=a3Do7Wgg; arc=none smtp.client-ip=209.85.219.202 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=flex--irogers.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-de617c7649dso4377559276.0 for ; Mon, 06 May 2024 11:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715018513; x=1715623313; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=0nd3szNl+OFQsnbvKRBpAQwbxRmYTuaSHyM0OpbQt04=; b=a3Do7WggtAq/5DHafmiQOhbax/yaC4GHim3qOAatI1BlC3x5AZT5wX/uybqHQJDNE7 qAtmCSEVk1tRrFVmld/ZOyBQh8B+VSDW0vDZ79lRYOLqeJNXYJoO/UQJHA4vloaqCFlS zMU5+F+jdESru34V8MJIphlIw7a9oHsbfDaqEMMBoAbHOGnTBP8W9g6q+4XW/xt82EUE Gk8gopvwIPqMiJ4X6EFC+jNp+RTgcgneFewqDfDi+o3ZJTm31Id28g4golaHQ7glpuoQ Vk3EvqFAPK8a/sLHg7v4ZmMQIjj69FfByHCGV1gdmsRN4NNTN2ohlPDRi05g+NUBIWV1 o1EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715018513; x=1715623313; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0nd3szNl+OFQsnbvKRBpAQwbxRmYTuaSHyM0OpbQt04=; b=rjMmpS+MCssxZe91yQfQCItfp0ctwBa+7eIrmj261DJlwfxS9ovvxJ9MpdIwHfzzex MqVbJg6OwnQ1gNA/ifLDjkjOaadHQYGzRTE7cFD65KMwtKgwyibFVBhq/xUbnuftM409 6lvAHu5Aj/sRIx62E5C20KeS6++9ah7emjNfrMhL3iLuotzcCe5bPH/0TXnmlcu/vapK Vt2V9PJgmXolFoaaVvrO9Kmm5N5ViSXmYHGDWTd537vatPO7rxHn5Rw2pKJ//l/i4NHH 26HlYCh/gerDTAOxLd8laBvB4XQAY6S9uJfwhg8nJK7nlUYXoWjx3OpUXMLqV4hJQ7Ma VwSQ== X-Forwarded-Encrypted: i=1; AJvYcCWyNtdJQhWGuFLdZf5v6kGINwVjSYN/+jE47kt3KqsGZQgp9FxP+ytA39Z9yAo+MClVUKM7TWwToFq6PVCgzTtdOuhvit5BRoxq0aI0 X-Gm-Message-State: AOJu0Yw09MSiNwZTTo+BF/qcVIXI6Y1OIXg/cbjQmZZpfLluAo8EQM7W xf77hFGc1NLABlWq6lHM2lFmqNHSDdZ3Kph60tgxWNd4NP+6rnDllugNn2X4FHlk7C1RUGaHyz5 b5UtjJw== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:91df:9b7f:c8d8:409a]) (user=irogers job=sendgmr) by 2002:a05:6902:726:b0:de5:5693:4e8e with SMTP id l6-20020a056902072600b00de556934e8emr1533970ybt.11.1715018513213; Mon, 06 May 2024 11:01:53 -0700 (PDT) Date: Mon, 6 May 2024 11:01:01 -0700 In-Reply-To: <20240506180104.485674-1-irogers@google.com> Message-Id: <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 References: <20240506180104.485674-1-irogers@google.com> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Subject: [PATCH v7 1/4] perf map: Add missing dso__put in map__new From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , Athira Rajeev , Changbin Du , Tiezhu Yang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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") 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