Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4920823ybg; Mon, 21 Oct 2019 17:06:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkmrMN7uaDx4zbkB2Tm00sQBwUrt0OM6ZxApe4hSOSi0W/mClhPmYaGM/Y2XVfdep6S9Pc X-Received: by 2002:a50:ed05:: with SMTP id j5mr27872277eds.251.1571702799198; Mon, 21 Oct 2019 17:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571702799; cv=none; d=google.com; s=arc-20160816; b=Pvl42+lRPYgPusGIHcqTQAbOcseawnVFHEsSd+MtFAV/Jdlhj+TgbzLAAB1STf6g6B yQzlXGexQvNl/MiA6VXl+8BGslv4wF87R7uuO/Rv5Zd7icXtdbXbAsXGGLk9p29MebWh GfbKHnKuQo/BP3T9xYpudQh6aw4Yk21o5lTpu26ieMsDmr13xgraFTHjQSZEDJ43blVY V/j02QXbXdnnym50JmeyHue7hjFzJZWN9eCyATHQZ2GrEwhuoaQOTEewnzKNsg09YnLX rVGODpO/Qk98uE6/a8zOcCD6P0Ug9ibdGdGd7/4RlYEaTUBpJXkjrXfs0Pc2hbhiMeva gyAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=6sDaCq2898gc9eodgstNkhm+TECqP+braiefocbkw+A=; b=kYd0wI9x0T7p8x82rQHqNCsZANSPc76Dj8Za8NgKxSBv6xXSVGoSVsp1SMskcdTYFh j86Pj6xWBZxJok2sr5U9DxWf6/5CpNGGbEMqZkOZo/YBneTFIz+u9ZtOWztxIaMts0VM +IqzMVTksQe5Dz+rxh9h1m8mzY2zHpyBRNF1D7K8fki0P8aRfFa/Lg9gdNMo7IvALFIU 8Ieaq17wFDhrotmJdv3ULRiqDEq6LkKGNnAlLOgf/fuN9A7gYbVg2/8+lIe9AA5GV8DU pQswmIi341NbXpV0syByAzUy3IE4ZUFlUjonWpRrc79fZCl0DND02ayS8nXF3xD5IPcd OXEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14si10631021eda.104.2019.10.21.17.06.16; Mon, 21 Oct 2019 17:06:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387663AbfJVAFZ (ORCPT + 99 others); Mon, 21 Oct 2019 20:05:25 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38895 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387615AbfJVAFX (ORCPT ); Mon, 21 Oct 2019 20:05:23 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMgwr-0003qU-NK; Tue, 22 Oct 2019 01:18:50 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 332791C03AB; Tue, 22 Oct 2019 01:18:49 +0200 (CEST) Date: Mon, 21 Oct 2019 23:18:48 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] libperf: Do not export perf_evsel__init()/perf_evlist__init() Cc: Jiri Olsa , Alexander Shishkin , Alexey Budankov , Andi Kleen , Jin Yao , Michael Petlan , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191017105918.20873-10-jolsa@kernel.org> References: <20191017105918.20873-10-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <157169992878.29376.3893401323194986329.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: c27feefea10aed40e82cd5c6b06a154e141dc038 Gitweb: https://git.kernel.org/tip/c27feefea10aed40e82cd5c6b06a154e141dc038 Author: Jiri Olsa AuthorDate: Thu, 17 Oct 2019 12:59:17 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Sat, 19 Oct 2019 15:35:01 -03:00 libperf: Do not export perf_evsel__init()/perf_evlist__init() There's no point in exporting perf_evsel__init()/perf_evlist__init(), it's called from perf_evsel__new()/perf_evlist__new() respectively. It's used only from perf where perf_evsel()/perf_evlist() is embedded perf's evsel/evlist. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jin Yao Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lore.kernel.org/lkml/20191017105918.20873-10-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/internal/evlist.h | 1 + tools/perf/lib/include/internal/evsel.h | 1 + tools/perf/lib/include/perf/evlist.h | 1 - tools/perf/lib/include/perf/evsel.h | 2 -- tools/perf/lib/libperf.map | 2 -- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/perf/lib/include/internal/evlist.h b/tools/perf/lib/include/internal/evlist.h index 20d90e2..a2fbccf 100644 --- a/tools/perf/lib/include/internal/evlist.h +++ b/tools/perf/lib/include/internal/evlist.h @@ -50,6 +50,7 @@ int perf_evlist__mmap_ops(struct perf_evlist *evlist, struct perf_evlist_mmap_ops *ops, struct perf_mmap_param *mp); +void perf_evlist__init(struct perf_evlist *evlist); void perf_evlist__exit(struct perf_evlist *evlist); /** diff --git a/tools/perf/lib/include/internal/evsel.h b/tools/perf/lib/include/internal/evsel.h index a69b829..1ffd083 100644 --- a/tools/perf/lib/include/internal/evsel.h +++ b/tools/perf/lib/include/internal/evsel.h @@ -50,6 +50,7 @@ struct perf_evsel { bool system_wide; }; +void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr); int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); void perf_evsel__close_fd(struct perf_evsel *evsel); void perf_evsel__free_fd(struct perf_evsel *evsel); diff --git a/tools/perf/lib/include/perf/evlist.h b/tools/perf/lib/include/perf/evlist.h index 8c4b3c2..0a7479d 100644 --- a/tools/perf/lib/include/perf/evlist.h +++ b/tools/perf/lib/include/perf/evlist.h @@ -10,7 +10,6 @@ struct perf_evsel; struct perf_cpu_map; struct perf_thread_map; -LIBPERF_API void perf_evlist__init(struct perf_evlist *evlist); LIBPERF_API void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *evsel); LIBPERF_API void perf_evlist__remove(struct perf_evlist *evlist, diff --git a/tools/perf/lib/include/perf/evsel.h b/tools/perf/lib/include/perf/evsel.h index 4388667..557f581 100644 --- a/tools/perf/lib/include/perf/evsel.h +++ b/tools/perf/lib/include/perf/evsel.h @@ -21,8 +21,6 @@ struct perf_counts_values { }; }; -LIBPERF_API void perf_evsel__init(struct perf_evsel *evsel, - struct perf_event_attr *attr); LIBPERF_API struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr); LIBPERF_API void perf_evsel__delete(struct perf_evsel *evsel); LIBPERF_API int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, diff --git a/tools/perf/lib/libperf.map b/tools/perf/lib/libperf.map index 8be02af..7be1af8 100644 --- a/tools/perf/lib/libperf.map +++ b/tools/perf/lib/libperf.map @@ -21,7 +21,6 @@ LIBPERF_0.0.1 { perf_evsel__delete; perf_evsel__enable; perf_evsel__disable; - perf_evsel__init; perf_evsel__open; perf_evsel__close; perf_evsel__read; @@ -34,7 +33,6 @@ LIBPERF_0.0.1 { perf_evlist__close; perf_evlist__enable; perf_evlist__disable; - perf_evlist__init; perf_evlist__add; perf_evlist__remove; perf_evlist__next;