Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5812981pxv; Wed, 7 Jul 2021 12:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK63HbSqPMQazk+VQ/Yj3ioKJ/soK28PNBY4dNRa+tYBXW+Iok6wpLDbmo6UejaVxsc8rN X-Received: by 2002:a17:907:2da4:: with SMTP id gt36mr22031652ejc.455.1625685464767; Wed, 07 Jul 2021 12:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625685464; cv=none; d=google.com; s=arc-20160816; b=osZ22/SJFt6pR5U+NB4fEQkatjrfjFWSHyXlX0SHtOsC7roJO1Ill203YFqLGCwyzQ NX8xs7OuVQKYdgEHjXr872RwjvSQQxTq2x+ok5qK6qx1qUFVwDH3RmA+ISy3V8DpYWlV mE62AK398xPRjJyGYjrgo2h4krgmSt02CeYiWmkjKBW63XsFedAGwkf3HbIiJHVQNutr RB0AS7Pgvpag2Gmce6ZikaSCRb6TDPZH75yKdWalFZUJ6Hh0OapWYesmxdwH3eB0XDfV p+MpzFCP2Ayt6VRZJXd1VGoDUS8dBmhooqysVdC50IRBAjkJ7TMwFdg5rRX8PAcEyXGP VfUg== 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=6rJ11vEGolL0CsQ0bW2KSCPOtjG7fcFPdao2YCIE2kg=; b=ivCwaGJMyjrD/C0jI0fPVleoU32u+Dnb8BomQ/5hXtowY/s/2Hy1ZXLWyi0et2bLlW T6j+qurf5/cIkVe9WQko9u5CYG37+vU2ed8hUQoTtAwAPPyp640Vw59b8EhjDDw1IC4s hJoM3Mi0QVYXFhAoWc3LeMmzUiKo0UTWggMgR+jfG9mFxivhcwe1ZMH4FAqMF0vwvWBU 0Hcx6o61PGPLZcCKd53UWgpps2gJDXmgWRMHpMZThffz8jKdvUoIJ4H31lNM2cGKcan2 rMw+c1FGn41uuhz6sfC1nidqTSD+q7+JmlOg4E6Qx3IEcLUeSoPiTTmBnEsOwMVv5AYS C9+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ey16xfuJ; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si10982772edy.119.2021.07.07.12.17.19; Wed, 07 Jul 2021 12:17:44 -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=@redhat.com header.s=mimecast20190719 header.b=Ey16xfuJ; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbhGGSQx (ORCPT + 99 others); Wed, 7 Jul 2021 14:16:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41985 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhGGSQx (ORCPT ); Wed, 7 Jul 2021 14:16:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625681651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6rJ11vEGolL0CsQ0bW2KSCPOtjG7fcFPdao2YCIE2kg=; b=Ey16xfuJzv7kB1kPPILb6iQ6zP1bzpoArE+HK6I3LM0pms32p6xETXL0Monv5l1DLJ3wZ0 nWjbtf2rRxxRWKUuxWghmDrYTr9bpRPjIgszwCUYSNOxHlPc3NzUDHJbidi2eEahy2LkaJ w01VZWeqbPNF55+1QXSwY3Dfc2Xd5pI= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-lilC36VUOqmBBHysKcoVrA-1; Wed, 07 Jul 2021 14:14:09 -0400 X-MC-Unique: lilC36VUOqmBBHysKcoVrA-1 Received: by mail-wr1-f69.google.com with SMTP id u13-20020a5d6dad0000b029012e76845945so1057680wrs.11 for ; Wed, 07 Jul 2021 11:14:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6rJ11vEGolL0CsQ0bW2KSCPOtjG7fcFPdao2YCIE2kg=; b=n/tElNRUjMcisLi5Xr128Dcw8rXP/zom9jj1XpSi/hfcSPL7J/+JeTuiRqdWNS6w4N keLRtAjnN9OCpz4zFFV6Zv2821gD7yVYiJ03cyfWgNh0wkJYurEAUM6MEpVtRVG5aCfP pRLxXXRKyLvrUDH6Owg+kY/Jcogw3tA1vSSGKGkFZ7d4YsDDEqk2YqKmllobOH89zFVk ay6D92no11hjU3Au2DP8HoduxBjF4HQ3uHLwFkUh0dScOL8K/GCH1zgavhCX9Tsf0z4Q +Zj1oRGMJjw7+36pM6pq0MWA1MJ3aQiR+wZfmt1XkgrkvMnrPaT7TTkgfvgrX/BAfhL2 E9aA== X-Gm-Message-State: AOAM530sPOG5mBCWiIABAoHnjfM8ODQYkSBGONDhS6iGu1xNwBIQUDHi sRc0WCtzaWGfStsL8EuQ2T3m38iSCX+25wPkTUdfNhXEsOf+zsaeiF3dJRa0WcM4exonOmrVPez JB95KAzmr/VftMS15f0/IDNju X-Received: by 2002:a5d:4e4e:: with SMTP id r14mr26491528wrt.251.1625681648411; Wed, 07 Jul 2021 11:14:08 -0700 (PDT) X-Received: by 2002:a5d:4e4e:: with SMTP id r14mr26491488wrt.251.1625681648168; Wed, 07 Jul 2021 11:14:08 -0700 (PDT) Received: from krava ([185.153.78.55]) by smtp.gmail.com with ESMTPSA id p9sm20681891wrx.59.2021.07.07.11.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 11:14:07 -0700 (PDT) Date: Wed, 7 Jul 2021 20:14:04 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 07, 2021 at 11:53:27AM -0300, Arnaldo Carvalho de Melo wrote: > 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? ah right.. I also plan to build in arm/s390/ppc, so I'll take what you have in tmp.perf/core thanks, jirka > > 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; > } >