Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3774383ima; Tue, 23 Oct 2018 11:02:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV62LLVbL/AWnrABd2y5L07Ewxa2l1TiwuEx3In1mJMMcAAHEqs391X5xgBSHA195OdEK63be X-Received: by 2002:a17:902:a717:: with SMTP id w23-v6mr49279456plq.24.1540317770201; Tue, 23 Oct 2018 11:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540317770; cv=none; d=google.com; s=arc-20160816; b=VZksQgro7lZ1/GY3pthoe3trJ+f8Pm5GVih3d3i7Na3MpRSbe9/jwUpyfseWtWugLk ne/DWgcTwvWX9cRK8BHwFTzU2ojUikoNQuLxxLSxHrJc20l2LUNc0MBKTcf+3RK/5OPy kI1/mnh1/Y1/Xhb9dEljKJSaq3UClvmwjLg+evqKUlebgNUkurcQowxTL1fxhuWGcNkL RQHfEUMa1DC7wIayX9QwF4Gly4sMQnNMTViQdoln/nemqlvQPbnQg+v2/+RZawKxyzx7 72scww59umpMG9ZU6bD+nMibUtA1d1FVWvlyUqhsl7SREEgoY6dVYEJGXe32TuV39VbR ss7w== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=w2PMppqkI4RyzVj/A/7BBfDLBqo3b95yXxQfOdvwyCE=; b=hr1k5T1fT8vEZLCL3mZK5pDYd+qhKq94Z+C4ljD8IG4ml+/Xau9oQarUbyaTBP+XcL 4r/U/ycM5MM4JQn71g7sD3UFza5mbB9VYcswRT+SdaEe0LNJQaZ1ekb8FanAuMF1TwP8 WP8/++HMJEcXEnbi1c14fV4cxhRb77csvcPcpyeOKEA9Ku1UJRa2ncOyufWHzxbCk4iy 7SYYTrtFDcstcCp0PrHBrTbjjKeIeZo0EWdtw3NeJgxIGMuX6q40QZBQRB0yjb2KYu4G j1aDe/lGNSARNNv1sH6dUakjHpT8zsfMc+fnIDrO06ET2H+cRvUiTNH89nwcO8kJgMli fKIw== 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 t187-v6si1972998pfd.148.2018.10.23.11.02.33; Tue, 23 Oct 2018 11:02:50 -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 S1728441AbeJXCSe (ORCPT + 99 others); Tue, 23 Oct 2018 22:18:34 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:50758 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbeJXCSe (ORCPT ); Tue, 23 Oct 2018 22:18:34 -0400 Received: from localhost (c-67-183-62-245.hsd1.wa.comcast.net [67.183.62.245]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 072A8147215DA; Tue, 23 Oct 2018 10:54:09 -0700 (PDT) Date: Tue, 23 Oct 2018 10:54:05 -0700 (PDT) Message-Id: <20181023.105405.364015687995752826.davem@davemloft.net> To: jolsa@redhat.com Cc: dzickus@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org Subject: Re: perf overlapping maps... From: David Miller In-Reply-To: <20181023063452.GB20075@krava> References: <20181022161613.GF2945@krava> <20181022.105842.1364583912952511294.davem@davemloft.net> <20181023063452.GB20075@krava> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 23 Oct 2018 10:54:10 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa Date: Tue, 23 Oct 2018 08:34:52 +0200 > I'm not sure about using the misc field bit defined/used by userland, > in case there's some new one comming in future for fork event.. > > but the only other way I can think of now is adding new 'user' event > for that, but that ended up as a bigger change (attached) > > I think if we make some 'big enough' comment about the bit usage, > your change is better.. will you post or should I? There might be something else we can do to implement this, and I think making a whole new event for what is an application internal problem is overkill. What is kind of silly about how all of the synthetic events work is that we throw away a lot of information by tossing the events over to the generic event processing engine of the perf tool. So we generate the events knowing the thread, context, PID, cpu, etc. and then we lose all of that information, and the event processing engine has to look all of it up again. This is also, BTW, the reason we have dependencies on synthetic event emission ordering. F.e. this comes up wrt. COMM and FORK events. I understand that this design allows the perf tool types to define a private function to dispatch the events, as is appropriate for what the tool is doing. But the side effect of this design is that it means it is hard to pass internal state around, outside of the event object itself. Anyways, I'll look into this and see if there is a better way to implement this. Thanks!