Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2671796pxj; Mon, 14 Jun 2021 04:35:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybHe4iVj7KtXfdYrEMcAkknBcWlYCFZuQOBNoXytvzOHsjOTI6qWHc6W9n9qpCG+ZEJbe4 X-Received: by 2002:a05:6402:22fa:: with SMTP id dn26mr16103476edb.230.1623670520389; Mon, 14 Jun 2021 04:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623670520; cv=none; d=google.com; s=arc-20160816; b=TqOO214AvPu2cZy5igp7pNyNDpBsX2w9aI/VxuGKGH5b5vUbcLqPNahI7ETU2cyelA DbvKkuif7CmwZpp6Shb28idqePSCZbqz8UzhJUM3HwobMIH3shZ1//damE6jjHjPNTV4 AKRp9uraIa0kY/Yft7HC7vsZa1U+Nx+EJlBVPgG4pSRYsZE4qKVL9wXXO2V8Pc0O0mzb zyhfoPkRZUvRcuf72TUdNZdiCGaHJAiqv1DkGAsJOGNaGYn7UNBYngOWTVTXd2OTzncn VMiyQbShRua1ezLPySCphGkkGiaRD4JwbNz6/zDKY/ql+73ZiXw0PW7ze08yQb3tkF+1 2hDg== 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=mW1OhhDo4BbGrvSu5PYyNkiZcO4Nso/XH9TpPHO3tX8=; b=h1aMX68FlAO34XqY3qcPPzgjmrwY0wVHopNSlOLrHXNWKBQRKb0GLUK8t0kl5N0EG0 Ard2Wzf0zV1QCmrJJTUliq0+NC8ESTyNJzB59waXUXFdv0AXhNBNTGXj87ZjFs7tFaLY +MB9x3fMq5EGqBulFtfe+qA2FNLKNtzXQgSMcrGADSoTm8D7+5xh5PFqEjNHFRCpfD6e SCh5D9vKm+mdn5sjbAQ6aCp3KJNIiH9sHQRbzAoAW2mdFrHWb6DCuBrYUU2CvE2JJCoM XmY3EF4+KczOJkEBqza7411DjtcttTBtgTnbBAsUKJueD/ZseYnsqxeEd9QOK5IFG+Ii OUDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RK8D9LTf; 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 29si1311896ejf.481.2021.06.14.04.34.57; Mon, 14 Jun 2021 04:35:20 -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=RK8D9LTf; 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 S236499AbhFNLdX (ORCPT + 99 others); Mon, 14 Jun 2021 07:33:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52795 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235725AbhFNLTU (ORCPT ); Mon, 14 Jun 2021 07:19:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623669436; 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=mW1OhhDo4BbGrvSu5PYyNkiZcO4Nso/XH9TpPHO3tX8=; b=RK8D9LTf5CY/pQrCwLVXpsHWsDjHYLFLdV1LSK6to1kvgIKI/4dFJcQz73PT4dJkYwZw44 aG4rdLgo98nu11fPE4b4Gp2zHF8DyWYCdcTtOZ2usRBZ9gUfiZanY83jyFSlCZEr0qwrwY e9GUTAEInXHKmRmKEM+SoqDAO4+nb+c= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-214-ec5Ex6nHPiy7ePk0BMn3zg-1; Mon, 14 Jun 2021 07:17:14 -0400 X-MC-Unique: ec5Ex6nHPiy7ePk0BMn3zg-1 Received: by mail-ej1-f72.google.com with SMTP id q7-20020a1709063607b02903f57f85ac45so2901658ejb.15 for ; Mon, 14 Jun 2021 04:17:14 -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=mW1OhhDo4BbGrvSu5PYyNkiZcO4Nso/XH9TpPHO3tX8=; b=OvYYiZU0weRm/IhnFxCbwu6fmCt3pWNnkBh6GHtln9uJ8byS86vtS03pM4hc5BjWKM lstLOx7DQzKkKTiOXRj3nC0QTMX25JPqrZQF4jnE35bVCTvQEbKwG+hu2CR6W2C2iUgG qnbIeVm+McTBGuM9nIBJN5y91ex/+JJMCrzRX4hxIhEiVWJI/pSZ4ri/U0u2iOInkT2H PlE8EZudziqunkK6m6jZDlSH6tSlAb3r2qWkmWDRfCHfZv9BjAmyobmVu7Zx2a26fTJH xYXN+c+LMB6X4r7MmFw/fX0207nMuWlu8C4vlBfD0soB94RKoUOBEQR+F8iixFjf++Dw 6XCQ== X-Gm-Message-State: AOAM533WmqgzLM6qVT7edj/Xs+Lg9RmJapne2JaflZpAMy1SoHaioRDs du+DmjWhfTiQOwy1LKu9mCY/uS9gupffAP9Hnc7N1bO1B63iEf+JPISyO+aDqzJ5gr8LycrE8hm jtyIyIj751tpBDHxh3Q5Hcx9Z X-Received: by 2002:a17:906:b74a:: with SMTP id fx10mr14622063ejb.248.1623669433806; Mon, 14 Jun 2021 04:17:13 -0700 (PDT) X-Received: by 2002:a17:906:b74a:: with SMTP id fx10mr14622049ejb.248.1623669433667; Mon, 14 Jun 2021 04:17:13 -0700 (PDT) Received: from krava ([83.240.60.126]) by smtp.gmail.com with ESMTPSA id y20sm3602394ejm.44.2021.06.14.04.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 04:17:09 -0700 (PDT) Date: Mon, 14 Jun 2021 13:17:08 +0200 From: Jiri Olsa To: "nakamura.shun@fujitsu.com" Cc: "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "namhyung@kernel.org" , "linux-perf-users@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: libperf : Can not create event group Message-ID: References: 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 Mon, Jun 14, 2021 at 07:17:53AM +0000, nakamura.shun@fujitsu.com wrote: > Hello. > > perf_evsel__open cannot create an event group because it set group_fd > to -1 when it ran perf_event_open. > Is there any reason why group_fd is fixed at -1? hi, there'no leader link on this level yet (in struct evsel) so this is not implemented at the moment jirka > > Best Regards > Shunsuke