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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0F80C433F5 for ; Tue, 1 Mar 2022 14:54:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235468AbiCAOyx (ORCPT ); Tue, 1 Mar 2022 09:54:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235484AbiCAOyk (ORCPT ); Tue, 1 Mar 2022 09:54:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C8AA146F; Tue, 1 Mar 2022 06:53:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D8F386159A; Tue, 1 Mar 2022 14:53:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF33CC340EE; Tue, 1 Mar 2022 14:53:55 +0000 (UTC) Date: Tue, 1 Mar 2022 09:53:54 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: Namhyung Kim , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , LKML , Thomas Gleixner , Mathieu Desnoyers , Byungchul Park , "Paul E. McKenney" , Arnd Bergmann , linux-arch@vger.kernel.org, bpf@vger.kernel.org, Radoslaw Burny Subject: Re: [PATCH 3/4] locking/mutex: Pass proper call-site ip Message-ID: <20220301095354.0c2b7008@gandalf.local.home> In-Reply-To: References: <20220301010412.431299-1-namhyung@kernel.org> <20220301010412.431299-4-namhyung@kernel.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 Tue, 1 Mar 2022 10:05:12 +0100 Peter Zijlstra wrote: > On Mon, Feb 28, 2022 at 05:04:11PM -0800, Namhyung Kim wrote: > > The __mutex_lock_slowpath() and friends are declared as noinline and > > _RET_IP_ returns its caller as mutex_lock which is not meaningful. > > Pass the ip from mutex_lock() to have actual caller info in the trace. > > Blergh, can't you do a very limited unwind when you do the tracing > instead? 3 or 4 levels should be plenty fast and sufficient. Is there a fast and sufficient way that works across architectures? Could objtool help here? -- Steve