Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5492036ybp; Mon, 14 Oct 2019 23:52:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNq75BQkTSe2NJWOIzh7W8SwXY+sy4J1fq64qZH7RDGcf1E7fZrFV1jekT0r0Ik8qLMa11 X-Received: by 2002:aa7:d3d3:: with SMTP id o19mr31163379edr.230.1571122342149; Mon, 14 Oct 2019 23:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571122342; cv=none; d=google.com; s=arc-20160816; b=M2KlBTku4S5zQoWdYCf6/VvrEEApavGrGDx90dE0hyWwjvYcs42mzJ+uNE9vlIORGu ZvBgf3uaCCkJ4fhvVcrqgnYxgmu5TOKS47pjYtIyG58KrMuewFYARmKqZ5f0OdQiiE6F ttT0upWuw7oC1uS0uW9mohzib/5zOhG/nKwJHyRGoBkEUec/CUm+IDeZ+AUZqgiXGHnR bfZxUkTX+a11j07dRqHoQVxbqryIVOcV0GMe1FCXCua8wN8KfDKScU2+5Dl9vgQxb/tN ueHb23IsmAvL6WD2TYi41O5nNefIGrnho/XHGmtZlnHdW4imuaLydDu+27+/x9UGU+Us ME8Q== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=8XGwG2j9luXVd1LnJ3u9YpUDntLCe9sLuo9XLR8GBk8=; b=AchPto7y8c4pfLqG+DUxxHrcjSiztCVKh0ynhrTr81WlRqUEHWqt/tV9szbBCsCH1D ZtBm1p8cRcBZ1HKI1U+jlItifsOnGEB69egzStML5eMfMdc18hjdFgH4onW6RHbM6FV5 kbi5jXO3dEvZD1cQcFRmJkmbTBJZQbIGD/Dr3pLfR01TKemhXHAYYhJ+LBsgzj3cZs7t HLn2MSBpb4WjIqYMj7gHhgDRq/XHp1zp7E0AqPeQQ9DLJx3r8HDHd1X+euDGsk+txP4o DIkaTNTcZxjCzsuEjMsBoyPtTCliG+aLe5IVXfbpYA2T2Ecf1WQmR1xf61NoKAQXcsIq ElPw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si14377742edb.141.2019.10.14.23.51.58; Mon, 14 Oct 2019 23:52:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbfJOFiH (ORCPT + 99 others); Tue, 15 Oct 2019 01:38:07 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:41965 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbfJOFb4 (ORCPT ); Tue, 15 Oct 2019 01:31:56 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iKFQn-0008SM-A7; Tue, 15 Oct 2019 07:31:37 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 0663C1C0450; Tue, 15 Oct 2019 07:31:37 +0200 (CEST) Date: Tue, 15 Oct 2019 05:31:36 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf evlist: Introduce perf_evlist__mmap_cb_mmap() Cc: Jiri Olsa , Alexander Shishkin , Michael Petlan , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191007125344.14268-21-jolsa@kernel.org> References: <20191007125344.14268-21-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <157111749695.12254.10243108863919611819.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: b80132b12a78ec71de2b3320cc49d4a0b2cd7c46 Gitweb: https://git.kernel.org/tip/b80132b12a78ec71de2b3320cc49d4a0b2cd7c46 Author: Jiri Olsa AuthorDate: Mon, 07 Oct 2019 14:53:28 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 10 Oct 2019 12:44:59 -03:00 perf evlist: Introduce perf_evlist__mmap_cb_mmap() Add the perf_evlist__mmap_cb_mmap() function to call perf specific mmap__mmap() function during perf_evlist__mmap_ops() call. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/20191007125344.14268-21-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/evlist.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index f50ee5c..d57b684 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -773,6 +773,16 @@ perf_evlist__mmap_cb_get(struct perf_evlist *_evlist, bool overwrite, int idx) return &maps[idx].core; } +static int +perf_evlist__mmap_cb_mmap(struct perf_mmap *_map, struct perf_mmap_param *_mp, + int output, int cpu) +{ + struct mmap *map = container_of(_map, struct mmap, core); + struct mmap_params *mp = container_of(_mp, struct mmap_params, core); + + return mmap__mmap(map, mp, output, cpu); +} + static int evlist__mmap_per_cpu(struct evlist *evlist, struct mmap_params *mp) { @@ -970,8 +980,9 @@ int evlist__mmap_ex(struct evlist *evlist, unsigned int pages, .comp_level = comp_level }; struct perf_evlist_mmap_ops ops __maybe_unused = { - .idx = perf_evlist__mmap_cb_idx, - .get = perf_evlist__mmap_cb_get, + .idx = perf_evlist__mmap_cb_idx, + .get = perf_evlist__mmap_cb_get, + .mmap = perf_evlist__mmap_cb_mmap, }; if (!evlist->mmap)