Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp606450pxk; Wed, 16 Sep 2020 12:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTyJYzWFZtop7fLi+jz2Tb9KTOP6/+TwJ0EgNbGLPV5/2eR5OM4bg1mfOQz2u5Vfpn0Jdc X-Received: by 2002:a05:6402:17b5:: with SMTP id j21mr28452751edy.276.1600283005610; Wed, 16 Sep 2020 12:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600283005; cv=none; d=google.com; s=arc-20160816; b=zg4ST0a37SMUNHGR2h4lc4AMeu5JGbxp7SDKEKDpMiCCWiOV6jJM67WDSv4JURPy+T OFzRCdDhpuOaj/wK9t+LKSINMBJKKfcel7zdN/Ca6HAc7By8OZv25ke1A9YuEfIDJGSD cR/mbEuJwhqVKK/Zy9jMR2YcRjfmcgojBtFkpftnK0eDoSE1N8RoeTV2NZ4mh/NxB30O unhlTuasHzR9gL2pzKNDpw9nwAsCMHOS68orluKKsFpJFpLNQjOs5h67NTg5/d/xHrMN Bcmy5ZbFBMUUgTKY9Tyq4C49qUs8JMRpeW5vBhExlBsHJdY60Gfi7etJhxCgHR9jaSHp AfEA== 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=9pQIxLLUEkzWAPIkT2AufuHjwMwmkPzl+bptFVgIBd8=; b=iVFVIm+cuVI6JFBok6M0NeJsoQjEuo2ESaw7xLsxWOSIdEdWQ5/kcFM4nIoPRMepf4 BjmKrhj96jkf3vJOoPKHZx9EmIoQxRG1LgoIaV9SWnDuAZ/5k6BFN3T6JW/nGa8M+yr6 XjAe4jL4Al0KvPm4sJ7/dHmEVoM3+9SxXhUWJspII4VVbmFyyIlo2IrJFDxSZboJ4UA+ ffyLsD8UG1OvmlXyofNxarls2hQ5zF9NNHgXRvXrP3st1TH7W85dsaDdiZGUw6ulmBgl ddAaVJXTtNSnu6SfvvLhEIIguglO0cA42s1MGw0J+cdNNXK7sZXZpOyL1V6eAzLS9xTh LXAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=2lmLExeH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si12733758ejt.286.2020.09.16.12.03.02; Wed, 16 Sep 2020 12:03:25 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=2lmLExeH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728304AbgIPTCZ (ORCPT + 99 others); Wed, 16 Sep 2020 15:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727524AbgIPRss (ORCPT ); Wed, 16 Sep 2020 13:48:48 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDF0AC002182 for ; Wed, 16 Sep 2020 07:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9pQIxLLUEkzWAPIkT2AufuHjwMwmkPzl+bptFVgIBd8=; b=2lmLExeHxWL5vAuNjc1CHuf29n 3ua/zYKoddDt2v6LKpQkFvzwKryPQBGOyV+RAw9ilwUBeKQLUSVNZhQY36/y8X+C0TnJ82d4UM94W m+HIoQsULk6Fr4DvNFx5puf4jxNARo/24ySCBm2bjgT+r1ahP7rgVbb7+S4pvza0iiIn4WVc7eNcs HIFo7DQ5nb1nyJ7t2IOoHLw245KcIdddDppBqVfc2kun6dyUF0GWQq/I2b6yUQ7s7F1ZY/4UkMeiB XQOuJmRFzO7tp3g9at496cDShcjY8rzAkyqOgVRrZlL6WEPjPrzZz+CY1WsdwLYDgoHdOflzSAGY6 d16rhhLw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIYF4-0003Cf-Ov; Wed, 16 Sep 2020 14:17:03 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 186F83050F0; Wed, 16 Sep 2020 16:17:01 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 011062BADC868; Wed, 16 Sep 2020 16:17:00 +0200 (CEST) Date: Wed, 16 Sep 2020 16:17:00 +0200 From: peterz@infradead.org To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Ian Rogers , Jiri Olsa , lkml , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , "Frank Ch. Eigler" , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Subject: Re: [PATCH 16/26] perf tools: Synthesize modules with mmap3 Message-ID: <20200916141700.GC1362448@hirez.programming.kicks-ass.net> References: <20200913210313.1985612-1-jolsa@kernel.org> <20200913210313.1985612-17-jolsa@kernel.org> <20200914160758.GK160517@kernel.org> <20200916082018.GA2301783@krava> <20200916140744.GR720847@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200916140744.GR720847@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 16, 2020 at 11:07:44AM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Sep 16, 2020 at 10:20:18AM +0200, Jiri Olsa escreveu: > > > IIRC BUILD_ID_SIZE is 20 bytes which is the correct size for SHA-1. A > > > build ID may be 128-bits (16 bytes) if md5 or uuid hashes are used. > > > Should this test just be "> 0" ? > > > > ah right, will check on that > > And how do you deal with this in the kernel? I.e. to inform userspace, > via the PERF_RECORD_MMAP3 (or MMAP2 with that misc bit trick) the size > of the build-id? The union size is 24 bytes, so there's plenty space to store a length field with the buildid.