Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4967534ybi; Tue, 30 Jul 2019 11:18:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWr4x0zFY6SAdZ4bW9H2hgXjZt4I8uNSK+5PKZDXt0GLBokIml+P/Yj2BpQ+cV7QQoy0eA X-Received: by 2002:aa7:8a99:: with SMTP id a25mr43469900pfc.127.1564510694292; Tue, 30 Jul 2019 11:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564510694; cv=none; d=google.com; s=arc-20160816; b=xcuER30kDegrg4dxkmhznpokjalnnjr6613h9uITjp6tbrcHr2XwibBJItwP68IcPJ buboYA+RS6CrSb06jk8IX8GjTQWzEQQGrcvR3n8O6GVVkABVB6CXpywpIMdo3qQz3bcQ PE1A57NZw+6bag/XDV4GxaeTgVdWK8wljQD4/KHzrfRQ4CA4tn9raA+5WJVuMO1rcP9N nQiF+H7HSm2kPmcQ8eJdadmPXR+LxEQqqbZPTe3MGojzFRuhuJaTwcQbn7iSfAFs79ul uoluGF7T0d12FVrGm2pn7dYJZG4O73j/ijNwjkg+iCG+0OdP1aK/zK1abWOkpxjuNdQr FNFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=tfk6NxHdKb2Big0TlwsrgGKV555HRIFH3DpMa/M042E=; b=kCkYvuBkAWvsMY7qaNIyjz+sj3hldZWWzgd4xFG+1/wxN3ZS7UDsTy88NVoUc1MS+z NB4Lln60agwrqXzgIg9wDvNX9deWU8qO2S3Kwts6I/6bIOQ4d6zAj0jiss7hEPcqkO4q xfQT+7hLYQaZQ7tkT26vPm1HCrGgiJqV81psrR49g7Ru4Li4XsMYpC1JHhAAjJN1uaLB Tu+8OHyvkC3Kyoz6k4qgvdk9P4PDAUunM9qZw98w3iuTe+LYzEqZ7i/t4zBvO7+DMnIy 3jBsa/NPQf6tMuazLjTQOfz9uIZ33YQJa/u2/b+EEyArii0ldK0kGpndBAzlU8+5+41O 5isw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019071901 header.b=MSGDSldp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si29304480plp.96.2019.07.30.11.17.58; Tue, 30 Jul 2019 11:18:14 -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; dkim=pass header.i=@zytor.com header.s=2019071901 header.b=MSGDSldp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727797AbfG3SLc (ORCPT + 99 others); Tue, 30 Jul 2019 14:11:32 -0400 Received: from terminus.zytor.com ([198.137.202.136]:58209 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfG3SLc (ORCPT ); Tue, 30 Jul 2019 14:11:32 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x6UIBKll3325304 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 30 Jul 2019 11:11:20 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x6UIBKll3325304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1564510281; bh=tfk6NxHdKb2Big0TlwsrgGKV555HRIFH3DpMa/M042E=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=MSGDSldppWUc66o3Xii7uKknm0VzOLSqUeMp4MatNPTO2Rs0L5hJq1tDv1xQVO5ej zxWwDgMkcFe2vRYRC1hS5eiPNbJN3lWTUNQF3n4hKMYIfwUZce/e7E9db+qLuGlNQC sHo4QjblFu55LzwBLhOm8KX0XIQGCGaIiaWl/OGZ1UobpKM6exRPzZY9hbCuT3FwkQ 5lj31BM13B7d4IimiB/Z12//oHMbJGzRLhMEaNviVOr09EKkVsi/T5j7wFunCFBu25 LPNQLgP3cXIhQs6DhO93xKtByR67agCSNpD0QZSsIYrIBlpKQ4hhb53qBuzN0XTNz9 aSpLqoypZRrHA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x6UIBJlW3325293; Tue, 30 Jul 2019 11:11:19 -0700 Date: Tue, 30 Jul 2019 11:11:19 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jiri Olsa Message-ID: Cc: alexey.budankov@linux.intel.com, mpetlan@redhat.com, hpa@zytor.com, acme@redhat.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, ak@linux.intel.com, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org Reply-To: tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, ak@linux.intel.com, namhyung@kernel.org, jolsa@kernel.org, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, acme@redhat.com, alexey.budankov@linux.intel.com, mpetlan@redhat.com In-Reply-To: <20190721112506.12306-7-jolsa@kernel.org> References: <20190721112506.12306-7-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf evsel: Rename perf_evsel__init() to evsel__init() Git-Commit-ID: b4b62ee688eb39151c9d8182c3e2f12c9d34602d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b4b62ee688eb39151c9d8182c3e2f12c9d34602d Gitweb: https://git.kernel.org/tip/b4b62ee688eb39151c9d8182c3e2f12c9d34602d Author: Jiri Olsa AuthorDate: Sun, 21 Jul 2019 13:23:53 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 29 Jul 2019 18:34:42 -0300 perf evsel: Rename perf_evsel__init() to evsel__init() Rename perf_evsel__init() to evsel__init(), so we don't have a name clash when we add perf_evsel__init() in libperf. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190721112506.12306-7-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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; }