Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4974062rdh; Wed, 29 Nov 2023 17:03:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhDYpgK2QH+DMYP3VOPy7Def5qif6o9xCxh9f2ShHc7H3jw6JhHSyg1dCouFGUG0Xw9klV X-Received: by 2002:a05:6870:b51f:b0:1fa:a610:6c6a with SMTP id v31-20020a056870b51f00b001faa6106c6amr3404475oap.26.1701306197855; Wed, 29 Nov 2023 17:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701306197; cv=none; d=google.com; s=arc-20160816; b=ldr+ftmo16fIqBJ5Jr7qhiOPrxB1OuweiKlBPEzCSQcn2wSATvmxifAtHz9hdoKyN2 1dEqBw/Xg7PoIYzBFmU5nvj0QnPO6PKs2cdWffbfRzw0y4vYx7bunXZQSt1F7B6oiSX0 MOFLwFjW4vRv/mQZttRo2O+RAdDr6QmQU7puz/JRrX4Zno/ZiyYZLQWgKJCUSXm+lX9i OCZCIlmVjL5v5bM91Jvn6emJk02nDEkwIe3G6v/cZDr0B5udSkxTOOAHWQs6nj66WDi2 tzon5ZOrB3R2golkBRdnpluy4vr+KuaR/ARBUbZvjD1OalXGoNdBCv6AW3CW1T9iUpDz DJPg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=gxeA4tdCti9R5GitNxQD6EZ+zmh+rIITEPHDhvC+QUI=; fh=w06FwtCxtgIybpkmhD2sahtITDiCdOCerwC+VVULAsI=; b=p+jV70Hppm9poW/iyxaWltAmlo0+GfTZjflJhnD0gUDP48IAZqlSWH76lJO9o9Fr1o prJHJA5cLUeRdbnECkOg2pAvBxe2DjS1WXPrIdGTfATtLZ7ROImT07pu+AWH6JxFP7fN RS0zdfrZV5KI1mXZYkwadlD55rjxcYXb5ObXI/vl917KOqPH6yyzOwvASBZON1uuD6kN C/XX4PVqeWZnA5hKJYIupuDab5L5XuL95kv3dI+IHVCs1jVpmcGZxC/4LHZjZPglovrN tyC/hF81xjOXZ4GGayYKASg5GkpXMDFiB82XoIBzQADgen2OyWVv79cY9lfK3C9XGKaX 1dtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Pck4JEhB; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j7-20020a056808034700b003b8931dd1d3si51779oie.122.2023.11.29.17.03.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 17:03:17 -0800 (PST) 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=@linux-foundation.org header.s=korg header.b=Pck4JEhB; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9620E802C6BD; Wed, 29 Nov 2023 17:03:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231534AbjK3BCu (ORCPT + 99 others); Wed, 29 Nov 2023 20:02:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjK3BCt (ORCPT ); Wed, 29 Nov 2023 20:02:49 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 952CBD54 for ; Wed, 29 Nov 2023 17:02:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0F4EC433C7; Thu, 30 Nov 2023 01:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1701306175; bh=6+gsd8x5pNDWNvTZPM/3wdWzz6chOW+kGf/ppspNWtU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Pck4JEhBPBYMB0v7we0k9h7jpGlwkqo8rLE9PRdPhV5r31CCzBd8rFisVQ04iykh2 kcpw6kSv7oiDMTl4Sb7/J3jzMyNZpIA4FRUAOA7FmmJPyKVB83gjSm9OfbgqmfmSPT ZTqUzBCjLt4RTVQISILCyLdgWsTe1SvEJ86waQ+g= Date: Wed, 29 Nov 2023 17:02:54 -0800 From: Andrew Morton To: Florian Fainelli Cc: "linux-kernel@vger.kernel.org" , Jan Kiszka , Kieran Bingham , Shanker Donthineni , Kuan-Ying Lee , AngeloGioacchino Del Regno Subject: Re: No care given to GDB scripts.. Message-Id: <20231129170254.e7ca4c866b521c291e88395e@linux-foundation.org> In-Reply-To: <25a5e810-1e57-4a59-ae82-cb2c7d28a116@gmail.com> References: <20231129150629.0a82efbfc1494972e4e4f8cb@linux-foundation.org> <25a5e810-1e57-4a59-ae82-cb2c7d28a116@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 17:03:00 -0800 (PST) On Wed, 29 Nov 2023 16:23:55 -0800 Florian Fainelli wrote: > > Is there any way of scripting the scripts so we can have some sort of > > automated testing down under tools/testing/selftests/? > > That might be a bit difficult to do as this would mean that we can self > debug and introspect using gdb the live kernel. Testing using QEMU is > definitively doable however. Of course, I just found another script that > broke (device.py)! Oh. That sounds quite the exercise in the context of tools/selftests. One can of course just fire up gdb against the vmlinux elf file and play around, but I assume this won't permit a useful amount of the scripts to be exercised. Suppose someone has set up qemu or whatever and has attached gdb to it. Could we provide that person with a script or a canned set of commands which exercise the gdb scripts to a useful extent? So rather than attempting automated testing under the seltests umbrella, we provide less skilled individuals with the means to easily and quickly check for regressions. I'd expect that such a toolset would be particularly helpful for regression testing the scripts across all the supported architectures?