Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp791650ybe; Fri, 13 Sep 2019 06:27:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJohd7+cpKRPnIwqmS/Ene6MeNsHslYGKcDWjOUL36TW5TQe/Zi42AlGewW759I8DDri33 X-Received: by 2002:a50:9438:: with SMTP id p53mr48161517eda.291.1568381254786; Fri, 13 Sep 2019 06:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568381254; cv=none; d=google.com; s=arc-20160816; b=PSHg0Vr464O/uHzZc0bTpPsc6gmUxQiB5klx80pqMx9VtnH3QhWZCtD84hxQxqbpMC uLSY37ZXgSGEC9ifqt+abgg9K9YDMlFAzCQmNaGRryXyC3g29OgWsPINIVWkRwPwv+rK zPBcxSxoA2jZyT5jTPY73jkGfCd2TzQBp+k1RqirnoCR4sl+vbshUxvc8xbBnpzoGXqi 7WJtgvE1FlldJQorYMKrjFhwx8qnWvcZEICgVbiafB1j8ZnXSyRpTH26vPpgcZTsZry0 ZbBDvfGfaUlLbM+tVhmVLw8XXjlGPCilgIRVQUo08cgYq04uYyhz+lJKdov/ltUPg2QB J2NQ== 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=tZvBoC1jHQXox7sQ29ECUPs9eK6fHnDURL6PSVKvTaY=; b=hPJEig2BjMDpoTlzacw8gL8n2S5jkywxTscXczp5/RAj5Ogh6heOQD1S1BR4NZVQ4B mXEkePNH5PMakIEbbHfM2lqH34VJZD4L9yCCMgQD3BOTTGlHHdkN4HSijhh7ecLWTcjU xInDCAd9nXmHvWaMPL8FCizTgtudDVj4tAM9skVFsLG6nsKMdzmxi6L+5U1iws0QD2/A CbZmgKgaaht60qmV9SfFmDg13fHPddlI/SlZryW2fITZ5PGAKfyQMbawmyvuaUxMpZje NC9ddG3fUhM4wG0O7QBUSoHWFi8rQzUangGHbNyJ81ek3AAaTer9if2s1S90BU39484A yySA== 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 m23si14068764eja.89.2019.09.13.06.27.11; Fri, 13 Sep 2019 06:27:34 -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 S2391121AbfIMNYO (ORCPT + 99 others); Fri, 13 Sep 2019 09:24:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38718 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391115AbfIMNYN (ORCPT ); Fri, 13 Sep 2019 09:24:13 -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 C09AA8AC6FF; Fri, 13 Sep 2019 13:24:12 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3A5065C1D4; Fri, 13 Sep 2019 13:24:10 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 05/73] perf tools: Rename perf_evlist__munmap() to evlist__munmap() Date: Fri, 13 Sep 2019 15:22:47 +0200 Message-Id: <20190913132355.21634-6-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.69]); Fri, 13 Sep 2019 13:24:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename perf_evlist__munmap() to evlist__munmap(), so we don't have a name clash when we add perf_evlist__munmap() in libperf. Link: http://lkml.kernel.org/n/tip-h4rbsk52cvvj0kapg6ugstmj@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/backward-ring-buffer.c | 2 +- tools/perf/util/evlist.c | 12 ++++++------ tools/perf/util/evlist.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/perf/tests/backward-ring-buffer.c b/tools/perf/tests/backward-ring-buffer.c index f1eb7e9c1d7d..3073a68d17b9 100644 --- a/tools/perf/tests/backward-ring-buffer.c +++ b/tools/perf/tests/backward-ring-buffer.c @@ -75,7 +75,7 @@ static int do_test(struct evlist *evlist, int mmap_pages, evlist__disable(evlist); err = count_samples(evlist, sample_count, comm_count); - perf_evlist__munmap(evlist); + evlist__munmap(evlist); return err; } diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 5ca726c15cce..cc11b1a22042 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -149,7 +149,7 @@ void evlist__delete(struct evlist *evlist) if (evlist == NULL) return; - perf_evlist__munmap(evlist); + evlist__munmap(evlist); evlist__close(evlist); perf_cpu_map__put(evlist->core.cpus); perf_thread_map__put(evlist->core.threads); @@ -673,7 +673,7 @@ static int perf_evlist__resume(struct evlist *evlist) return perf_evlist__set_paused(evlist, false); } -static void perf_evlist__munmap_nofree(struct evlist *evlist) +static void evlist__munmap_nofree(struct evlist *evlist) { int i; @@ -686,9 +686,9 @@ static void perf_evlist__munmap_nofree(struct evlist *evlist) perf_mmap__munmap(&evlist->overwrite_mmap[i]); } -void perf_evlist__munmap(struct evlist *evlist) +void evlist__munmap(struct evlist *evlist) { - perf_evlist__munmap_nofree(evlist); + evlist__munmap_nofree(evlist); zfree(&evlist->mmap); zfree(&evlist->overwrite_mmap); } @@ -835,7 +835,7 @@ static int evlist__mmap_per_cpu(struct evlist *evlist, return 0; out_unmap: - perf_evlist__munmap_nofree(evlist); + evlist__munmap_nofree(evlist); return -1; } @@ -861,7 +861,7 @@ static int evlist__mmap_per_thread(struct evlist *evlist, return 0; out_unmap: - perf_evlist__munmap_nofree(evlist); + evlist__munmap_nofree(evlist); return -1; } diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index aaf06182c1b8..f07501602353 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h @@ -175,7 +175,7 @@ int evlist__mmap_ex(struct evlist *evlist, unsigned int pages, bool auxtrace_overwrite, int nr_cblocks, int affinity, int flush, int comp_level); int evlist__mmap(struct evlist *evlist, unsigned int pages); -void perf_evlist__munmap(struct evlist *evlist); +void evlist__munmap(struct evlist *evlist); size_t evlist__mmap_size(unsigned long pages); -- 2.21.0