Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5876599ybi; Sun, 21 Jul 2019 04:29:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1/lVgbbVYfwNZjgiVwdg9PNle/P09qGW4Zu32hm7XNV8fnncKoPPWlxx9E45kl9eyM4pO X-Received: by 2002:a17:90a:350c:: with SMTP id q12mr71108209pjb.46.1563708585765; Sun, 21 Jul 2019 04:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563708585; cv=none; d=google.com; s=arc-20160816; b=EqoyIiTp6qIgkq/3QHDVLocXdFutCY/8d2UBFQ/lS99+jbzUgi44rYNQNN4UY2mW/t Ymm+gR887c/VMHYv1/A3Vg8BIPNs5jDSe+PSniyTZZufHXpwWrEZuwIh6l7M6QLzCx5f YkunzT+uZ6rDHhUoH/klUkQqwBoMucBIOk9TSXONYLlh8QVvp+6tJG24wVd+Wo3w5FQm psC2V0b4ZAvpuw3K4lgh3SuRTUMe/u/foRnk9mUYNDnjdiS/JrafQNNbHJzzopY1HSYr 6BzDboMkqmyPadl8YX+XF37UHm0OynVGXDGxYYMR9orZulGHdZHs3y5Ky2L/kkqs00+w Csuw== 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=Jftpmsfy3SDCw9piCWlbwkcCed4tBzgMmPJTEXmEOh8=; b=PmoALXMMvOHLCIsdFT3FFqqaJb8MKftVkSNRZQzUobiTGGAesL4Uatz1U8AziW6WR5 rsyHgmPwEAp7S4eWDK8higqRmbpNmmG1cIJ9CBFLi/p8YwlKKPQDZcPVtGpc7GH5+mom H+mHgsrqHq6LC6PvuAWwjibhelVGCO2te7JhIOp61hgntUhd2W4XNXnNNCup+Vllkrsv OZmvWTjYTA69KkbKB3xOapg8gRfP7YNz0+1PN05GCh0pTWFuzzHhJv/z95dmtbFv40BR rRQ8arUVgqttHduaVweiAwMwIAG2FiXYUD2q9dccgjiCZA1ERUng0BZELGbJhitiRg8L fVYA== 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 g5si7166460pgn.360.2019.07.21.04.29.29; Sun, 21 Jul 2019 04:29:45 -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 S1726849AbfGUL14 (ORCPT + 99 others); Sun, 21 Jul 2019 07:27:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41782 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbfGUL14 (ORCPT ); Sun, 21 Jul 2019 07:27:56 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 526F6308338F; Sun, 21 Jul 2019 11:27:55 +0000 (UTC) Received: from krava.redhat.com (ovpn-204-23.brq.redhat.com [10.40.204.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 610565D9D3; Sun, 21 Jul 2019 11:27:50 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Andi Kleen , Alexey Budankov , Michael Petlan Subject: [PATCH 20/79] perf tools: Rename perf_evlist__close to evlist__close Date: Sun, 21 Jul 2019 13:24:07 +0200 Message-Id: <20190721112506.12306-21-jolsa@kernel.org> In-Reply-To: <20190721112506.12306-1-jolsa@kernel.org> References: <20190721112506.12306-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Sun, 21 Jul 2019 11:27:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Renaming perf_evlist__close to evlist__close, so we don't have a name clash when we add perf_evlist__close in libperf. Link: http://lkml.kernel.org/n/tip-m1udn077bkmjdmaak6qhqyj6@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-kvm.c | 2 +- tools/perf/builtin-stat.c | 4 ++-- tools/perf/util/evlist.c | 6 +++--- tools/perf/util/evlist.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 85604d117558..6a0573a9c16b 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c @@ -1058,7 +1058,7 @@ static int kvm_live_open_events(struct perf_kvm_stat *kvm) if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages) < 0) { ui__error("Failed to mmap the events: %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); - perf_evlist__close(evlist); + evlist__close(evlist); goto out; } diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index d28d4d71d9b7..bdfe138f7aed 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -613,7 +613,7 @@ static int __run_perf_stat(int argc, const char **argv, int run_idx) * later the evsel_list will be closed after. */ if (!STAT_RECORD) - perf_evlist__close(evsel_list); + evlist__close(evsel_list); return WEXITSTATUS(status); } @@ -2003,7 +2003,7 @@ int cmd_stat(int argc, const char **argv) perf_session__write_header(perf_stat.session, evsel_list, fd, true); } - perf_evlist__close(evsel_list); + evlist__close(evsel_list); perf_session__delete(perf_stat.session); } diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 7d44e05dfaa4..67c288f467f6 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -140,7 +140,7 @@ void evlist__delete(struct evlist *evlist) return; perf_evlist__munmap(evlist); - perf_evlist__close(evlist); + evlist__close(evlist); cpu_map__put(evlist->cpus); thread_map__put(evlist->threads); evlist->cpus = NULL; @@ -1348,7 +1348,7 @@ void perf_evlist__set_selected(struct evlist *evlist, evlist->selected = evsel; } -void perf_evlist__close(struct evlist *evlist) +void evlist__close(struct evlist *evlist) { struct evsel *evsel; @@ -1412,7 +1412,7 @@ int evlist__open(struct evlist *evlist) return 0; out_err: - perf_evlist__close(evlist); + evlist__close(evlist); errno = -err; return err; } diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index f4b3152c879e..47e9d26b6774 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h @@ -147,7 +147,7 @@ void perf_evlist__toggle_bkw_mmap(struct evlist *evlist, enum bkw_mmap_state sta void perf_evlist__mmap_consume(struct evlist *evlist, int idx); int evlist__open(struct evlist *evlist); -void perf_evlist__close(struct evlist *evlist); +void evlist__close(struct evlist *evlist); struct callchain_param; -- 2.21.0