Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2393924pxb; Wed, 9 Feb 2022 18:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpGIjJpLNU3bEaz72obqM5nFt7F6cUfRZpjda+fjdlnXbB2pXUo1g9Vm85cGl6+JUrFNWj X-Received: by 2002:a17:90b:1e05:: with SMTP id pg5mr345188pjb.86.1644458924050; Wed, 09 Feb 2022 18:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644458924; cv=none; d=google.com; s=arc-20160816; b=lcFitAPyIFVPJtO/6aliNPE+s6vatbI9d0+z3XXsOs+uOfwqC3rn468+Y6fXPo+XnK souVQk7Rg6CIDlCEro2T9qtLnmeVGTtUxCCaigGGb0nylvFQVDJQhPJxtQhB9W2y7mgS RnXtgRVs5nCyKbwPzeI5esppMJCDFoxnf9C/MxChQ/EGrLsgYWRzvnBWKh/x7XbPVHsY H7riP28aTQyy2tuV85HmaSx4Ns85Cr39aXCeVmcQT3c3mwNfEEuTSChudz4aV6a1V7gF NEdnuHIPxyMT2MM2JE4SJNYV2vLo203/D3QIhkyUvCK2Rsg7GdwXGqwzOyIIhIdf9u80 v2LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=hi13+0AtzbStYByZM4x4aFlINJC7bo3Kt6Lh5RP5h4I=; b=dnAcvWArx86Y4bx6DoSCXpE5SnchS2UK8kIhTgQna3psUdtQZjFtdq4iwmW6pu1gLB DoIXthNKEH33RCwv3ca5hAruWfQ2z1UP7PhCj59ao++xGoEOSKFMtriAjfGJMwLqQvBW qche0eRZSEOu8y/9TgGTnq6VwuWaKsHzzwfJL4hV5zZldKGKCztYsaHSKpdWNrpghl1N w9nKHpglFLyD4dZ7yvw5H5CdVhej/IlymYDXx23Epq5VXNytEV5uK+WaxfOfBCbZq/sX grycIzZNx/M5D8/bhrhuSLGQqBahRnZLQ8wDkQlZYrAju0xltQulQFyY/Kx7vxiTi4EZ 15OQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a1si673118plh.461.2022.02.09.18.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 18:08:44 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0EB4FE0; Wed, 9 Feb 2022 18:06:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232291AbiBJCC2 (ORCPT + 99 others); Wed, 9 Feb 2022 21:02:28 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:33556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234279AbiBJCAP (ORCPT ); Wed, 9 Feb 2022 21:00:15 -0500 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E18FB2AA8C; Wed, 9 Feb 2022 17:37:13 -0800 (PST) Received: by mail-ej1-f46.google.com with SMTP id ka4so11626412ejc.11; Wed, 09 Feb 2022 17:37:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hi13+0AtzbStYByZM4x4aFlINJC7bo3Kt6Lh5RP5h4I=; b=dS54NUwsHmTH733rbm6skuFOqNSWHxb0d+f/jhaNF5rcqklxEw9ZbWjwh9/rUMoYdY Fs6FF6u7mOsAM/Rkjy5+dyZBUsfH9XLdr5PhGPDQ2XdjbDtKV/kxZ1PUsnz7+qxIPuh4 MsLR7ayLq6BV9pTh5EqLKy5278SH1iL5vfvW4AFzV2ex0Xw4wc0RmPBm8zdTC8M6jbRp i+5Pu/lzSj3BhIMmthm3IvfRJ5D4zKRsxfzFGGy73l6LdAHpyO3Vs0v19tb4HsEK4WoI 6Y+56wa7uchPqi76l/s2tle42N9CGV8GkWRtn33Qk39X3cXa6ffQaR6jJAp4YtljvTBc 2zSA== X-Gm-Message-State: AOAM531cnxLpkYwASiI2Ouvm4Rz76Tk5Y2NC0Pf9JJGB1+Gn3Xr+RIN9 OQUCfoPPPZg5SvaZ8baBXcWqAH94YIUjjHVoM+wRyvP2 X-Received: by 2002:a05:6512:3186:: with SMTP id i6mr3590137lfe.47.1644453189598; Wed, 09 Feb 2022 16:33:09 -0800 (PST) MIME-Version: 1.0 References: <20220208184208.79303-1-namhyung@kernel.org> <20220209090908.GK23216@worktop.programming.kicks-ass.net> In-Reply-To: <20220209090908.GK23216@worktop.programming.kicks-ass.net> From: Namhyung Kim Date: Wed, 9 Feb 2022 16:32:58 -0800 Message-ID: Subject: Re: [RFC 00/12] locking: Separate lock tracepoints from lockdep/lock_stat (v1) To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , LKML , Thomas Gleixner , Steven Rostedt , Byungchul Park , Mathieu Desnoyers , Radoslaw Burny , Tejun Heo , rcu , cgroups , linux-btrfs , intel-gfx , "Paul E. McKenney" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 Wed, Feb 9, 2022 at 1:09 AM Peter Zijlstra wrote: > > 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. If it's only lockref, is it possible to change it to use arch_spinlock_t so that it can remain in 4 bytes? It'd be really nice if we can keep spin lock size, but it'd be easier to carry the name with it for analysis IMHO. Thanks, Namhyung