Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11613568rwl; Tue, 3 Jan 2023 01:56:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXtscqnFYiEqCAKsENyidWa8odQN5KHtXouNABAKNY+P80xBfAktbcMj1+3Dv/xLJRsECno/ X-Received: by 2002:a17:906:c24f:b0:7c0:efb9:bc0e with SMTP id bl15-20020a170906c24f00b007c0efb9bc0emr34948077ejb.62.1672739769107; Tue, 03 Jan 2023 01:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672739769; cv=none; d=google.com; s=arc-20160816; b=o1c9cbP3gKhXruXsLWhhXDY6kFJqhBzLDPvUT6fPTicybsHTOS+/GjYfEIfOugeJvU tewcJ2fAPgYgXnbzNJgRyIxwsM/7O+4fijmxv7lQZtp2tKjCgWlnKScogQJTS9jO/Gok lW8AGgc2q1HRpVvnU9PPDO3IJTFZ0B3DbOCL4l1I9hJgAiPiGYepS938NTBVmp7JJMe3 VV8bWqcu+yOiKbmmck+7/4B8pEKh2lWgvIuUM//hSFFN/8HjhOlRVisfQ95owdNQESYS 2a3EVvCQYQSfvoVI2COM50uPFveq2deYVKWvb9j/u9hAqwM/qrgWtuOFFuXRFt6tvnYE HL5g== 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=BIjLUFfj0kB7Uqvi4/DO1Qulkdn4TEAXOU07en8R1ls=; b=vGv0TN7PGheEf50z4WXDqaZkFUD/9ysUrwwyEsOv8sJKPNF/0F25gpnZ3EpSrCovr+ Vh3Ym9XILCTLHairgqAvhcSQlGtr3H9nvkyysMyrtmogYd7Nc/Cp2fv5u5CpfMXSE16R oKqxcm3JXk2ksSmW++lCDr3tZFaGg1l9hXThu7C0KRyWVIb9KwpucCwCHWoWynC1RMbI YkLXxOm0Uw3tnX1v/Ec5Fr1RqRAfIzyvKXbKr80eIONvzAGDJLpFTkJV570GFs5hVo28 WgPrR2m1qfNuMit+TyQCNVu3+ZwNa3C3lxVumouy+Li9CSJCkl0L+NigF8FfCX/aMJlz x0FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=nfuiFEuC; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs30-20020a1709073e9e00b007c080a3f372si30256949ejc.363.2023.01.03.01.55.54; Tue, 03 Jan 2023 01:56:09 -0800 (PST) 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=@suse.com header.s=susede1 header.b=nfuiFEuC; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237261AbjACJsH (ORCPT + 61 others); Tue, 3 Jan 2023 04:48:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237269AbjACJrg (ORCPT ); Tue, 3 Jan 2023 04:47:36 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD9D9E0DE; Tue, 3 Jan 2023 01:47:34 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 8CE4B60FD9; Tue, 3 Jan 2023 09:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1672739253; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BIjLUFfj0kB7Uqvi4/DO1Qulkdn4TEAXOU07en8R1ls=; b=nfuiFEuCP+s1hNMRLkKfGesRW61uLaudomobb0gnncuknFrCJ/hSrY7Sqm9iRWABGRNGE+ OpQ0BYe8Ie3LnCThnK1bM5eatlH5KjKN50gkxGjcmudmvxajarKkqrqwuGYeIgOZeeNz4i 2LmN6ZDSmgD2k8p+09JXzhlh4uI99To= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 709872C141; Tue, 3 Jan 2023 09:47:33 +0000 (UTC) Date: Tue, 3 Jan 2023 10:47:31 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org, Baoquan He , Vivek Goyal , Dave Young , Jonathan Corbet , kexec@lists.infradead.org, linux-doc@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] docs: gdbmacros: print newest record Message-ID: References: <20221229134339.197627-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221229134339.197627-1-john.ogness@linutronix.de> 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_PASS 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 2022-12-29 14:49:39, John Ogness wrote: > @head_id points to the newest record, but the printing loop > exits when it increments to this value (before printing). > > Exit the printing loop after the newest record has been printed. > > The python-based function in scripts/gdb/linux/dmesg.py already > does this correctly. > > Fixes: e60768311af8 ("scripts/gdb: update for lockless printk ringbuffer") > Cc: stable@vger.kernel.org > Signed-off-by: John Ogness JFYI, the patch has been committed into printk/linux.git, branch for-6.3. Best Regards, Petr