Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5650124pxv; Wed, 7 Jul 2021 08:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLMSxXos+ALWOOHKUAFPJHmGoAgEcxvi4jzXWTsQDzCQIAYaVgENjITAvN/dmDiFphsIkP X-Received: by 2002:a05:6402:220e:: with SMTP id cq14mr30440032edb.140.1625672226096; Wed, 07 Jul 2021 08:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625672226; cv=none; d=google.com; s=arc-20160816; b=ZgrzA7ug9u4j1AEQ+JBBYQPGOIWT6DF75Zjamh8fgB46H/juI6TSBAdHnkNaDzvU81 LSE7ND5uq9BxGUC1XIYF4fnp10AqTnPFULupO30KoQFGkvPoFA9O9YLTmRlZSSivnLkW yzFw+D/LMKW34ZzBnmphR+d5JF4+8MNmqweOmibhaQYAwBjd0FTsI/Vcn9rHqJquqH6k E7woS7+QjGAE1z03INNkkF2q1G8UReVlzSb/1JhXNVJHl4CGudznOUm8fU0y0wKm3y7s f5xso7bTpw8LkQJezwVsz3jmchaawulvpBllt2zKseC1P5AfJzBKKhkxGg+UOuL3WG7g JarA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zVGBmf+R23DDlM+Q8x7PGLJZiDJEyfDfgjsbPlkBufY=; b=z2xaNA0gJvjrUts28Nk83XA5Yw+m0VGRx4tm0tPcd73DJlay74MTcK8l5gtrN9mYuG MIn/Zq8iDI5+hHIE+rLOZnX8Jp3kaeTeBt725gxK9DSZ4B3CPODTyCuFsm+HSbrl0tfq FoTyk8kM8jM9LivF4zuUJ3ntQw4ACvjnpp05onXjJjZWnLFt2znuXHWYfFajclI8RLGI B/26yZPdYFE0ClBtTIaKAhV2BQJbxL2fbvzwwOox8KTP7Sdx5eYDF3ruW/dv3alDEawm ruK/93HIGSnfGgQrQUH/GP7YhC8WrL0s9WXHG4NpsHYjWaWQDJlzhDRF+nh2RvjyWQUh l6Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FU4ipSKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si17616404ejb.570.2021.07.07.08.36.42; Wed, 07 Jul 2021 08:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FU4ipSKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232218AbhGGO7X (ORCPT + 99 others); Wed, 7 Jul 2021 10:59:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:60284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232111AbhGGO7K (ORCPT ); Wed, 7 Jul 2021 10:59:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55AE561CC0; Wed, 7 Jul 2021 14:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625669610; bh=pCKlkTHOpu5ebAsad4ORFKOze2QVQFXuuEFQrZdGe8o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FU4ipSKNRH60SWnpFhgXJuv88QAf0pZjUxvaMp3NJ4s+8CfPWHk0PUrNbEGiK3I/E C77Vt3WW+pVGeqyZi5XxwDar10f2xh9kkal/Q+5djrfvtrXVX7GF0s4xiFcL3u/NIb xiAP4WGOkYypX2VvTQ/rraviB9OVFirt3itZ6lPsbwHdzNZ4vwLb0oIBgbs4lt/ChA QvQdYM4bX9ptMeFEB4T9S2Fyl8hT7zHAE2d+beAFqLLu+jqBLFdSORaRPQ0QtQFFhc 3hlkNqJY/G4CZw7326I5ojU6ikPgXY7ztJAla6XoGygmLicH/XZ+o3EUylTY36u0RY iB9X0XsIb4cQQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 60BFD40B1A; Wed, 7 Jul 2021 11:53:27 -0300 (-03) Date: Wed, 7 Jul 2021 11:53:27 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , nakamura.shun@fujitsu.com, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 3/7] libperf: Move leader to perf_evsel::leader Message-ID: References: <20210706151704.73662-1-jolsa@kernel.org> <20210706151704.73662-4-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210706151704.73662-4-jolsa@kernel.org> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jul 06, 2021 at 05:17:00PM +0200, Jiri Olsa escreveu: > Moving evsel::leader to perf_evsel::leader, so we can move > the group interface to libperf. I also had to apply this, because you didn't build with BUILD_BPF_SKEL=1, right? diff --git a/tools/perf/util/bpf_counter.c b/tools/perf/util/bpf_counter.c index 1d0b9742f7271966..8150e03367bbafad 100644 --- a/tools/perf/util/bpf_counter.c +++ b/tools/perf/util/bpf_counter.c @@ -353,7 +353,7 @@ static int bperf_check_target(struct evsel *evsel, enum bperf_filter_type *filter_type, __u32 *filter_entry_cnt) { - if (evsel->leader->core.nr_members > 1) { + if (evsel->core.leader->nr_members > 1) { pr_err("bpf managed perf events do not yet support groups.\n"); return -1; }