Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3774636pxb; Tue, 17 Nov 2020 03:16:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAYk00G/PQTHJw0LFrCSTU6f7XdonvNAFTBiE6JIHNSr2o2b3CNK8dBMTTcsFILiUt5ElU X-Received: by 2002:a17:906:b003:: with SMTP id v3mr19674321ejy.290.1605611773619; Tue, 17 Nov 2020 03:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605611773; cv=none; d=google.com; s=arc-20160816; b=Ygsr/tQ2CHbxsf+cXl9upAyhNOqNmK4AsSqvfbeuuKUrYlPre+lpiDkluDTdhBd0tC rKmBMgP0OUCyOd0v6v2OsjgtPoBm9vlZf3YtNtkXi65Gr/bTCNtVo0B1/PrHjCzrZfjZ 8GnvmKlGxV5X0XW8o2VH/VNVyoJBe8c2eSiV8K1LQSWCrH+fpWvHWxiN+jNdSTCBLoyU yJqcgr2HhGKdDRaRAd5S+z0tJREFE7KDSk8b14nUgTwvjPZgNKV3Y1iAFeX1Ejxm2yzm G5JMnRNHo6/1yyCq1l0TivavEBxwN/oa2RRx6OWD3Q2r4qE1Cn0cuJ01amgKb5yASAmz j/vw== 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=/2a/sPDlsWwmun8lGMBoMfY91XSPRk9t25Rnf1cJdJc=; b=p9StZypaTCQBRuvO8D1hxTMaL/8ICZ8cTAXWJfwrCm7AQkCB2dAvk9Rf87P4ks+wS2 SY0gLsF2kBbRp04q/PrSYEQIGhQjx//Grv5uGNCC4MlemzsiSq8C7uJhk6NXdAlnWg0Y +04RfIzc80buzXu4NdHvv1ZdtnMtGKxCFgOIBFQYJfAYqxEb6Wiqzk0NKRUMRsjKMXW3 gRztnVF5yp0JcOriqH7WDBUF7ejePe/IqW6wVrmuod/XeY608lp1GjWH+mHChI2qWyUj 1FxqhiYiXipHSwAvRJDhtkI5hwObfFZ18dcclq/cs6ZZmB+LXyeoBosu0tSnL1wmMRUP v/Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="mA7uo/bn"; 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 w10si13540013ejz.5.2020.11.17.03.15.50; Tue, 17 Nov 2020 03:16:13 -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=casper.20170209 header.b="mA7uo/bn"; 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 S1728017AbgKQLNt (ORCPT + 99 others); Tue, 17 Nov 2020 06:13:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgKQLNt (ORCPT ); Tue, 17 Nov 2020 06:13:49 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04E0CC0613CF for ; Tue, 17 Nov 2020 03:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=/2a/sPDlsWwmun8lGMBoMfY91XSPRk9t25Rnf1cJdJc=; b=mA7uo/bnEkMVo3K/a1r0gZBIXl UHXkYmV2UNP88FBH+GzBT44jzqNhXRQsteMT24FP5bETOOW2VsvFqE1ytDYezw16IWY0c62A3mFm3 zf8JCxjuvZiXc4o/zBI3kfeOICgJ+xi0C4x0NCCUZl/BB8/0Y2Oh80vcNbthjkz7kAOzFcsXTh8v4 0hXBP6k4O3oi/OwfchLFvatlyB7GLM/nEE5IgyldRcPDsqLiK5xsGu9B/gaR0s0cjSCL73expha5+ W0qC15Q+8FXFkiyQrGFebYby1b2CQsb1iCKecfH01lmxawf0Hu+IadOj5EHzBL9DmGTW5Cthq3fCJ Ijc139PA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1keyvY-000483-Mf; Tue, 17 Nov 2020 11:13:37 +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 1AA38305CC3; Tue, 17 Nov 2020 12:13:35 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E53E1200E61C9; Tue, 17 Nov 2020 12:13:34 +0100 (CET) Date: Tue, 17 Nov 2020 12:13:34 +0100 From: Peter Zijlstra To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , 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: <20201117111334.GL3121392@hirez.programming.kicks-ass.net> References: <20201117110053.1303113-1-jolsa@kernel.org> <20201117110053.1303113-4-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117110053.1303113-4-jolsa@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 12:00:32PM +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, which 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_size; > u8 __reserved_1; > u16 __reserved_2; > u8 build_id[20]; > }; > }; > > Replaced maj/min/ino/ino_generation fields give us size > of 24 bytes. We use 20 bytes for build id data, 1 byte > for size and rest is unused. > > There's new misc bit for mmap2 to signal there's build > id data in it: > > #define PERF_RECORD_MISC_MMAP_BUILD_ID (1 << 14) > > Signed-off-by: Jiri Olsa Seems sane enough; how do we want to route this? Acked-by: Peter Zijlstra (Intel)