Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4078567pxb; Tue, 10 Nov 2020 07:27:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhTonZ6+eYQd3hCJWv0rOUwNtccDhd+LYfttXYwjMxf8PLROsE/vT7fvTwX9vumNRWq5bt X-Received: by 2002:a17:906:51dd:: with SMTP id v29mr20833970ejk.69.1605022067580; Tue, 10 Nov 2020 07:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605022067; cv=none; d=google.com; s=arc-20160816; b=gzKz1xb1VuNnjr3TFhncGQ9FbW4pPvrZ7IrS7tivG+77TG9qe6d6XuZgwoVGLn6n0s FLPTCKSz5KWR+XGY810oZhoCI3sCdJZtq4xL6ABEh0yJSg3XiG1WbPipzYnaH69ljDsA 1/ZrGz27p/OLxMQnJupQKs5M5ptmx2yxdjiaay9F5hHPR0328FHWQv74BGKHoh/X9ZgV 067/fejYE8HV2dpkPtsUTIP51wx9k7u4xxdOZ358w3Eh1/UPuWsWctIIzXvpllUnj124 zDcFtPR8Tyug7EBXB6WJd9UC9d7/fidDmk/G4/6kF59Gwi9pBYCXzsuV/EyUUAunZ1IN wzkg== 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=Zl6AQngc80mvMvcB4ABrNGwdpzdHqQXwnUkl3VHTqp0=; b=AqRqxIbiAvwhLy08KaqIcwFsbjTYz+fpIU3Qr87GrJeyTUiRQrVT3CXAOHLrzftOYs Bmn3Hqk1kskxY4NvHRbeXdbMX3Jn3lTIKq9m+zF/+kKk7x67hD/MaqNjZ/QRzntIpGtU 2vqhK7XQd2Tv8vo0vgf5wwwkv+e2crHtO/hUDbAgkr4F6Elt3x+yChhmCmaindCw7s4D kbgGSmA5N2pgMPUZG2SSS42XkF4z6zC0OiKUy7+Fg2759JRFIlRat+BObEbVbtbFpoQQ 7QC0NeAHMUAiScmvFkAyO1w8C3onH88e9o3d8jGfF9bPyxdWY2B0xJ1AFQ1aNNICAqjk cnMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="EytIZ8/q"; 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 93si4922521edm.34.2020.11.10.07.27.24; Tue, 10 Nov 2020 07:27:47 -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=@kernel.org header.s=default header.b="EytIZ8/q"; 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 S1731200AbgKJPZu (ORCPT + 99 others); Tue, 10 Nov 2020 10:25:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:33166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730231AbgKJPZu (ORCPT ); Tue, 10 Nov 2020 10:25:50 -0500 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 3004120797; Tue, 10 Nov 2020 15:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605021949; bh=+6ef0br250e/7DhBKSu+ZFyLg4W13gH4UJV+liaN8Uk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EytIZ8/qiHJlrUph/VtRiZHWCsj88RS+ImuquAn2pwlJpqwRJin565tlDdqnH0mM7 erpduzI7BOKqZXx5yA0LJ6jIDCOwext4xH/zVyDNvLRts1Fpl+7j5lsnInsy76cagA r+hmout4KPoDyf5KQWjIxrSpaCFIMKKtmPalOLAM= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C2560411D1; Tue, 10 Nov 2020 12:25:46 -0300 (-03) Date: Tue, 10 Nov 2020 12:25:46 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra 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: <20201110152546.GB348806@kernel.org> References: <20201109215415.400153-1-jolsa@kernel.org> <20201109215415.400153-4-jolsa@kernel.org> <20201110080716.GU2594@hirez.programming.kicks-ass.net> <20201110115426.GA348806@kernel.org> <20201110122232.GH2594@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110122232.GH2594@hirez.programming.kicks-ass.net> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Nov 10, 2020 at 01:22:32PM +0100, Peter Zijlstra escreveu: > 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! Hey, I agreed with you, flip the order of the fields, right? :-) - Arnaldo