Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5876989ybi; Sun, 21 Jul 2019 04:30:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGRm0I7bGxKhHc+Wzw05QCua1lnUtSKHEGQAAFYOm4SMOx4l6XqN43HzpuWFG+NOEB4acM X-Received: by 2002:a17:902:6b07:: with SMTP id o7mr67790813plk.180.1563708613198; Sun, 21 Jul 2019 04:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563708613; cv=none; d=google.com; s=arc-20160816; b=PbAilOrEfjJNgLleiHVQ/skwCSDRNZJrm6FfYH0pIrhQ7UU7zHf3gtoo84PPdUh2Qw hGwL3mUrLRmI5EzczyCOK2kkhfimxKxEdQLCd00jIEwlpsiaNWXWJC6+svfStjgCnEi7 BMiOLJyWdO8QCiu2TsjuRftx/6DeAwPFrBPFfrB0tnONGyBYPr+ecoLSgCJg8sSCtuml MtoJUrxiZHQF/zddjzVPcCx2Q0jQSIptwa0VxoDxgdlpHsdzfYqx47H5r5lCBQf7InQy 7l84QsAUMqcXTFXzNjBhzIipRAi/yPZ6odQo5ybVU+UKskCsQbfWTIoVHRFYsYVQb+fU xaBg== 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=ECRu6NiIohezGQvGF07c+Q7Sf3oJzRl19PbW4lDwBMw=; b=fEqMDN05dVqfPxqJKQe4DN2SaDM3ocwzW+w2pGKDXxPzcAit4gWprhagmjVEN77cd4 +m+iLy8uwmggnzh+VTGR9d18+dpJp3/Kf+ZOiioST1NJ9UD3CFVyxtJW6AyYnwx8vMCD 8k1kh1FjYBa0tYfQYQ8XKVG2jbVMY9rtuXAdaXjvRydIBM/z3Ius11mo5gzbo/+hZhdu 6ztC9TyM9d/K8jBUmRLBr5HUp962a6n0/qTI8Pg0xFqzz73B60udtbu2rur1z/zeVMXM OODNH5KOigXSV3+uQUl6ibfz+Fs+kVlzEKaPsxslUgkkB/gnMqZSnO11m26gfpxcDFON Jg1g== 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 s19si7434828pgs.106.2019.07.21.04.29.57; Sun, 21 Jul 2019 04:30:13 -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 S1726816AbfGUL1o (ORCPT + 99 others); Sun, 21 Jul 2019 07:27:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55852 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbfGUL1o (ORCPT ); Sun, 21 Jul 2019 07:27:44 -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 B083130821A0; Sun, 21 Jul 2019 11:27:43 +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 B4E7B13AD1; Sun, 21 Jul 2019 11:27:39 +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 18/79] perf tools: Rename perf_evsel__cpus to evsel__cpus Date: Sun, 21 Jul 2019 13:24:05 +0200 Message-Id: <20190721112506.12306-19-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.47]); Sun, 21 Jul 2019 11:27:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Renaming perf_evsel__cpus to evsel__cpus, so we don't have a name clash when we add perf_evsel__cpus in libperf. Link: http://lkml.kernel.org/n/tip-3udl12g7x61nlxgasskccmae@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.h | 4 ++-- tools/perf/util/stat-display.c | 6 +++--- tools/perf/util/stat.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 35f7e7ff3c5e..5fec1ca64f58 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -197,14 +197,14 @@ struct target; struct thread_map; struct record_opts; -static inline struct perf_cpu_map *perf_evsel__cpus(struct evsel *evsel) +static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) { return evsel->cpus; } static inline int perf_evsel__nr_cpus(struct evsel *evsel) { - return perf_evsel__cpus(evsel)->nr; + return evsel__cpus(evsel)->nr; } void perf_counts_values__scale(struct perf_counts_values *count, diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c index cdfceb5b4d72..f7666d2e6e0c 100644 --- a/tools/perf/util/stat-display.c +++ b/tools/perf/util/stat-display.c @@ -109,7 +109,7 @@ static void aggr_printout(struct perf_stat_config *config, } else { fprintf(config->output, "CPU%*d%s ", config->csv_output ? 0 : -5, - perf_evsel__cpus(evsel)->map[id], + evsel__cpus(evsel)->map[id], config->csv_sep); } break; @@ -325,7 +325,7 @@ static int first_shadow_cpu(struct perf_stat_config *config, return 0; for (i = 0; i < perf_evsel__nr_cpus(evsel); i++) { - int cpu2 = perf_evsel__cpus(evsel)->map[i]; + int cpu2 = evsel__cpus(evsel)->map[i]; if (config->aggr_get_id(config, evlist->cpus, cpu2) == id) return cpu2; @@ -593,7 +593,7 @@ static void aggr_cb(struct perf_stat_config *config, for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { struct perf_counts_values *counts; - s2 = config->aggr_get_id(config, perf_evsel__cpus(counter), cpu); + s2 = config->aggr_get_id(config, evsel__cpus(counter), cpu); if (s2 != ad->id) continue; if (first) diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index efd934ec02c3..63f7815ceb4f 100644 --- a/tools/perf/util/stat.c +++ b/tools/perf/util/stat.c @@ -215,7 +215,7 @@ static int check_per_pkg(struct evsel *counter, struct perf_counts_values *vals, int cpu, bool *skip) { unsigned long *mask = counter->per_pkg_mask; - struct perf_cpu_map *cpus = perf_evsel__cpus(counter); + struct perf_cpu_map *cpus = evsel__cpus(counter); int s; *skip = false; @@ -483,7 +483,7 @@ int create_perf_stat_counter(struct evsel *evsel, } if (target__has_cpu(target) && !target__has_per_thread(target)) - return perf_evsel__open_per_cpu(evsel, perf_evsel__cpus(evsel)); + return perf_evsel__open_per_cpu(evsel, evsel__cpus(evsel)); return perf_evsel__open_per_thread(evsel, evsel->threads); } -- 2.21.0