Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1404064ybe; Fri, 13 Sep 2019 16:24:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVINz/xtRgK71++0cqsbK6pwoaETlxpNyIaxq97z6YtnauOwPTW41QzJ5sdLMHzqn8g96h X-Received: by 2002:a17:906:1903:: with SMTP id a3mr40794606eje.112.1568417059344; Fri, 13 Sep 2019 16:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568417059; cv=none; d=google.com; s=arc-20160816; b=zojUBg0Wo4MYeDiiCmM0R4IFANDYrOxV1oeH+iMMQseRJQMOL/50+JukrU956jxhtQ 6WzIK9n9W4oQswaTDOgSRspPR8j1TnHh30Cp4AJVz/nRuuPS833/aq+6ptxqqaUgoA07 Fvx0OTFwnnPnyjpdOYWq8dc6iMQl56clLaZF2ypd+BZaqSsGY9+1hUJALvsG7wGYW3RA I0yicWcIk7/XmCTbNsjH6EypJCTJOQMW5cGbTreHXuqxZA7+Ve8OXBTPjqJ/WBH1nbe3 LipIVIfOuqYa0Iw5gJqvymOHjVWuRT7lrBb0Fsis8WyaNEFPV3NqKhHbeLxxd/4zJLcD ZX1Q== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=U3qfcXy/KccXpDTNOlFZ4jIMDHHR8P+IzK8g5jjY9Z4=; b=iBOXsdHDnincvtDM75fVZPHTLq0jFfrmdstK6Y8r3PzEAhRU3U0o7GATsq2w2JUzKG RFtvnZR6X1wslU3FZTdD7sY+33tR+rQcsbGnHUSBnTseL/5JTGbqeQDbPxoNVbyPEMlL u0LXw0VgfOElZLyDy8o3Vx/Wbrjw+gIUuXprl4+i45vv4OC9o9q5uOxbnzHJ8ijxc1uY Mzuwd6GxP6lTp4k95Erg9bpvnPmn0p6f8qkqy/rDhOn9HXflXJUFshp2gBdkSx33uvEh IvgZ7iL3BlPc2klNTJ713va4c8nVY1k5EzwUfeAxuk6S2L1GdSNA5oM1zUeyAoy/AHt3 48Mg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g29si18172950edb.13.2019.09.13.16.23.55; Fri, 13 Sep 2019 16:24:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390688AbfIMN1B (ORCPT + 99 others); Fri, 13 Sep 2019 09:27:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49186 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403866AbfIMN0t (ORCPT ); Fri, 13 Sep 2019 09:26:49 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0B6FAA26665; Fri, 13 Sep 2019 13:26:49 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 665B25C1D4; Fri, 13 Sep 2019 13:26:47 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 72/73] libperf: Do not export perf_evsel__init/perf_evlist__init Date: Fri, 13 Sep 2019 15:23:54 +0200 Message-Id: <20190913132355.21634-73-jolsa@kernel.org> In-Reply-To: <20190913132355.21634-1-jolsa@kernel.org> References: <20190913132355.21634-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Fri, 13 Sep 2019 13:26:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no point to export 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. Link: http://lkml.kernel.org/n/tip-k0w3i2vqos0lvnadfm95a8fy@git.kernel.org Signed-off-by: Jiri Olsa --- 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 a5bf13df08dc..63b6bc838854 100644 --- a/tools/perf/lib/include/internal/evlist.h +++ b/tools/perf/lib/include/internal/evlist.h @@ -48,6 +48,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 0ff4811a7f32..1da21325386b 100644 --- a/tools/perf/lib/include/internal/evsel.h +++ b/tools/perf/lib/include/internal/evsel.h @@ -48,6 +48,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 9c3f341dc261..bdd272a2fd47 100644 --- a/tools/perf/lib/include/perf/evlist.h +++ b/tools/perf/lib/include/perf/evlist.h @@ -9,7 +9,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 4388667f265c..557f5815a9c9 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 265188126b08..f4c09b0c5ca0 100644 --- a/tools/perf/lib/libperf.map +++ b/tools/perf/lib/libperf.map @@ -20,7 +20,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; @@ -33,7 +32,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; -- 2.21.0