Message ID | 20231127220902.1315692-45-irogers@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3502737vqx; Mon, 27 Nov 2023 14:17:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/qWoaDB2JzWiXUQK3lCdYZhU9MCFTWhvhLurGJwCbpaG7OGSh5ZOkNV/4NuBACRIXjbKO X-Received: by 2002:a05:6a20:5650:b0:18b:9053:d865 with SMTP id is16-20020a056a20565000b0018b9053d865mr14458104pzc.42.1701123457922; Mon, 27 Nov 2023 14:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123457; cv=none; d=google.com; s=arc-20160816; b=Q7VQ8/8LmL6xhDucHRuPevQsBK2SQnVLF1soqiW2DrZzsACMD6wZ2GdHKedWuUmmgg axQq6rc83VDLU38FGcogvRhqwYFpEyyJVvYdbCq5jeyNuZfrs0qqwyNK4POOy6LYnTA0 3JHH5bFX+KPs0RsPxtw4gKtWP84nJiPreCIo9MGH3Y4MewTFWtzyzPTe1vdpy4SQNnQh lKNjiVGQztf5Jo4PPzKiL0wqAXCs7j1g6LnLlH04zHazbDckJmhaZnTWpj8d3IFQsQCW AudXY5vTWpJnJF2UYEdeVCtYiItEEUi9v1sk16LlezvekL90rU8szu0ewWZZiuGLUuNK JzXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=3SgzJhwUmMLXBFn6JMneX8WO48Fxs5qeBUSS9OEPabk=; fh=Io7x3OacpefNRRNKoYAzVE0aWTDwD7FRzyCdD1e3AN4=; b=vfDRlb6H72TNxKH6W9yTOcmC23Ie05DT/2oQmQZsG/jqxgl02Gv+TT7f+irdl1fddi zKxhBKhQ2fTHsReTxn54HH9Y8QV2iY/aLFo8S0x7t3sId4R8OdirNiv+ic+134opc9Rv 9WBQRp+RSaTorORidY+JgA4cPw8BxSPtvmk/MayWJJsHfJ1wa//XzpykWD7e2I0YtKKK CR9hAUM/sCkRs3APrzP2e3OOzzgsat3YdfD8k57moJdIJqypoUfk70UJkJ/43D105Kl8 BvK2BKu+YSopey1YTvSZcT59IOCdBMS0Qgzk4Nse1oNPySdWf8euoARo+iJyBVsGcLBu MwdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EQ7Ffzeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n123-20020a632781000000b005694a4640afsi11041475pgn.95.2023.11.27.14.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:17:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EQ7Ffzeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0A24D8062417; Mon, 27 Nov 2023 14:17:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbjK0WRY (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 17:17:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbjK0WQd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 17:16:33 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C4AF3841 for <linux-kernel@vger.kernel.org>; Mon, 27 Nov 2023 14:11:05 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-db40f549659so5816579276.0 for <linux-kernel@vger.kernel.org>; Mon, 27 Nov 2023 14:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701123064; x=1701727864; 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=3SgzJhwUmMLXBFn6JMneX8WO48Fxs5qeBUSS9OEPabk=; b=EQ7FfzeozHMCZRBXfUMlZHWiakceeWKue4R9O82UED9cZbWEK7I0ywNtY90Oh96pce A9Fbxh6z7zPfPDRXC5+dAI0w+ZJ/wg3MKZITvXE82t1c4xw0fNp+9QiBFIY1Q4oXIMO2 6Bu6iUiH9F2gMkaNUcEB2I2bqZa7nt7FJmnu8t/UZDQl4wMI+WsFBxfhkOQzZ/g6e34o S2gvEC+Zp2GrObRg/8QeEi1VmWTj0u3QDW8C6sawKLdsD46TN1t/v/tnGQx9BG6nxwRy jsoFwQVrvbDNp2gxdV2VK0TJlxeDB+nu3oDAsc1zkZlz8fEzskdBiQ+v1EZRDUE9DefT QBNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701123064; x=1701727864; 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=3SgzJhwUmMLXBFn6JMneX8WO48Fxs5qeBUSS9OEPabk=; b=RcFehp9ARt/0UN0CK6B7/qWgNLBQ+PgLuMLssOkBCMfoYcSRJF0jeoRvVeqefFgyuf x08n9km5t87otKj718PksLiMvZaXs6nGlr1Rb5CuPzByvX1MuBywd+p1eqsx9aqnv2DP UPc3o0BFXrsFBtzfmqJb1wCKnlzqOEpczam2yuxjYMvoDntTVPdMi+pt/zJJ1S8QRR+O ockZ2GYk9U/eUaLoz9MXRCCSrgURN7TCFs0iPZ5f6epwQh01Nv9DI9FwVBdOV2TGFRy1 XiJRzz4vlV5KNVy9fYF1r121pU6FTgkpKdLAms1Qcf7Lz3U1F1IH4qzjQO8IchvxlD3e NhBQ== X-Gm-Message-State: AOJu0YyOEUGmymHSkBbJVT93Uwy323vWuB5GK9NthQcGdYzhHYeF5zA2 aLSjwZjUsZi7V7cGfPaWz0Q85Y50Y5II X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:829:6e77:9093:f39b]) (user=irogers job=sendgmr) by 2002:a25:3507:0:b0:db4:4df:8c1a with SMTP id c7-20020a253507000000b00db404df8c1amr468637yba.12.1701123064266; Mon, 27 Nov 2023 14:11:04 -0800 (PST) Date: Mon, 27 Nov 2023 14:08:56 -0800 In-Reply-To: <20231127220902.1315692-1-irogers@google.com> Message-Id: <20231127220902.1315692-45-irogers@google.com> Mime-Version: 1.0 References: <20231127220902.1315692-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog Subject: [PATCH v5 44/50] perf dsos: Remove __dsos__addnew From: Ian Rogers <irogers@google.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, Nick Terrell <terrelln@fb.com>, Kan Liang <kan.liang@linux.intel.com>, Andi Kleen <ak@linux.intel.com>, Kajol Jain <kjain@linux.ibm.com>, Athira Rajeev <atrajeev@linux.vnet.ibm.com>, Huacai Chen <chenhuacai@kernel.org>, Masami Hiramatsu <mhiramat@kernel.org>, Vincent Whitchurch <vincent.whitchurch@axis.com>, "Steinar H. Gunderson" <sesse@google.com>, Liam Howlett <liam.howlett@oracle.com>, Miguel Ojeda <ojeda@kernel.org>, Colin Ian King <colin.i.king@gmail.com>, Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong <yangjihong1@huawei.com>, Ming Wang <wangming01@loongson.cn>, James Clark <james.clark@arm.com>, K Prateek Nayak <kprateek.nayak@amd.com>, Sean Christopherson <seanjc@google.com>, Leo Yan <leo.yan@linaro.org>, Ravi Bangoria <ravi.bangoria@amd.com>, German Gomez <german.gomez@arm.com>, Changbin Du <changbin.du@huawei.com>, Paolo Bonzini <pbonzini@redhat.com>, Li Dong <lidong@vivo.com>, Sandipan Das <sandipan.das@amd.com>, liuwenyu <liuwenyu7@huawei.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Guilherme Amadio <amadio@gentoo.org> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:17:34 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783757231012147252 X-GMAIL-MSGID: 1783757231012147252 |
Series |
Improvements to memory use
|
|
Commit Message
Ian Rogers
Nov. 27, 2023, 10:08 p.m. UTC
Function no longer used so remove.
Signed-off-by: Ian Rogers <irogers@google.com>
---
tools/perf/util/dsos.c | 5 -----
tools/perf/util/dsos.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/tools/perf/util/dsos.c b/tools/perf/util/dsos.c index cfc10e1a6802..1495ab1cd7a0 100644 --- a/tools/perf/util/dsos.c +++ b/tools/perf/util/dsos.c @@ -341,11 +341,6 @@ static struct dso *__dsos__addnew_id(struct dsos *dsos, const char *name, struct return dso; } -struct dso *__dsos__addnew(struct dsos *dsos, const char *name) -{ - return __dsos__addnew_id(dsos, name, NULL); -} - static struct dso *__dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id) { struct dso *dso = __dsos__find_id(dsos, name, id, false, /*write_locked=*/true); diff --git a/tools/perf/util/dsos.h b/tools/perf/util/dsos.h index c1b3979ad4bd..d1497b11d64c 100644 --- a/tools/perf/util/dsos.h +++ b/tools/perf/util/dsos.h @@ -30,7 +30,6 @@ void dsos__exit(struct dsos *dsos); int __dsos__add(struct dsos *dsos, struct dso *dso); int dsos__add(struct dsos *dsos, struct dso *dso); -struct dso *__dsos__addnew(struct dsos *dsos, const char *name); struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short); struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id);