Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp287231imm; Mon, 9 Jul 2018 01:32:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeqxHarMpIHsC8FpJKYGxjdh6PnCODP9MrbBz89aFS6fnHm6tsBjulcjoa8U0oyUbZk41VH X-Received: by 2002:a62:60c3:: with SMTP id u186-v6mr20536861pfb.230.1531125170029; Mon, 09 Jul 2018 01:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531125170; cv=none; d=google.com; s=arc-20160816; b=r0dfWLfHFDdgQl6HYR7EiQxtKe9sepzQcgMGhrSni6jLEcc+oMY13HYLkji5zmE54B O1DaLSXZxn04qMlMiM09kKciO/kEttAXycOi6Mlbshqj8Y8WSed6QDjQ9o10XvM38VHj tXMrD4lWEz9d4M0eA4E4Lt+Cuq0CdLR8ms2KXp5DYUn0AH4C/RU1YmJi40RDHwUh8Hwu VYqks8WJKWeCwwy/q1ZHa7dpaFK7zTk4i6K3wTvwJCxUULOWhklHUF5HcRJo1rWd+yKu imQyG0BaDYmqfMs3c7H29YLkyRDrK/a3ddt/bmPtSKkDV2LaaaCy01Poc06I5Sptr4xN N5bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=43/LVUTIoqKqh94DZs5o9ApF7EbXWFlzTgDNEVRzL+M=; b=FTpDm1STPLmpvUrOrdOGI+t6uW9A94CR/GJrTuQrCQ1DfsIYLq1h2Z/5tE8tWqAtAs EtiOH4JUaikCiMZVwP4y7WASlqK5yt1zlUPFsylHWN8vP1JlgCcbwPigXNB5Vfr0cB9y OenvFfaHS69zfF4LUNi5R+K9Mh/Ywker6CYLKTUR31ojzEXcgXbfCTVKXtACFccMSwfb M5X1aq26AGuANr2j5t/aGpyBmWKmgSGw7H1spyjXDzhowAawM8wj1/iGGiCADO6DoBOy yzwtyhh1/HpO/70axUjoLm7OqM7veAgH0gtITzpQqv9bDHTvROns4ZPcEegtcvz69J2b vV2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=V62NjIcS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6-v6si13814788pgn.603.2018.07.09.01.32.34; Mon, 09 Jul 2018 01:32:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=V62NjIcS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754417AbeGIIbu (ORCPT + 99 others); Mon, 9 Jul 2018 04:31:50 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46796 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbeGIIbt (ORCPT ); Mon, 9 Jul 2018 04:31:49 -0400 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=43/LVUTIoqKqh94DZs5o9ApF7EbXWFlzTgDNEVRzL+M=; b=V62NjIcSS0LoLU5uK+oMSIYqB B4+mKvb+goAONBpEhqb8u8XBRt9UCAN01q9Q20aQN3OuYR0WarJ9RusOm49Zij7Kfxx6DYrzX+9wW jHqoV6OCNpGuPTxOVq0kAA2U4xOeVyyhv/8Is/fRZqB/vsOQyzFItGdM1MM+rI2/bBDW2jFwrLWlS ehF+XrRb/2F6Z3iiB4RwJdT1b5c3AvxVxfOiwMYD6ju/EVVk4g/+MRxDPp+kYkkFAqYP1oR05inaH hBclYI4ropkcezcOQv6mSE5GwQ5LAEo7qFvrNXFBER3CzrPVrq7Quwtg1d2XVukT5SwNjZ0nGk/hm 3ru6b8vyQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcRZq-0004hf-2d; Mon, 09 Jul 2018 08:31:22 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6BEB52028932D; Mon, 9 Jul 2018 10:31:18 +0200 (CEST) Date: Mon, 9 Jul 2018 10:31:18 +0200 From: Peter Zijlstra To: Eugeniu Rosca Cc: Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org, Will Deacon , Viresh Kumar , "Rafael J . Wysocki" , Steven Rostedt , Byungchul Park , Eugeniu Rosca , Eugeniu Rosca , Tetsuo Handa Subject: Re: [PATCH] locking/lockdep: Report comm/pid/timestamp information Message-ID: <20180709083118.GA2476@hirez.programming.kicks-ass.net> References: <20180709005725.18184-1-erosca@de.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180709005725.18184-1-erosca@de.adit-jv.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 02:57:25AM +0200, Eugeniu Rosca wrote: > diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h > index 6fc77d4dbdcd..eeed7ea2e198 100644 > --- a/include/linux/lockdep.h > +++ b/include/linux/lockdep.h > @@ -186,6 +186,10 @@ struct lock_list { > struct list_head entry; > struct lock_class *class; > struct stack_trace trace; > + unsigned long long ts; > + char comm[16]; > + pid_t pid; > + int cpu; > int distance; > > /* Yeah, not going to happen. You grow that structure from 64 bytes to 96 bytes and with that grow the static footprint of the kernel by 512k (in the very best case) possibly again breaking things like sparc (which have a strict limit on the kernel image size). And all that for data that I've never needed and never even considered useful when looking at lockdep output.