From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E78FC433E2 for ; Wed, 16 Sep 2020 19:02:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D415206B2 for ; Wed, 16 Sep 2020 19:02:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="2lmLExeH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbgIPTCZ (ORCPT ); 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.