Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2085113rdb; Tue, 20 Feb 2024 17:23:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjPxHco5M67T2My04HnM9PRPsqBn0517mAsLko9DiRZTR3vTEEqjwm3BBrmfoRzkYmNn5rSO6my0+Fm9d6UYSV7HjWzvP4ZoSc2YoCug== X-Google-Smtp-Source: AGHT+IHOa9lQash1ZNKkgxx9CXnZtzdK5WXl9xH/dUk6I6PdaOD7WFWD2EuXHV8eYAz4GAOG/p3C X-Received: by 2002:aa7:c309:0:b0:564:4029:33dc with SMTP id l9-20020aa7c309000000b00564402933dcmr5475668edq.33.1708478626255; Tue, 20 Feb 2024 17:23:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708478626; cv=pass; d=google.com; s=arc-20160816; b=qWGqMpjN3qHbvTgjYxUZ/WPJUnQh8+r+dVViSZoPkvI//WHcSNEyQ3eMTOnLPb/J+x yZjDNutn8d/UU3T9oLckgL8cq815WBJcSQWDvMTVRLUunGsr046ox3JrSdhBsGnn93VG AWkABtDQwlAkN6gOvnu0TfpORfBozMTS92jfahm+MxmiAY3CSV5IeepvMjl27BRgbht4 RgIf6EiKvf+sMLHo0372IvyjK5XrcS9GMfcJDp8hBR5HIfYnmDapeHpU5GnhH7ghdryJ LGmwINi2DuDJXDPaEXCMd8bzPzumKNsadMj6Np4MTwnYHXnMTozR7R34ArfbFY0yDRU+ uheQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=tYuw9KFhvUPnUc4KFeQBWPEh0+WnRHgLCJTexqCSEzs=; fh=aV0ZmzXPGilqBFyOcvORhxg12S8wApPYV4snLl/zrNE=; b=wF2WT0MT9DgLta5PQ5G00Lxfl05N9BZfp9R4lvK02ZsmHQ43zNB9ehU7WtDkULj1wh sOxJCqLRvg7znCI54LvErU90iMRqylpWAd6g/AdSdPtGqyD/juVZG0tMKzjxSYvSenl2 B7e0sqJ73lV/thn6kqbV52w6nrQro/lCvQh68k0Zuu93qw8cmhB2r8JExjaIYlb5JzbU EDMxthl0AK5Bq6DYTYDpVCi0iLUUJXwUB8c1HYEj5PNq/rW0bYqMrhKyl4mKCcqwMIHz SelFIsrq1eApQjJJGGyGFOfPktUNHh6Qlbhjym8fI1oekkSAfTpJp9UkSDnuaf5NppMd nVqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-73902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73902-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v14-20020a056402174e00b00564e2c12e07si537610edx.642.2024.02.20.17.23.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 17:23:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-73902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73902-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 078841F244BD for ; Wed, 21 Feb 2024 01:23:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DCD73FE0; Wed, 21 Feb 2024 01:23:40 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE4411FBF for ; Wed, 21 Feb 2024 01:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708478619; cv=none; b=ndZWfT8XS9QDlsJw2rOrSbrfw8cafgVV6QCbX+PCJcB4MGT1ro6w8aXCQ4vapIHBpySUOrYa8lI+8uUBqNH70RTZC0xSYcN7YlyjfVINJkQ6e7laVvKLanr1wyBH8tQG2gmiL0/Rb/vw8g/ELZlK7M54ig0eBvfA0t0YuBf8eN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708478619; c=relaxed/simple; bh=IuGrRgwHUhnGKbjOR1clKgykUMeR34I+TWtRYnHTdrc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=j/WrmWTLRcdcbt+/z7jF1YeaqsN81QFPI57EMYiE7tRiU3XAHYW12OdzvcdRcmA9RYtNIk539HT/fm6CWFk5UCFhCxU2cHrXJw+8lCGceeswbf3F/KzXxnzi8yQErnJ4A6AGE/owYnoy4Hz+T4fEr6lPPVdefR0wpEXlhlqzfck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65D91C433C7; Wed, 21 Feb 2024 01:23:38 +0000 (UTC) Date: Tue, 20 Feb 2024 20:25:24 -0500 From: Steven Rostedt To: Mathieu Desnoyers Cc: LKML , Ingo Molnar , Peter Zijlstra , Masami Hiramatsu , Daniel Bristot de Oliveira , Vincent Guittot , Juri Lelli Subject: Re: [PATCH] sched/clock: Make local_clock() notrace Message-ID: <20240220202524.2527c110@gandalf.local.home> In-Reply-To: <182553e4-a2e2-46f6-8c50-2de6f8effee7@efficios.com> References: <20240220202002.38fec245@gandalf.local.home> <182553e4-a2e2-46f6-8c50-2de6f8effee7@efficios.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 20 Feb 2024 20:19:32 -0500 Mathieu Desnoyers wrote: > On 2024-02-20 20:20, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > The "perf" clock in /sys/kernel/tracing/trace_clock enables local_clock(), > > where on machines that have CONFIG_HAVE_UNSTABLE_SCHED_CLOCK set is a > > normal function. This function can be traced. > > > > I found that enabling the "perf" clock on some debug configs and running > > function tracer can live lock the machine. That is, it goes so slow that > > nothing moves forward. > > And I bet this is why the try_cmpxchg for reservation was > looping endlessly. ;) > Yes. Debugging that was how I found it ;-) sort of. I went back to another machine which triggered the cmpxchg issue as well, but when removing that code and going back to the old code, it then locked up completely. That was because the other config had more debugging enabled. That debugging lead to finding this. I'm now going back to see if I can trigger that again with this update. -- Steve