Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp25301img; Thu, 21 Mar 2019 13:13:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVZAv6aQ+0gj4UP+qqf0fz9e4CCJTC2+5CmPixUUY9DbTONueWeelDMubPAaNpSLgwLaF/ X-Received: by 2002:a17:902:bd87:: with SMTP id q7mr5329348pls.227.1553199194934; Thu, 21 Mar 2019 13:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553199194; cv=none; d=google.com; s=arc-20160816; b=C4Y4kMO6Q09cVENUIrOPFNE4x8b8mqUSL1KEER/wn2xxRc4Ntt+jQHdDCcbRK7Bdqn 7wy2wfkvsKF3p3bLwJMnz846h3CWlHQpNC+2DrbHJCeejQvcPZO59OjK4xgII8w00D1H 1U64yBBh8CW4XpBQe40RImQOcq1otTHoZNDYA/WL4SRLHGjUGIGFMnE3zT0tX/c3O7zD 79Y7r+HfYyNeZpbvTYtOyieuJKm1QaEJloptliK4/sPgdABElRn/V1y0D1lUk3hXm5K3 7uo2Lx9PjXGAlnmj3fwcTpLleUYxMA7TNowctCxL107zj0uETX07qHzEFlJtchyc3G3v jMcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=B+peiKoiCL7IeWlA8oRa+FEqg6zJWNIDk+Z+qfBJLNo=; b=IXafuqzRAP5lTabBzYXrraQtFcS91plxZ7SmvMYYcxfmlv8iVthmqLYJTYK6sitEMn J6Vu2EPpbLW2KKRgDxkOuaWtlFtGmJZfBOVDZqmmhbeECgJb/hVUVJhdO2xFn+NiGp1A FYkFaaEakpRtIWR84LNC3aJEppTlMPcae8XJno2GZ3VDBXFvJxhfM4stRojyP6ic9JUa ng8K22IUp4ysCQ7yMQi1EcJOHfxtuG+Vb7+WOqVZ1NYnjgXOmRq/SyP2PqmaF3Plvy61 kXGETKjnRXp6bZIO39rIIIt6GT3UXjwbL2DP1cuhoXXpi/BB/AFVeXsww6/iXD6T5KIV 0neQ== ARC-Authentication-Results: i=1; mx.google.com; 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 r35si4833679pgm.179.2019.03.21.13.12.52; Thu, 21 Mar 2019 13:13:14 -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; 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 S1728817AbfCUULy (ORCPT + 99 others); Thu, 21 Mar 2019 16:11:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbfCUULy (ORCPT ); Thu, 21 Mar 2019 16:11:54 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 ACE44218A5; Thu, 21 Mar 2019 20:11:52 +0000 (UTC) Date: Thu, 21 Mar 2019 16:11:51 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Andy Lutomirski , Juergen Gross , LKML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Joel Fernandes , He Zhe , Linus Torvalds , Clark Williams Subject: Re: [RFC][PATCH] tracing/x86: Save CR2 before tracing irqsoff on error_entry Message-ID: <20190321161151.0d10b6d7@gandalf.local.home> In-Reply-To: <20190321200316.GC2490@worktop.programming.kicks-ass.net> References: <20190321090241.GL6521@hirez.programming.kicks-ass.net> <20190321104517.GM6521@hirez.programming.kicks-ass.net> <20190321093242.4a948198@gandalf.local.home> <20190321172203.GS5996@hirez.programming.kicks-ass.net> <20190321141020.641e313f@gandalf.local.home> <20190321182830.GV5996@hirez.programming.kicks-ass.net> <20190321145551.4c80c3a7@gandalf.local.home> <20190321193152.GB2490@worktop.programming.kicks-ass.net> <20190321155006.5288345f@gandalf.local.home> <20190321200316.GC2490@worktop.programming.kicks-ass.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Mar 2019 21:03:16 +0100 Peter Zijlstra wrote: > Doesn't make sense; you say data, but then talk code and i$. Ah, you meant d$ > > Not the point, spinlock_t is 4 bytes, but growns into a monster with > lockdep on. There are plenty locations where the spinlock and the data > it protects fit together into a single cacheline, no longer so with > lockdep on. > > Another example is split pte locks, without lockdep they are in struct > page, with lockdep, they're a separate allocation, adding pointer > chases. > > Also; I do not, and have never done so, understood the desire to have > this unified kernel. Building another kernel just isn't a problem, esp. > not if you're doing kernel development to begin with. It's not for the typical kernel developer like you and me. It's about shipping to the customers. Shipping multiple kernels is a pain. Lockdep has some features that can be used in production environments, like seeing lock contention and irq latency. Most of that code is dependent on lockdep. Having just tracing of locks and such would be useful. But that also relies heavily on the lockdep infrastructure. > > Making debug code complicated, such that you need to spend more time > debugging the debug code, just doens't make sense to me either. Perhaps this can also help clean it up, and organize it. Sometimes adding features makes the code cleaner (see what RT has done to the kernel). -- Steve