From patchwork Fri Feb 2 06:15:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 195601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp239249dyc; Thu, 1 Feb 2024 22:21:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkYSC3KopbacFkDOcImalpf3VX2P1WNFO5PxJF7nXM4dUwziTwqWd2xPoYiZhlPY6XUcE1 X-Received: by 2002:a05:6a20:c78d:b0:19e:3af0:af33 with SMTP id hk13-20020a056a20c78d00b0019e3af0af33mr6164239pzb.60.1706854869372; Thu, 01 Feb 2024 22:21:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706854869; cv=pass; d=google.com; s=arc-20160816; b=XQghBguHASc3tIZHMevy2DGuwAsbkqLqxCFeTquCEA6ALLKaqPIQk3w7ojE+YPjbPz 8hiPKzQbsASch/tYQrwUG0h7zXF8yzEXuP+7lZiaGtY6W1JnU3rnbo9AmBqSZApadAdU XNLxCZPNB3/QaTGH/YOlZpGjoLA258QsTL/6cDz+yz8+f5nUApsmW7S9rGk20BNAO+gq fQ/ItjUQrJIkB1PCswobxcWhtzyl1m3EvXNBOjqAtLGlDH0o8j4QO4RJ0X3pSuirSgKD U622Z93Fxp9raV9iqVleImOsE/DeA88EJbpWr+kirnHopxaxlP/WdrfFU/Dr7/mbS1+M 6dyQ== 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=9ypNKo2tr4KsqSZVI47f8lu+x9dprlYfSiowX/NLn3s=; fh=1KsuWU0Mb4Pz2xqRamHphzG0JY/h+NVkPwdjOXNql3w=; b=al8ad2uGLavdKNNw9NR7RVaMJ7J52UwjMAJ2bFF9gASPUojGNJwQqrI4/w9ooB4308 GDsOpClUa80LuU34RTRAa0Y78aTy7TjkONmSWmKEyEP5ID3JAAQDc5L2wSqKBsApI7Fh A4PgXgyRQYB6C0YxxsOKcyI8eZCFf1qfH6mIY3ZFFFIFsTVywd7rED6GNQxbwK1e/C9l MjruKv0PTj1OG/ggLQd31Jg3FuGuMFS9S3iV28Pp6XHXgiCocWbdQWdMCnaA+aTIyvSv /Ncc0gUCWfuOoMv7nAhk+/ovMIVSUBMtEBEJNHpyP5GaFEUVefBkmI3tvbnZypPTpqOu BxwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Vb22f27d; 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-49259-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49259-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCWsEq2QEDEW3HXkD2nJ3SP/jHkWjaE9LeLetv3zLJCrsAYUIo4YlaOklHINRSw16uG3+XPY31UndVa2aVDB94D2//DFtA== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y15-20020a17090a16cf00b00290358165d9si1201204pje.13.2024.02.01.22.21.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 22:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49259-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Vb22f27d; 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-49259-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49259-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 59993B20E58 for ; Fri, 2 Feb 2024 06:21:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D714482CC; Fri, 2 Feb 2024 06:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Vb22f27d" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 9DDE03FB37 for ; Fri, 2 Feb 2024 06:16:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706854595; cv=none; b=rDwnFSObHkfOAw8GrRlRbU3hQw6xqgXW4FtBMY8HrX1Fvb+DolhON9bOQLbUd6eZAAICxKe2wPouvkbxQHOIrdKm8GoD5CXuv6EoorUsWQ1x2TWZDFP1vz4s5RKypnFtpKqgnYUXIGoT+SR1nq9EUhyC2q2D5RgICmGsfInIZ4A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706854595; c=relaxed/simple; bh=WyIYFrIhagbqEpEtSnjdCLJyMzbzoqJYvfr5Sd4U2xw=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=uezguFm+SX3x6zaoZaMajBq9JTE8JyiF2S246T1V+79QcOlghzH54QcEWQi0PliNGOZG6vddVfxktzDZP95ToKLLOSdk2TT+cyCG9OmxTV8QFR6oK8WMQC2xJP0myvOMg5oLd3ibF3Xoxyh5v3+Soiw6k7UbQEttTo1vcqExlJo= 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=Vb22f27d; arc=none smtp.client-ip=209.85.128.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-yw1-f202.google.com with SMTP id 00721157ae682-60406626b50so38939417b3.0 for ; Thu, 01 Feb 2024 22:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706854593; x=1707459393; 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=9ypNKo2tr4KsqSZVI47f8lu+x9dprlYfSiowX/NLn3s=; b=Vb22f27dMpxIkeXh0L5WJ4HCOXp8tebLiiFazOzgAIuAzCgp1FwUyln3t/tXFvexWg BFif2qdUFnp1pFfLJd1qq6nvbpGn+4K9aEI4G06OJ62lb+y5GYcjBpXvcNTEHqY4xfWA 4rOa+7Y15HmQ3hSZOqXbOqteCZDzOSONtv8ZUTe9D1SPbCdwmv0SBGo3Hii7F5e0gooD Px4HEM0yrUJlaTw51YYLigJ4ZUHU70fYgmi1UCMlFCmylLTbbfb5R2uAcooS7rTvFC0s kYDEwC6sySJYoeuWabfjkjDHUEtjWMUOZjd12OKS0X8Ix0wDcO1pYy4d7M99QMP7166t s9cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706854593; x=1707459393; 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=9ypNKo2tr4KsqSZVI47f8lu+x9dprlYfSiowX/NLn3s=; b=Bes0M9zcJVzbLUooDSDVnMKE0xG20D2xIZwkGZ7lZR2du8qLNBmg2TbG1jzWQG/1OG 0fhboehnndIsnWLcLKBBdcfTD7GrpIp6xnq7T8MoCILKJ90cL1PTOjCI5O2AQEjhQOvq 8ICs/slAVXTX+rXo5XS0+VlQGcZLkOITSXoVh4jtCDZYlLj7XIdVmvpV1MmOQMH/nQCY u7ctFhu/ah2YOCcytJLFRmMK6zb06VGXaBNduFP04TLLv/j/ClB2HeNeS5gWsg2iO6J7 g+8QVCixm0vXYGmwqjVjRd1LB+PZf1JX+rDETOVHy973lyKyMQoBYzVpi/DprNg6gvHf Z3tQ== X-Gm-Message-State: AOJu0YyN4O6EX2NMgZkf9hNJjJbeo0d5UrF9mK1jEVfIPgE3gS4Er4Rx W2YKEFjfURkq83FIaLFgp763joKFl0AF+n0ypng22qJ7PEIdxT3sBmJO8r5lzmxrwf+r8px7K8U +QZvo8Q== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:a85f:db1d:a66b:7f53]) (user=irogers job=sendgmr) by 2002:a05:690c:84:b0:604:2252:7827 with SMTP id be4-20020a05690c008400b0060422527827mr331617ywb.10.1706854592816; Thu, 01 Feb 2024 22:16:32 -0800 (PST) Date: Thu, 1 Feb 2024 22:15:27 -0800 In-Reply-To: <20240202061532.1939474-1-irogers@google.com> Message-Id: <20240202061532.1939474-21-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240202061532.1939474-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog Subject: [PATCH v8 20/25] perf dsos: Remove __dsos__addnew From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Guilherme Amadio X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789767051484008330 X-GMAIL-MSGID: 1789767051484008330 Function no longer used so remove. Signed-off-by: Ian Rogers --- 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);