Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3665124ybt; Tue, 23 Jun 2020 07:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr9XCA8t8MTXMhDunjCddtcC1KXisitYpMny7/YaEQtFIKOZaUtW7RMHfBgVdik3Wksmuy X-Received: by 2002:a17:906:ca0e:: with SMTP id jt14mr20096519ejb.325.1592924201873; Tue, 23 Jun 2020 07:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592924201; cv=none; d=google.com; s=arc-20160816; b=JmzFaajdgrIkZGBHaGqs0Rs7WBWQfbLXHvJtoBubgusthpPF/AX72jYb5AFVljsEIv QRQ6FOPk151MrEpb5UhREFs+z/tw5T/5pymkZC4NinQN6Vd6BlkZjUFt+PMk/eY64uHZ NF+3DmhaN3SbIZf4cVHh6qVwr+g0o4BeRCYI0/iTDvQQ+fLsfgJByjKLXoc3+rmaHH6B ArngI7ZAcatD4lk0/gRtXyid2W2EXVTu+T2w0rQyW0HSvrsJiSv2QfrIyEc2yZHkyP+2 5eKLWY0HmzOJNDmh7QIR/cxCGzeKF7DCzj/qIfRh7GJ1owd7c2fM2wvBH4LNcYFQuhLE gXVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=r4WyJrfnr1+Z90d/MDctL9zYqmch/HvJOz6hkV6nDGU=; b=PGqVZsjDC5ixNe0Rdh0DmTJuhgQkTYmjavExz/yyR37ay1li7yZSoaAnBTVhvPfkKb ptVKasCfme73Wo35XiRuvU94//y+hI05RLtbbLwPN7GejGNMQOJj37g59s9wm3yBaz7B YGrFl6/nN4ab/FlY390JO0ywxj1m2z0NJWotvLht4lDI7ELRguysKrrON2lfXt38F5jK uUnaGqV2AR6kkKfX+5r5pB0JrRBBiggzZ+NedRNB0pv/qpaBkw9qiO3BajUBSExkHr98 B9JBZymdWGEwBMouV23w7R6y710esvCxA+UWp8+AWJnIxwnIPYV9U0Rem9XwHgocQLib tiug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cDgi7qo2; 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 bm13si6521602edb.426.2020.06.23.07.56.18; Tue, 23 Jun 2020 07:56:41 -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=cDgi7qo2; 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 S1732891AbgFWOyh (ORCPT + 99 others); Tue, 23 Jun 2020 10:54:37 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:29292 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732821AbgFWOyg (ORCPT ); Tue, 23 Jun 2020 10:54:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592924075; 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=r4WyJrfnr1+Z90d/MDctL9zYqmch/HvJOz6hkV6nDGU=; b=cDgi7qo21s8EY5FgT7LHGbn9ROEKPAYF8XklJPZ1rXkyaVWQDNiAenxQVLo/nItEPJlqCA DwMLdNQ1BSt8VHLqHvmZp5C4Luwp9+I+UN9vC9Bw/IUyqw69hLbyh/HZt4oF3/UPXpipw5 zFdv+aNZPb5Tk22c1NACAjyHrQ90VeA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-sUS_S_IXNZ-Hgti_ZZEhWw-1; Tue, 23 Jun 2020 10:54:31 -0400 X-MC-Unique: sUS_S_IXNZ-Hgti_ZZEhWw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0A3DB1005513; Tue, 23 Jun 2020 14:54:30 +0000 (UTC) Received: from krava (unknown [10.40.192.77]) by smtp.corp.redhat.com (Postfix) with SMTP id CC6DD60CD3; Tue, 23 Jun 2020 14:54:27 +0000 (UTC) Date: Tue, 23 Jun 2020 16:54:26 +0200 From: Jiri Olsa To: Alexey Budankov Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , linux-kernel Subject: Re: [PATCH v7 01/13] tools/libperf: introduce notion of static polled file descriptors Message-ID: <20200623145426.GC2619137@krava> References: <20200608160758.GD1558310@krava> <20200615123048.GB2088119@krava> <8b29e324-eb8d-2266-562b-ca46aec76a3e@linux.intel.com> <20200615165802.GD2088119@krava> <8351b3ee-d345-a394-d687-443f2d2f7ec4@linux.intel.com> <20200622102142.GA2583819@krava> <20200622121120.GA2584593@krava> <99674766-0cb6-7790-3ef6-90cfaf377822@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99674766-0cb6-7790-3ef6-90cfaf377822@linux.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 05:04:21PM +0300, Alexey Budankov wrote: SNIP > >>>>> there might be some loose ends (interface change), but > >>>>> I think this would solve our problems with fdarray > >>>> > >>>> Your first patch accomodated in v8 actually avoids fds typing > >>>> and solves pos (=fdarray__add()) staleness issue with fdarray. > >>> > >>> yea, it was a change meant for discussion (which never happened), > >>> and I considered it to be more a hack than a solution > >>> > >>> I suppose we can live with that for a while, but I'd like to > >>> have clean solution for polling as well > >> > >> I wouldn't treat it as a hack but more as a fix because returned > >> pos is now a part of interface that can be safely used in callers. > >> Can we go with this fix for the patch set? > > > > apart from this one I still have a problem with that stat factoring > > having 1 complicated function deal with both fork and no fork processing, > > which I already commented on, but you ignored ;-) > > Not an issue at all, lets split that func, dispatch_events() I suppose, > as you see it. ok,I checked it one more time and perhaps the function naming was confusing for me.. but maybe we can give it another try, I'm sending some comments thanks, jirka