Message ID | 20230301012116.1488132-1-frowand.list@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3357613wrd; Tue, 28 Feb 2023 17:24:34 -0800 (PST) X-Google-Smtp-Source: AK7set8HTzJg4YfcU4YklHI+8+nc0vAi09/EeHXoQ6l3qGIfQy7Dy7xzGOBkV0szG2fhNxC0qidL X-Received: by 2002:a17:902:ec83:b0:196:89bc:7100 with SMTP id x3-20020a170902ec8300b0019689bc7100mr6051572plg.16.1677633874398; Tue, 28 Feb 2023 17:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677633874; cv=none; d=google.com; s=arc-20160816; b=k65nFaOGeVFku/WkQjxRVL3mAsjagMw5/t5Vo29hH1FFphVtq1q1oUwfjsmWiFznK3 pgNyche3mKHpUNZYohqtXuqPOQA+3Nq5ZFNhkEIpdLDpUUpcn7jzTtscpMWfE2Mg8JsZ lIKhjNv5vPza1et/KhFrXf9VxU0+P+PqUcw6JcQmo93USIMHfnjxlPDsSvMJaF2h7qpY zwd2j6ablP/vCRTxFlpTaK9WRc2pAt0njVegJtuf9YYsv/MyUHRFbR03zyIYnQTe9z9y MnjMl3sXJBFNgsot+xWrSAQ2qYBoVCZDFUtWadZKYXJduK+hX51iO3kVb/cXB1r/NCYp MwnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=V0dDKM/kz9j+kr4YipucQRbjkJuSAUreWGjHChZMyfU=; b=puoOc6m0pz7Rmp210XnL8pdhjiAPYP+tblsLwDo6Des1hw4wGkojL8heNcWfU5sVjA H/62lR4e8ocC/BB+nVFx4/7nMwDL7D0BwGDr+TX3ac7y2xyee+mn6kD+ROFgu5ftNxw2 nXdvzwshijrKFljWpw8qYCiw8Nd2PnmBlAZCn+P28LzxIgUjEHgAIj+hMPwUuw1+Gskx Pv6TDy1rLQ2VnQAmmG11KvI9YIg9LXY40FZmSxpVaT/RaYk2/92QwybQvoZ+yTCYX3Hv 9dyMhlOGb/ylnA6MrZzlp9NmI3EGn9YK7B0qQWF+FTW4uFquygDyYNgNImYZYGkjSdxC 8qOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j70Z6d74; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lh4-20020a170903290400b0019e2797720csi4160643plb.201.2023.02.28.17.24.21; Tue, 28 Feb 2023 17:24:34 -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=@gmail.com header.s=20210112 header.b=j70Z6d74; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbjCABWk (ORCPT <rfc822;aaron.seo0120@gmail.com> + 99 others); Tue, 28 Feb 2023 20:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjCABWi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Feb 2023 20:22:38 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D4CD32E5C; Tue, 28 Feb 2023 17:22:07 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id g6-20020a056830308600b0068d4b30536aso6694720ots.9; Tue, 28 Feb 2023 17:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677633726; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V0dDKM/kz9j+kr4YipucQRbjkJuSAUreWGjHChZMyfU=; b=j70Z6d74PxeOmjKCkXe3wzFvCUDGNQMIVJgZJLIB80H5UBzLcqON1dFrv8KYK5wdwc 7VOamfdrjECIxrS90d+V/UUnWd/frIxXi+KLwMx0xQFJkeNcUGf3Wovvf5LLuV3l3Upo 0wX2PN9bIfMISC0V1VONVxUwNeswAIJs01DK9HnNJ7bK2gOMr5tiBzAR7MwIt/RLDYrR InGI9xk39UvaSvdabX0kBG0bOahWv/tZrUnqz/toFzwQGTSzyRhhuR1DopzEIRiTlEoA tZ24iuuKF5wdi+kq7wFbFCZAsMVqex5i8zERzB9kWDn1CPR2nGPIlhlFsrnmvuRyi99l /iTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677633726; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V0dDKM/kz9j+kr4YipucQRbjkJuSAUreWGjHChZMyfU=; b=Hw2aF4pqAVOgfW/coYEfldySypmH573kJ1z/d1KG0Hn9UNEgR5pAGWBWgYW2jJbuLT GWJYRnGQ48HDFE0pjSLo6RN321sfeM6B3iXD4ueCa5b9L+lkJ+pnk/1GMElfvkhwxLLG F2p0RnsJYKEnEAotpEnNv4qcQ0HWxgPyiBT9avGI08mA2Oqjd9MnDMRlheQOUXtmnR92 W9Wi3n1qVgwBDtMRbstI9WeD41wj2lyaYgUxIt2xwNTqL6Ch0E1NwEPP3LPe3jyOqmhq St6MZGy4occFmxtZ1doziQ+ZeBsVSHZJDJK4KWpd20mmVsB15fK1eMIenz7YmmYAcr7s Xbsg== X-Gm-Message-State: AO0yUKXN1f5v5EJHazO2YIwgV+OSu615EGIJvuEysvsFgbifh3gx5U/F F8ePlWUnx2Wqpgd9KHz4ju4q9kiXt2o= X-Received: by 2002:a05:6830:829:b0:68b:d344:97cb with SMTP id t9-20020a056830082900b0068bd34497cbmr2510876ots.13.1677633725847; Tue, 28 Feb 2023 17:22:05 -0800 (PST) Received: from xps8900.attlocal.net ([2600:1700:2442:6db0:20c1:2bed:d8f3:84d8]) by smtp.gmail.com with ESMTPSA id v2-20020a056830140200b006864b5f4650sm4436362otp.46.2023.02.28.17.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 17:22:05 -0800 (PST) From: Frank Rowand <frowand.list@gmail.com> To: Rob Herring <robh+dt@kernel.org>, Guenter Roeck <linux@roeck-us.net>, Jonathan Corbet <corbet@lwn.net> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 0/2] of: unittest: option to allow tests that trigger kernel stack dump Date: Tue, 28 Feb 2023 19:21:14 -0600 Message-Id: <20230301012116.1488132-1-frowand.list@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759126617040640267?= X-GMAIL-MSGID: =?utf-8?q?1759126617040640267?= |
Series |
of: unittest: option to allow tests that trigger kernel stack dump
|
|
Message
Frank Rowand
March 1, 2023, 1:21 a.m. UTC
Commit 74df14cd301a ("of: unittest: add node lifecycle tests") added some tests that trigger a kernel stack dump. Filtering the boot messages with scripts/dtc/of_unittest_expect detects that the stack dump is expected instead of being a test error. Test beds might interpret the stack dumps as errors, resulting in needless debugging and error reports. These test beds are likely to remove unittests due to these stack dumps. To avoid these problems, have the unittest default to skip the tests that trigger a stack dump. Add a kernel cmdline option to not skip those tests. This option can be used by testers who are able to interpret the stack dumps as not an error. Frank Rowand (2): of: unittest: option to allow tests that trigger kernel stack dump of: unittest: add of_unittest_stackdump to kernel documentation .../admin-guide/kernel-parameters.txt | 4 ++ drivers/of/unittest.c | 54 +++++++++++++++++-- 2 files changed, 55 insertions(+), 3 deletions(-)