Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp91787pxa; Fri, 21 Aug 2020 01:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhQ/oJWZmiXCHtONn3vTGE2jIA92DoHOVvdEsNwnfM9YnQzCnROX/YUBZE/b+W0ln8U+9q X-Received: by 2002:a17:906:549:: with SMTP id k9mr1899185eja.104.1598000271977; Fri, 21 Aug 2020 01:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598000271; cv=none; d=google.com; s=arc-20160816; b=VDLcDoIvAw6fz40ZpMJRU+JS92MPhCpDw5S+tfAhwASePABm5hNG0P77M5Gl1ayKd4 o+YgBlF46fUDcTA1ryqSSfeP/OC68E20SxwXk5CRwMI3iO45AskuyObBFvyKjic4Zrbf 8TQawPesIr2HkaFpsWvPY9mxMw4SqlzMNE13UoHy19xw68ZIRY36IKZjT14wCLGjgY1l IGtO0xA2AymuwhKirmslEjiOdRfJSdzueGWfm+FKome4Y1tnvSbpaEFgsB4mWuFlmuiV VTWijEzWiCjayDVTYqG9cvcN8lqsksn14E0iWqbQKZdxcTelUecGPI1YiAouyqsRsMhI 4yBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=9r9G/xwBRiFZ7aMjyZJEUcn7mSgK7jxW58zb9b58weI=; b=Yh2aRIEfO71rk7QvXWciUHfLwl7lVwU3LlQIos7f33iidtm81PGX9/ry0PUmoYM/De tUU/FzmrSBiaoy/PauiUG3NP/Rkgal3JUv5CULW26rNCdPM30Fr8xAu5sidLtJYOWdTa p/eM6hfOn86YPsBLqFtoJVKnaFm+GigH74J6oM/rV1t1W9vdUJcF8Dizt0nlKwv7y/Ex Wj38qNdUdXtwWttpRSG8ihM7HU8emduX9JRIdKAK6NhBgwtc6D+H/TS710u89sQYnn6K JCW7nlaUtCMEeTH1v8W2OlEe+5eOZuHzpppqIB4/EHgEGsMN/EFhanAHyhASxdNRpgEJ 7L1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn21si811106edb.207.2020.08.21.01.57.28; Fri, 21 Aug 2020 01:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728182AbgHUI4K (ORCPT + 99 others); Fri, 21 Aug 2020 04:56:10 -0400 Received: from thoth.sbs.de ([192.35.17.2]:56601 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgHUI4I (ORCPT ); Fri, 21 Aug 2020 04:56:08 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 07L8t3Ls009097 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Aug 2020 10:55:03 +0200 Received: from [167.87.31.209] ([167.87.31.209]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 07L8t0nk008339; Fri, 21 Aug 2020 10:55:00 +0200 Subject: Re: [PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer To: Petr Mladek , John Ogness Cc: Andrew Morton , Baoquan He , Dave Young , Vivek Goyal , Jonathan Corbet , Kieran Bingham , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Nick Desaulniers , linux-kernel@vger.kernel.org References: <20200814212525.6118-1-john.ogness@linutronix.de> <20200821080813.GM4353@alley> From: Jan Kiszka Message-ID: Date: Fri, 21 Aug 2020 10:55:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200821080813.GM4353@alley> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.08.20 10:08, Petr Mladek wrote: > On Fri 2020-08-14 23:31:23, John Ogness wrote: >> Hi, >> >> When we brought in the new lockless printk ringbuffer, we overlooked the gdb >> scripts. Here are a set of patches to implement gdb support for the new >> ringbuffer. >> >> John Ogness (2): >> scripts/gdb: add utils.read_ulong() >> scripts/gdb: update for lockless printk ringbuffer > > I am not fluent in the gdb macros and python so I did not try any > deep review. But both patches work for me: > > Tested-by: Petr Mladek > > I am going to give it few more days before pushing just in case there is > another feedback. > Thanks, perfect! > Best Regards, > Petr > > BTW: Are you aware of https://github.com/crash-python/crash-python project? > The ambition is to implement "crash" features and even more into > gdb using python extensions. It similar approach like > scripts/gdb/ > > crash-python is being developed sporadically in waves. It is > mostly during a week that is dedicated for such projects > at SUSE. It would be great to get more contributors. > The problem with all those out-of-tree kernel debugging projects is that they are even further away from the changes in upstream they need to adjust to over and over again. It's already hard for scripts/gdb to keep up as only few people are aware of the dependencies, and it's always easy to forget. But it's getting better and better here IMHO. And that was my idea behind pushing things into upstream. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux