Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1848381pxb; Wed, 9 Feb 2022 05:55:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRSh0dDfEKuou3DLzKifY61X7rPMHXrmY1zFQWtndJg4QRqF4LR19BjbgOFZtu7M33QdhF X-Received: by 2002:a17:90a:1984:: with SMTP id 4mr1799588pji.197.1644414915006; Wed, 09 Feb 2022 05:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644414914; cv=none; d=google.com; s=arc-20160816; b=z4SvezTpvSDvlJAN+Zin6i/Syev1f8BSReOgyWhBCVjDBVrKlv+Tx5h7fidWy3oRmV CgQGlnHy/YTKb23cZE209+nVMWFtqas5adoZT+FSJyjny0ohE/pbB0+kSjoUw40RsrFq HOcwdwAX4+cucQgOLYEv2tGNTfjVysK0m/NpP8U5ZSiaxk2mrkOKeWQyuh4sJuSWm/e4 AkkfQpuNc3Z1py3XWqNxdWspnel7IKnEhMOlGeU76PzBiUKr8FS0r6LPRpeit5MbYTNh TfzVwrzjfKjWfKz1nbUl3ctmA20GytAusaSGwqjhvxEiZ8XZm8Q5wPlrOjThdhsvIja2 BEng== 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=kNBxEECZ8nYVRQBlRi4s4bPsYk+6wGvc+UHQLe+LfQY=; b=hQBk6h+kcYTD9LDD3KG4y7gfSoxRlD46dtRxW4RV/aIqI+mb+Zklv9HeeL+DUFBgSi +7+8ESmeCbTQ9Vlu5zqwiKC+daaUbhHWCIhUXEm8sh4TgSONgiWY4CstgNh+D8bqnmnL r0bIOpw6IH/ml3QLu1vVVj3A7zfnFE4QmUq8zaWUGl/xrDdl4IqAujsQFu4lya2IRD4m KuBpXG4cmFctD7YrwVTKodcMmkcS4Bq9Rh2Ho+Y4ZYdjF8p0lPtS1sQMn2LDc3zeAnRN d7yGJf0ZUoASXUlUtP6kR8HlhrbhCtNN8PApjX82QeRI4qysdJqNw6rwWebBlRU1FeyA JMpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FuT01ILc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h190si14720319pgc.282.2022.02.09.05.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:55:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FuT01ILc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1DC1AE054875; Wed, 9 Feb 2022 02:34:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234841AbiBIJKN (ORCPT + 99 others); Wed, 9 Feb 2022 04:10:13 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:49264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233465AbiBIJKA (ORCPT ); Wed, 9 Feb 2022 04:10:00 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA8C7E078229; Wed, 9 Feb 2022 01:09:53 -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=kNBxEECZ8nYVRQBlRi4s4bPsYk+6wGvc+UHQLe+LfQY=; b=FuT01ILcnQE1hlwV0N6QoRzje7 8leIgTUsGHbhfy7cNPjN8ZrjHcSG0wypOKtgyb8t04GcdHB5bH2yXofjaCs8wpl1CIqqOkec3R9OV nApYAVlzrV8ZfypyHa4mIELkzUQhBcEibVe6rjqueMf/NegoUT6rvZNNsoc4Uw2YqsFP9t1UTNqIf jNC72U1XwX8JGYxfA0nQlHqSjCcVfzkGjPBeAtSDlLt6otVC5r0jjKiMiAMeC9xmjVZ1sMuKSSBys rCFVdCTkXxb8dN7UTtpmiYJWVdWQaduq6Qanmd7JpqkCzBgIpJKnbvw5fQS2u7k6VjPF4p+ScGV/Y cDMFRHqA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHiyL-007ELN-4I; Wed, 09 Feb 2022 09:09:09 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id B7873986226; Wed, 9 Feb 2022 10:09:08 +0100 (CET) Date: Wed, 9 Feb 2022 10:09:08 +0100 From: Peter Zijlstra To: Namhyung Kim Cc: Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , LKML , Thomas Gleixner , Steven Rostedt , Byungchul Park , "Paul E. McKenney" , Mathieu Desnoyers , Radoslaw Burny , Tejun Heo , rcu@vger.kernel.org, cgroups@vger.kernel.org, linux-btrfs@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: Re: [RFC 00/12] locking: Separate lock tracepoints from lockdep/lock_stat (v1) Message-ID: <20220209090908.GK23216@worktop.programming.kicks-ass.net> References: <20220208184208.79303-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208184208.79303-1-namhyung@kernel.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 08, 2022 at 10:41:56AM -0800, Namhyung Kim wrote: > Eventually I'm mostly interested in the contended locks only and I > want to reduce the overhead in the fast path. By moving that, it'd be > easy to track contended locks with timing by using two tracepoints. So why not put in two new tracepoints and call it a day? Why muck about with all that lockdep stuff just to preserve the name (and in the process continue to blow up data structures etc..). This leaves distros in a bind, will they enable this config and provide tracepoints while bloating the data structures and destroying things like lockref (which relies on sizeof(spinlock_t)), or not provide this at all. Yes, the name is convenient, but it's just not worth it IMO. It makes the whole proposition too much of a trade-off. Would it not be possible to reconstruct enough useful information from the lock callsite?