Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5874927ybi; Sun, 21 Jul 2019 04:27:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZYsASCG1/aK00Q0qPOCqLku+O9j/bC5oiiR9EQsHVZ8dh8zRlySG5T4GO5yT+di3y/Mqp X-Received: by 2002:a65:500a:: with SMTP id f10mr35109001pgo.105.1563708461395; Sun, 21 Jul 2019 04:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563708461; cv=none; d=google.com; s=arc-20160816; b=xWdd7XnMYZxbLbdqke1qu+cBpTZx5dyCJa0LCWKMo2jvxVCY3q2kpFmoYykznN/UWh gIdL206PFoaTCCMjqJEF0cPNh6Uos2TS/H6YliNJ8SmQfQO0gOUiu0FYiU/6xKAF1RPU dTGN0dRLqYprhbSPS9JjX2k02Z5+3R6dOFefyCplXCth3ggkdcHMWlpQEcgGqAn1rKv4 E0TzQUPKhr6j/G5NxOeT+Ixdmuoc15m8US8KrTXbtrEVuPfK2FIGHXtV5ikD9v4ZYQk8 6kRB8LYttNRGp/bbZ8XlI5MsK1jEo12DnVR7rU6Xbsoz/SS+Zazx0EiTqWyW4vyuqNni cUoA== 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=ZNN3b8mLiZ1EQ7+SYzDFx2/Ve2aOdkaYa978C7eO+EA=; b=dhFmMNev9rH/AkRcja/V7cAhDQMdzbOYTmvZ8KccqfBY5vfIKn/Lm+DHeRNdLX1la/ I39VhY9Tw1RtHAmbaKuvtxdH2FO6MfUaOURSUSN0pkZLzBwpljddwxJx2q8AbhmU2eBQ FWN4z9EGgjDs9FpaMwm118zyDsSfjyi3Cq3nxwdyFYvOzqWsCPBS27kXUh86KGxpjiiY k6StW2h97gGh2MVUr8FmKpcgVvEDXrybPB5LfNF2EpQV5miXP95GiaxbqB1/wFxBlaSk 9Yv0/EBAFln9AUPdRB9t4VCTlZAG9xrHb10MZYkKFIB0MdFhYQec0S0ZeYoNtF/QPLFk Lgvg== 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 a13si6372259pgw.81.2019.07.21.04.27.25; Sun, 21 Jul 2019 04:27:41 -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 S1726558AbfGUL0j (ORCPT + 99 others); Sun, 21 Jul 2019 07:26:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41656 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726429AbfGUL0j (ORCPT ); Sun, 21 Jul 2019 07:26:39 -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 1129D30832C8; Sun, 21 Jul 2019 11:26:38 +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 291235D9D3; Sun, 21 Jul 2019 11:26:33 +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 06/79] perf tools: Rename perf_evsel__init to evsel__init Date: Sun, 21 Jul 2019 13:23:53 +0200 Message-Id: <20190721112506.12306-7-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:26:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Renaming perf_evsel__init to evsel__init, so we don't have a name clash when we add perf_evsel__init in libperf. Link: http://lkml.kernel.org/n/tip-ek9h0ywy7egemq42g34l7pii@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.c | 8 ++++---- tools/perf/util/evsel.h | 3 +-- tools/perf/util/python.c | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index f7f97ca6e96d..97bee83f0f98 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -223,8 +223,8 @@ bool perf_evsel__is_function_event(struct evsel *evsel) #undef FUNCTION_EVENT } -void perf_evsel__init(struct evsel *evsel, - struct perf_event_attr *attr, int idx) +void evsel__init(struct evsel *evsel, + struct perf_event_attr *attr, int idx) { evsel->idx = idx; evsel->tracking = !idx; @@ -255,7 +255,7 @@ struct evsel *perf_evsel__new_idx(struct perf_event_attr *attr, int idx) if (!evsel) return NULL; - perf_evsel__init(evsel, attr, idx); + evsel__init(evsel, attr, idx); if (perf_evsel__is_bpf_output(evsel)) { evsel->attr.sample_type |= (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | @@ -350,7 +350,7 @@ struct evsel *perf_evsel__newtp_idx(const char *sys, const char *name, int idx) event_attr_init(&attr); attr.config = evsel->tp_format->id; attr.sample_period = 1; - perf_evsel__init(evsel, &attr, idx); + evsel__init(evsel, &attr, idx); } return evsel; diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 3caabd8a4aa6..af230d92fbef 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -238,8 +238,7 @@ struct evsel *perf_evsel__new_cycles(bool precise); struct tep_event *event_format__new(const char *sys, const char *name); -void perf_evsel__init(struct evsel *evsel, - struct perf_event_attr *attr, int idx); +void evsel__init(struct evsel *evsel, struct perf_event_attr *attr, int idx); void perf_evsel__exit(struct evsel *evsel); void perf_evsel__delete(struct evsel *evsel); diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index ed57b6b5ed91..f6fe3c90828f 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c @@ -782,7 +782,7 @@ static int pyrf_evsel__init(struct pyrf_evsel *pevsel, attr.sample_id_all = sample_id_all; attr.size = sizeof(attr); - perf_evsel__init(&pevsel->evsel, &attr, idx); + evsel__init(&pevsel->evsel, &attr, idx); return 0; } -- 2.21.0