Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1306343pxb; Fri, 1 Apr 2022 09:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy71r1W4oaEqQ4y3BB6Oy7M7/DHxRpW0m7M530+yZyuArh7u+mFk6OSmYbyG906wBsbzadM X-Received: by 2002:a05:6402:183:b0:410:fde:887a with SMTP id r3-20020a056402018300b004100fde887amr21455856edv.243.1648831505768; Fri, 01 Apr 2022 09:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648831505; cv=none; d=google.com; s=arc-20160816; b=AQ4ncDVvvvygvHhffgy91a70p+92Qu+PSDaidziPNu412/FL7XeVSeL4+ysIXVZ7Dt A1TosKBfiEZMaY6rSKIVSwg2+dlLaL4nhPAbMQnzMgyHOWzFl/pEsxDWDElNuaEhZ57X IOi7lZ2vbn/OFQuBNBrHqZXKpRsGijHu2Qec2WA1sqWjfF/fC5j7Y1ukl6jJWSZYnQES bXzY1FJkxc+JMn5RqFxgZDbVolpE4h/yfpjOi8rhbKTD0jaKGq39oCv1Cx521ZpjFu2P 8SAf1lpD8Dhosp3IVuH4tWz0DuIvb7VAAcGy2+jPL5LYDAIimPv1pRVo/jNGs16yawnP Nk1g== 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=zD1bh8zBdF6SWEbtcuaNiNWduZj2pRO29dlVMIKrE7w=; b=HpbHwPjrfu6IsBgrk/EvL+Yies4NYalmIIlbvZLoxY2aIp0CB7wQRoBjM40KXx+WlO 9/vt16jc5nDFvCHkv1rwu6GVZqmjYl5hNc7gF4HRUj2cmW710JdxDZoHJkMfARB5QMfY 63rvzCtuPNiPvh+dSV/Ws+PKxinKXZEcdiFRU2Iz9WSEN/+J0afhH7XwvXuPQJrPJsxm vDh0ucj/vCW3Kcl0L0q5FZuMsHEOha8sKfQfc2jYeoSPFCDmUHcLKDdeRtaTvaGHaOiw UnAg1vXK/fQF6f4GVGdSiGnr7pZ/hPrHVPVgww+4RH5QxULubBoWkIwP9lB65FBjy17X FHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=q4bzTMMt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a056402190c00b00418c2b5be02si2217739edz.228.2022.04.01.09.44.40; Fri, 01 Apr 2022 09:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=q4bzTMMt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344529AbiDAJ2U (ORCPT + 99 others); Fri, 1 Apr 2022 05:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244634AbiDAJ2S (ORCPT ); Fri, 1 Apr 2022 05:28:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB772FA22B; Fri, 1 Apr 2022 02:26:28 -0700 (PDT) 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=zD1bh8zBdF6SWEbtcuaNiNWduZj2pRO29dlVMIKrE7w=; b=q4bzTMMtSJLueTsGJcO/34ysUf wyz9AQNc0dJ3tUyivpAw4uGN+3qThn7qqycBSDot6XOLEeD5YGQ1VNEUQV8X+Dzkn9dg4SKkgVoQV IjVXUjTTMHhQCGjjWzQjmucW6GB4fR194p4vmecZF2ouped3zOnRKYU9GwkHqb6WLgrBmpX8nksta 5p4tOd3I8CdGlAtEvGgFqgJudyNuHyxEOidXQcJNBMa8A8e0CoccoPzhZtSMFCusH8a+81q1qokJR yGTw6U+gJA9bQMziZ0usxZ0DYgClHXU1kzgCCEwI+0F3q2WNJG2D7H2sw7TAYwxUAmR+jR6VHTfM6 tHJTFp7Q==; 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 1naDXe-0033hJ-7N; Fri, 01 Apr 2022 09:26:02 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id E05619861EB; Fri, 1 Apr 2022 11:25:59 +0200 (CEST) Date: Fri, 1 Apr 2022 11:25:59 +0200 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 , Arnd Bergmann , Radoslaw Burny , linux-arch , bpf , Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: Re: [PATCH 2/2] locking: Apply contention tracepoints in the slow path Message-ID: <20220401092559.GW8939@worktop.programming.kicks-ass.net> References: <20220322185709.141236-1-namhyung@kernel.org> <20220322185709.141236-3-namhyung@kernel.org> <20220328113946.GA8939@worktop.programming.kicks-ass.net> <20220330110853.GK8939@worktop.programming.kicks-ass.net> <20220331115916.GU8939@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Mar 31, 2022 at 11:26:17PM -0700, Namhyung Kim wrote: > On Thu, Mar 31, 2022 at 01:59:16PM +0200, Peter Zijlstra wrote: > > I've since pushed out the lot to: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core > > > > It builds, but I've not actually used it. Much appreciated if you could > > test. > > > > I've tested it and it worked well. Thanks for your work! > > And we need to add the below too.. Thanks > ----8<---- > > diff --git a/include/trace/events/lock.h b/include/trace/events/lock.h > index db5bdbb9b9c0..9463a93132c3 100644 > --- a/include/trace/events/lock.h > +++ b/include/trace/events/lock.h > @@ -114,7 +114,8 @@ TRACE_EVENT(contention_begin, > { LCB_F_READ, "READ" }, > { LCB_F_WRITE, "WRITE" }, > { LCB_F_RT, "RT" }, > - { LCB_F_PERCPU, "PERCPU" } > + { LCB_F_PERCPU, "PERCPU" }, > + { LCB_F_MUTEX, "MUTEX" } > )) > ); Duh, indeed, folded!