Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1109393rda; Mon, 23 Oct 2023 02:54:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGByjAHe7vBQ2/kCBPhc6HfUdU+ns0ukjmA/ZvEIc+Q+O2VI4pwGAUcR0KzunrlBG6zUrzq X-Received: by 2002:a05:6358:9d85:b0:168:eaa2:a6c4 with SMTP id d5-20020a0563589d8500b00168eaa2a6c4mr40170rwo.8.1698054853553; Mon, 23 Oct 2023 02:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698054853; cv=none; d=google.com; s=arc-20160816; b=dExIn1gefUOV21E4j5GrKy5497zQlxbaPBr3LSFyL20bnuii3XENz/7AKvu5jXDRjX FG2/Jcc4GQ79csebVo9u+iY7F5hHifX1IS1J0guUWP0Bp+OoS4Q0nr1YZwPT27HGW4Dg jTWSr+xiFgBVksXBLj/8V+9+382bNlP6lpQOldPhpo2JkUg8BChQQ4mBl6BsdPHQsN0c MaX9u+M6sw6b/bljzm+/ZU1dra6nx9/M8xCA3MuTyWj9YRE5QgcAM6Y2dSMEbj7r8jgp JzvcwKiWRB6ItQckjlxTFtmf/kp8dMAUtTVAB0nW3EnEEiV7Il9rPraIDS0q/8Q/Q0+l TMyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=5TEX1NBJZk6RU6eh7yI/QX4WuIU+RE9lCnRfwDOqNss=; fh=pKnPKUsir0uEGSsor+4Zc2vgbu+g+ayvUgsdzkuXaoA=; b=HAYaHp+BkMAOD8f61UVFFbvgEI7+xma5jJspalsLNc7/xbkw1Nvfx//BdaaIgQwlf5 863w83LspuAzZQ63P7EGDio51WwARhCZtVBNDSTQPXG8YzMP6/OaY+hAAcnNHwFcxa/U HdyEIm+UQkMJV/suFtlvZIMYgCjlXbNuIP93+NbS0SiLPkqtFHH5HcI00OSWbAzLNnO2 IIWNEHN2H+y7Q4dYbmzYsPcoztSrTI8BoNtvaUFrguzJ+LbWDBEpGAbHNCZmSTC6ZWRT 1lJ3uS6OWFfb9YGndPgk5mzjOHDhjtRx4lUlXKyfn+oZqWgWmEteXfVr9xy5z6r+fQOJ fzLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VNlf5poc; dkim=neutral (no key) header.i=@linutronix.de header.b=LX5l2lre; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i131-20020a636d89000000b00580e32f7793si6058339pgc.151.2023.10.23.02.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 02:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VNlf5poc; dkim=neutral (no key) header.i=@linutronix.de header.b=LX5l2lre; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 712378045943; Mon, 23 Oct 2023 02:54:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233064AbjJWJyJ (ORCPT + 99 others); Mon, 23 Oct 2023 05:54:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233068AbjJWJyI (ORCPT ); Mon, 23 Oct 2023 05:54:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89A03E8 for ; Mon, 23 Oct 2023 02:54:06 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698054844; h=from:from:reply-to:subject:subject: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=5TEX1NBJZk6RU6eh7yI/QX4WuIU+RE9lCnRfwDOqNss=; b=VNlf5pocsQ++v3IobxwfV+H66+nuShGuhOyU+iM1OtSjL72LR3hJhXl5jLyWArxFrOA/mr y+LuxVfZB08gMAJQ/1Df7/eeOQdJA5P0YZbnyvSX/GW+OiIML4PHtYf4L0xBrM/y4uE7HV 1hZkeakWXdItFmdpuXQczl6cVqEHuhdrsMYhwKMpK/xu/4BDm1InskDg6x+3yWIef8Lat/ l6m8Zz1gZTPwCvxe4tvVuudLmeCJPKVbrTLcat2N8Ihh/sTy8u1dV5Y28vr43k4+YlJhHa TL8pL0w7OgX98zNLEWx2ObZ7FWKGNDg3tug9iDJKO9vliYbVNVTvYuJUDMSePA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698054844; h=from:from:reply-to:subject:subject: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=5TEX1NBJZk6RU6eh7yI/QX4WuIU+RE9lCnRfwDOqNss=; b=LX5l2lrehEuOuK04T+VNrQHu225DSxcg3CaEjcPMAEgBz1M2xig5WBsom6aw+mkPmFkBAE 7VkjjTAUFaX928Bw== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 3/4] printk: Skip unfinalized records in panic In-Reply-To: References: <20231013204340.1112036-1-john.ogness@linutronix.de> <20231013204340.1112036-4-john.ogness@linutronix.de> <87mswh6iwq.fsf@jogness.linutronix.de> Date: Mon, 23 Oct 2023 11:59:58 +0206 Message-ID: <87v8ax1x6x.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 02:54:12 -0700 (PDT) On 2023-10-18, Petr Mladek wrote: > I think about "empty line record" and "records with missing data". > And I would rename NO_LPOS to EMPTY_LINE_LPOS to make the meaning > more obvious. OK. > Also it would make sense to use 0x2 for EMPTY_LINE_LPOS and > > #define FAILED_LPOS 0x1 > #define EMPTY_LINE_LPOS 0x2 > #define DATALESS_LPOS_MASK (FAILED_LPOS | EMPTY_LINE_LPOS) > > #define LPOS_DATALESS(lpos) ((lpos) & DATALESS_LPOS_MASK) The existing debugging tools use bit0 to identify if there is data. Bit1 is really the _reason_ for the missing data. This can be seen in the definition of LPOS_DATALESS(), but it needs to be documented better. (Ideally where FAILED_LPOS and EMPTY_LINE_LPOS are defined.) John