From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 973CFC433ED for ; Wed, 12 May 2021 13:32:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5911E613D6 for ; Wed, 12 May 2021 13:32:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbhELNdQ (ORCPT ); Wed, 12 May 2021 09:33:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:45702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbhELNdO (ORCPT ); Wed, 12 May 2021 09:33:14 -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 B46E9613CF; Wed, 12 May 2021 13:32:04 +0000 (UTC) Date: Wed, 12 May 2021 09:32:02 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Leo Yan , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] locking/lockdep: Correct calling tracepoints Message-ID: <20210512093202.5fca1259@gandalf.local.home> In-Reply-To: References: <20210512120937.90211-1-leo.yan@linaro.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 May 2021 14:37:12 +0200 Peter Zijlstra wrote: > On Wed, May 12, 2021 at 08:09:37PM +0800, Leo Yan wrote: > > The commit eb1f00237aca ("lockdep,trace: Expose tracepoints") reverses > > tracepoints for lock_contended() and lock_acquired(), thus the ftrace > > log shows the wrong locking sequence that "acquired" event is prior to > > "contended" event: > > > > -0 [001] d.s3 20803.501685: lock_acquire: 0000000008b91ab4 &sg_policy->update_lock > > -0 [001] d.s3 20803.501686: lock_acquired: 0000000008b91ab4 &sg_policy->update_lock > > -0 [001] d.s3 20803.501689: lock_contended: 0000000008b91ab4 &sg_policy->update_lock > > -0 [001] d.s3 20803.501690: lock_release: 0000000008b91ab4 &sg_policy->update_lock > > > > This patch fixes calling tracepoints for lock_contended() and > > lock_acquired(). > > > > Fixes: eb1f00237aca ("lockdep,trace: Expose tracepoints") > > Signed-off-by: Leo Yan > > No idea how that happened, curious. Thanks for fixing though! Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Thomas Gleixner Acked-by: Rafael J. Wysocki Tested-by: Marco Elver That's embarrassing :-p -- Steve