Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp608976pxk; Wed, 16 Sep 2020 12:06:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3l7kh3LJb8hnoEo/E2MXiyydxcCogUj0AChYbC9ZlmnGu2suBvL1tIb7t89A97XAGUysT X-Received: by 2002:a17:907:43f6:: with SMTP id mu6mr27915110ejb.244.1600283205519; Wed, 16 Sep 2020 12:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600283205; cv=none; d=google.com; s=arc-20160816; b=STnbx9tKYTd/fq46p/d/zMFEbuQK6HLP2jR9b3pqwtY//zDJO4JpJNaPc75dygBRNG uNVSyo+fnxv/jfylGJ1J03bzWa3Dq9u5nnVCTnMrNcCxk58uYHEKLjNJ1leNpC4pfUF1 jwVS/sSO8c56GuWRmF3GClqqlsXQO9SwhGgnhXYQ8KFDePbgjF39Rdxr42IREsHNUdgi uu8SPuWplOoxFTCmuAuspyq3GwqtkJgrvDHRu+GqPY2KkDiHZd+zNUq06J15RipEUWxc 2EOcRmc37pcpunZO3jDiML/4rNKMLfd39H8a1ZphQRN0zyTvDskzGR/ZBX2lu2fdpzY4 pNEw== 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=iia8GqDELMESWunH6obRrp3cRTGSn/bIHfJMKres5VQ=; b=DVMvWbIoLfeQC374g+PMCb1ICdCYlfabYYo3wfBSFXESjM8p2LWEGhiYwO5pPMeWhL Zdp6poBKs420ViqO8Ype2nS9fLbPfVqSgaZCdCE0up9BJJcOuDaCW0m/xjIrC+Ttj33f FIca4QA+UWTDsDN+6I9oGRje8IXcUWZ2V2w2jBHZuLbOYPvOOStXSAXhwmyty+ZkmKAE cDoPOEOACZo3Oojrs/2wM8taZUEcakcY4WGR2ACzrEdqaYImTwHP80EWZFltX2AWNTl8 OL/NPp8eeNcBdtu4h1FSbzs2hTRY8RxrWGiFUJFUmE+NzpqBULpM2ceQG/8KJ7gsm07U N4hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SpkLIwde; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si12025350edp.136.2020.09.16.12.06.21; Wed, 16 Sep 2020 12:06:45 -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=@kernel.org header.s=default header.b=SpkLIwde; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727429AbgIPTFp (ORCPT + 99 others); Wed, 16 Sep 2020 15:05:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:36800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbgIPRqT (ORCPT ); Wed, 16 Sep 2020 13:46:19 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 033DD2223F; Wed, 16 Sep 2020 15:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600269024; bh=6A4V/iLKJFPMj+LflCxy83lHYDrSIcPmZ7b5SmaqOsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SpkLIwde4Pa5CfLhOdBi988rdtFxhMusqHs4uTo3XYZzlPI54vkzRvN8F3J+Le8/N l0Ztdzd8WD6GPRQn2C3yjImtUBAEVmjHeCBjPIS7IVGr91ckGK2eNZOkTHxYEo71y+ dENohCk/WgVHU00Z0z+c/iE8Dq6ZGMpIrubWBnVA= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 10680400E9; Wed, 16 Sep 2020 12:10:22 -0300 (-03) Date: Wed, 16 Sep 2020 12:10:21 -0300 From: Arnaldo Carvalho de Melo To: peterz@infradead.org 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: <20200916151021.GS720847@kernel.org> References: <20200913210313.1985612-1-jolsa@kernel.org> <20200913210313.1985612-17-jolsa@kernel.org> <20200914160758.GK160517@kernel.org> <20200916082018.GA2301783@krava> <20200916140744.GR720847@kernel.org> <20200916141700.GC1362448@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200916141700.GC1362448@hirez.programming.kicks-ass.net> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Sep 16, 2020 at 04:17:00PM +0200, peterz@infradead.org escreveu: > 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. So, I think we should instead use a bit in the misc field, stating the kind of build-id, so that we don't waste a byte for that, I think. - Arnaldo