Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3949259pxb; Tue, 10 Nov 2020 04:26:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBlS1RZmWs9OG/Jeev0UflGijat+kMwItjB+iZssIZ8sC/Ix+H2wJyOOtowfTnejJY/QKY X-Received: by 2002:a17:906:374b:: with SMTP id e11mr19350077ejc.339.1605011194854; Tue, 10 Nov 2020 04:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605011194; cv=none; d=google.com; s=arc-20160816; b=jatnStT6VtXcO1wu1RYDeLUIDkpqh/P7JnUrGov+5EGqzIAW3/cufVx7NGE5Dd8xzt FgrITkluU7ITuya2Qg18wLRSv/lPAnPZUlEZb0qszrFVi2oLbWR5ILedpoovDkBJrHPI chsHGeBcKJBmi6RtSvIQ6Ftp9e3wuSAl4jz6N1lZNuMrytHwO9q4tHR1q5V2ckoCPGZL btSuV2Z/NqWpm9Db1mUF6KsgSn3VFLDaswdyih4Z1Numjg5ASN+YzlLBrg7ofpFhYOoQ 0KqOHWaPvhQ1cJlXRo7Y218M6OpVjk+pJYMahBODGtXupXeIdo4DR1FE343ZdVY2vcp3 HxMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3/1Uid5NXV02fVcliXKfyabT8T10rQnq7Svabpzfx6E=; b=np4YgVmy2M5977RA4hdvDZdbRnSi3ZQo8S/26cz0MKBRfMAwR5M89gytffJghnpvHb MbMt9BHC2u86pDqE4wuuAxL5adsZoHMI1mWfC0FYRkd9h/GOJnhWq90cDqa4pyftFihR JxowrA172reS2UF8udtE1d4Yr7wCPLNlJYQBUEwoFV/UNh/3qTc0jko/G6mTiC25Y7Du 09Yh00KBD8GvDaY2UODQT/TC4tuXkmyjJC+dMBWpoME1lsDIGG9bSrQuu6pvOH7AK8nr dSRCKY0MBruVs6/IQ1JAowV1JXub/l32w4Swltz92WW5WdtkPbRVdHY0WwLwGpAN66R+ ExxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=2A+m1iHA; 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 c7si9135228ejp.437.2020.11.10.04.26.10; Tue, 10 Nov 2020 04:26:34 -0800 (PST) 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=@infradead.org header.s=merlin.20170209 header.b=2A+m1iHA; 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 S1730182AbgKJMWn (ORCPT + 99 others); Tue, 10 Nov 2020 07:22:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbgKJMWm (ORCPT ); Tue, 10 Nov 2020 07:22:42 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1943C0613CF for ; Tue, 10 Nov 2020 04:22:42 -0800 (PST) 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=3/1Uid5NXV02fVcliXKfyabT8T10rQnq7Svabpzfx6E=; b=2A+m1iHAGoU/HdwXwcZvWhxWWB zBiXeNqBCfidAPG4wb63pWEAew0Euxzpf95/s5gQsQTIXoO/xsTN6a7Nhxq4Ez0speEvRt+Oa6LI3 haNxoh8Vpu9nos/F6X88HLocpfqNRE6cu+f963lqiC6+F4uPu4EARml6MtTkTrAFcBNsMBdKrvGX+ XeJ2vybnjj5kax2+tdrpZFKcDlTVDGOS08ogV6OUal2kUfre5zvmdDCV0vE6pd7qaesEqrrV3VLwS hVRUbI2w41KR1tixNhice0ZmQHw0U0tOdZXEnIvfTsH/xiDomNs3yJVlWsZghoMsJEPf+H9dg76m0 Sz+g9Wig==; 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 1kcSfR-0004R9-Ov; Tue, 10 Nov 2020 12:22:34 +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 85EFB30705A; Tue, 10 Nov 2020 13:22:32 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7744C2C29A9E4; Tue, 10 Nov 2020 13:22:32 +0100 (CET) Date: Tue, 10 Nov 2020 13:22:32 +0100 From: Peter Zijlstra To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Subject: Re: [PATCH 03/24] perf: Add build id data in mmap2 event Message-ID: <20201110122232.GH2594@hirez.programming.kicks-ass.net> References: <20201109215415.400153-1-jolsa@kernel.org> <20201109215415.400153-4-jolsa@kernel.org> <20201110080716.GU2594@hirez.programming.kicks-ass.net> <20201110115426.GA348806@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110115426.GA348806@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 08:54:26AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 10, 2020 at 09:07:16AM +0100, Peter Zijlstra escreveu: > > On Mon, Nov 09, 2020 at 10:53:54PM +0100, Jiri Olsa wrote: > > > Adding support to carry build id data in mmap2 event. > > > > > > The build id data replaces maj/min/ino/ino_generation > > > fields, whichc are also used to identify map's binary, > > > so it's ok to replace them with build id data: > > > > > > union { > > > struct { > > > u32 maj; > > > u32 min; > > > u64 ino; > > > u64 ino_generation; > > > }; > > > struct { > > > u8 build_id[20]; > > > u8 build_id_size; > > > > What's the purpose of a size field for a fixed size array? Also, I'd > > flip the order of these fields, first have the size and then the array. > > There can be different types of build-ids, with different sizes, > flipping the order of the fields is indeed sensible, as we could then > support even larger build_ids if the need arises :) 3 whole bytes.. whooo!