Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3825417pxb; Tue, 10 Nov 2020 00:31:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6uEUpnD3SJkNi7kr9a7lZF5PGFD/TqHWAGyiBYLpD2LTzE5ehimKwhHHcms2qAOG8w5mc X-Received: by 2002:aa7:d858:: with SMTP id f24mr19239905eds.12.1604997078018; Tue, 10 Nov 2020 00:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604997078; cv=none; d=google.com; s=arc-20160816; b=naajkwNehxDEotou1uhxpqlrSXYXk4PCpGVZGyLGQ/WApmnhVf4xhwabc0Lln+jIbQ dksNLCbUSNIvvfL8cXbexdfxTT2KvVCsqlIT8A7RnwzNlcGJf8gcEawUMOUjOn+HUZ6W WGCJMEDtJs5Z4oA80950s/AuNpVCAsKGeigrrOroK1Q0TklTKeEuzz6FhJ+ySOfIdpdd qkVFhjYWDxXU/VCHmvkczCbBm15dUDvasORPsA6jMGB2iwbQ7fV8X1b1WIjPOVfTHidA 4r70e8xZhcDxpQZksMFoq3rURj+lTagBho922JDxLKC+nw8OAXdNuarwbJz9+0z+neol dZMw== 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=MTClELRHKyU2TjgtYpv32+wHm9fs7/69FtLMOSW87OI=; b=tUuvcnw99Rv4xIy+/bI5DhSOTCFyO4sq7482H4vei/ubLvwc9QWzORBxwyLy4vKUx3 VScyF9CT/CQpBTh3V9sDtY+RStJm3H1fQfuZIQrLlel3FkyWhaAQZrkdkTMbI33mvuAa Z/OrWjx1wxynZH1prKimLtH+bFvCvuEzTSmHLfz2iaq9bxx5zDHpkHSe8cXqMu6dUlnL MaJnmo/Jr1XhTYrMvzzsdz6c8doohoa2x8oJsZ3fWaq03c1w9A5GU36PTwOXztR4FhcF a6QRIVBwE9QZl/dffenb2+B+z6JU7lodUMgjdAK0esoDXdIGHlXtoA/NrLudC2f/BHnw vfwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ExwHlle+; 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 d18si9053263edx.345.2020.11.10.00.30.53; Tue, 10 Nov 2020 00:31:18 -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=ExwHlle+; 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 S1728119AbgKJI3L (ORCPT + 99 others); Tue, 10 Nov 2020 03:29:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbgKJI3K (ORCPT ); Tue, 10 Nov 2020 03:29:10 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B579C0613CF for ; Tue, 10 Nov 2020 00:29:10 -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=MTClELRHKyU2TjgtYpv32+wHm9fs7/69FtLMOSW87OI=; b=ExwHlle+8ryYuDlhYtI8il6gZA W5sf/VIy3hA6RqG9cPxd0vMYKUb2uZWMRKyPwu5/QnZaNFAIhPCXi8aide0yTdMLQlZBtZJFdlFlo t8LokaOBXe2RP6FrDpFSBL93Fe1hb2YQKWE+SQpZn1woeDjrHHCc6VC3drWOMU+B2RzBNVAB37VEs KsEF6lM7nZxVOLdlMtHRCsA1VfJZVhURpVyXtKEQkdXJy5rAblCdrVIbtc78SJoxETmN6YJ5JT9Eh 25MmG52WBaLkXVFUFgYVx41GyXXGZtaYAx2SwWsU1WlJE96JbMWw9d40nzkpsO0LedfX+ktLZOan/ oJcR/bPQ==; 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 1kcP1M-0005IP-IQ; Tue, 10 Nov 2020 08:28:56 +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 3C2CE300455; Tue, 10 Nov 2020 09:28:52 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 04DD72B81AABD; Tue, 10 Nov 2020 09:28:51 +0100 (CET) Date: Tue, 10 Nov 2020 09:28:51 +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: <20201110082851.GV2594@hirez.programming.kicks-ass.net> References: <20201109215415.400153-1-jolsa@kernel.org> <20201109215415.400153-4-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201109215415.400153-4-jolsa@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 10:53:54PM +0100, Jiri Olsa wrote: > There's new misc bit for mmap2 to signal there's build > id data in it: > > #define PERF_RECORD_MISC_BUILD_ID (1 << 14) PERF_RECORD_MISC_MMAP_BUILD_ID would be consistent with the existing PERF_RECORD_MISC_MMAP_DATA naming. Also, AFAICT there's still a bunch of unused bits in misc. 012 CDEF |||---------|||| Where: 0-2 CPUMODE_MASK C PROC_MAP_PARSE_TIMEOUT D MMAP_DATA / COMM_EXEC / FORK_EXEC / SWITCH_OUT E EXACT_IP / SCHED_OUT_PREEMPT F (reserved) Maybe we should put in a comment to keep track of the hole ? Also, perhaps it is time to use F to indicate that @size is in 8 instead of 1 ? That would increase our max entry size to 512K, people seem to hit his 64K limit (insane as it is).