Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3151042lqo; Tue, 21 May 2024 08:13:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDS9ZaZcmBKUYkBHjwRX/ONBSFcfNTDfFwedD0+4zP+yLvSoONzFwYMhzVWHM2DI5BJQouR0WtZAo4f20/CPiby9jpuMno43i0e5fH7g== X-Google-Smtp-Source: AGHT+IGf3G83Ozi2iwBWrgQJMVT6zDwoq9HZQIEEPppYy9NQOFfcJWWnSlFMwXN0SJzCa3eq8pEU X-Received: by 2002:ac2:4108:0:b0:51e:eca3:e02f with SMTP id 2adb3069b0e04-52210585189mr19897099e87.67.1716304409785; Tue, 21 May 2024 08:13:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716304409; cv=pass; d=google.com; s=arc-20160816; b=RAhEmaQYNqWr+eWYUDbwKKXRmBA6B3KVGORlmVlXrk+y3pOizIWN2vt4c1gswgzVAO /LoMZ/LJpfrWD7YqAW3EmfIF/CwiXe08watJc5l2ti5ba6LSSm2G2N26UTG8HpZOXtci 7wMUhZOHDlcVkThBRmm9Bmpf87Sc918m7J7K6+ARG3GKY73HyeTaXM1UBvWprYQt9h9X 3mN4i9qeAbYyBr56XZsK4Skxhn5CvysCZbm0LU7UJGyNQqLgMoj6m+J3gi9v4tPA8/ls TLlXrTPU8X7P81E566ZO4karV08kLXLyyAqbJ/vBw4f/HBK9RtjCktHnfOQ/GuHch2Qp ujXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U/hhHlpDkBPz/Bdt9MnJbXdgG7b5bZizGlH9JPpsLwE=; fh=fs2TuHvZ18CkhUUuTUKexuq9lmHKemw0z6UxuA31s2k=; b=qA/aQ2osm5WRp86eOMACjQ2AtZsOOQSBz1GyQeHH3LJ1uII2EFvJix9r5wBi1RlS8q JFcwBDtkKJr/gntmzv6t01QcUzmUSUpYEamn5wrNi4kwtNiYxP/4gZKCFAQjlWeFAv/F o9MMXAGYkIXHn8xnjvn7dXf7PcAjs2tZ44X/w5nuh+7jmfz3rfK9iGFrIUaIFF97KDtx 6ixWVQhXdN8UjTZj6s0OBnNFQ0vccx3QMTUnm/Vnme7tkGXpzUqmXx4a6yG4pb+ItRJG El28Cb2p5xkvGgRyY+1pWaS2z4G2x+wKsxROUUOZeAZIGcFCo+0PWqhpI62nSy0eRJK0 Sgow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=bcIXzonQ; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-185139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3271edsi14052535a12.367.2024.05.21.08.13.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 08:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185139-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; dkim=pass header.i=@suse.com header.s=google header.b=bcIXzonQ; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-185139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 248A81F22469 for ; Tue, 21 May 2024 15:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF168143C5F; Tue, 21 May 2024 15:13:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="bcIXzonQ" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85638143890 for ; Tue, 21 May 2024 15:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304401; cv=none; b=FdCn72F6r1HFy3dpt41+zSQJmN+uFHDJq8sx7NhzVAV2DheqcoSQAO9wtP56eHVa6PbnZja60THM0eJ+vw28KPXNA/cPTlC8qMpApzn7eoIfajAObwlzccVWaqZn0c5owPSV2BrYFBMumhC5fchgPOln1PnT3P8rQOax0r8fLRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304401; c=relaxed/simple; bh=8bE5fmp7cBc38Xs4Y+ED2s5xVGd7IlXH9uf9nvvaQhA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hLhFOWe5JLLtuG3Y9VV/ShrUCipcKbdlLpiRIDCLsktCFb7DaxwxffzykBF4E845NM06ll6IX61uJK4KjMlQ7Gttd2173bkzE4yP8nbsXucIP4frHjYxUhwRTDYbC4fowPqWaseVq0b2lroJDdOEWI9eQPYl8xK5aMyWEehnFdU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=bcIXzonQ; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-56e56ee8d5cso10012343a12.2 for ; Tue, 21 May 2024 08:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1716304398; x=1716909198; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=U/hhHlpDkBPz/Bdt9MnJbXdgG7b5bZizGlH9JPpsLwE=; b=bcIXzonQKb3WEE/D9qMpTf/N0USA9axXXB1fqqpf2S/9vW+FzFRJI9mxnv+ZPBlQw2 v9Mn25t3ZkDP+S1wpWsTWqe7FmetEoUHW3cnBD9SLt6GxnKaSkCyfJA4bRWAKdIAzzD9 garHflK/rLSsAF+saLjXCvdmNQQipEb0EUuBt8S5kQYRVSZN1inzJRhXoqexHsmuBn13 hvyapSlLyuDIvQD6YeSnFVtidHTx0IUWTIoRYrIL/xHVFM9g1mFT+mkvTkaEaFi+Pxw4 q0dxjVwFgrrl6RGhYrCi191P/jmRY5W7Ub+aEtFYbZvQuxovgIX+uqY/TTnI/OWgHbsS +g0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716304398; x=1716909198; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U/hhHlpDkBPz/Bdt9MnJbXdgG7b5bZizGlH9JPpsLwE=; b=iuNtUN2OpJNE2oQf0xoCZa90+3t+XGuMHRaEpSFJe3zG8MB7ja4pzgbybJJfTPI7C3 BDWl9cZ3loJkj8JzEBax8RdudgYv41d7C/koAU0WTCOL6+pLwRb7KeucWQh7oT/SViJ6 gYOnaKjUzDUt1F8JVfJaQtwd/HGL+YluFYvopI8EDw2I8M4ZDo1r/Pd5GkS5pcVijqrg GCDo26TB+lH4thga4YO3cSPsSo906umQ9GFsfvXAQci+d82kyHZ4H8vgOLOD7itq1pwR g0iXOZTfy94V0bKW74j8co2iqmlr6yPI3k5BCQ1cvLQ53aBSKWE59IGSYKwGZ0pAy+Gu BZ7Q== X-Forwarded-Encrypted: i=1; AJvYcCUC73IK2UvmnZCtOXDRf7QsMvgn/2dD2ogyFosvaPbpxZPzTIVtNQx9seOOPctfpwfSqs6NMUC8bANqtp0mCHRbYIqjaOBOaB8DW+UC X-Gm-Message-State: AOJu0Yx8/8jW/0Sjew0hmftLbhabvtJirNI812aFSJN76VDUPPy7eKod wxbGzPnp+w3/9308PRk4u/bfz2RtDSAHQPPdTbZG1I3PTy99bS4ibVs6y9MpTXg= X-Received: by 2002:a50:8ac7:0:b0:572:4e6b:c31 with SMTP id 4fb4d7f45d1cf-5734d67ecc8mr20016557a12.34.1716304397844; Tue, 21 May 2024 08:13:17 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733becfbd3sm17295650a12.44.2024.05.21.08.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 08:13:17 -0700 (PDT) Date: Tue, 21 May 2024 17:13:15 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH printk v5 30/30] lockdep: Mark emergency sections in lockdep splats Message-ID: References: <20240502213839.376636-1-john.ogness@linutronix.de> <20240502213839.376636-31-john.ogness@linutronix.de> 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-Disposition: inline In-Reply-To: <20240502213839.376636-31-john.ogness@linutronix.de> On Thu 2024-05-02 23:44:39, John Ogness wrote: > Mark emergency sections wherever multiple lines of > lock debugging output are generated. In an emergency > section the CPU will not perform console output for the > printk() calls. Instead, a flushing of the console > output is triggered when exiting the emergency section. > This allows the full message block to be stored as > quickly as possible in the ringbuffer. > > Note that debug_show_all_locks() and > lockdep_print_held_locks() rely on their callers to > enter the emergency section. This is because these > functions can also be called in non-emergency > situations (such as sysrq). > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr