Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2010242pxa; Mon, 24 Aug 2020 02:24:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd6xVFciPb8WG5v9zfEi3KcUjr5yiKvJU6FwzqaTYkylHESMIwhN0yPGiUkpOnWESRI5ri X-Received: by 2002:a17:906:c187:: with SMTP id g7mr4893458ejz.108.1598261063973; Mon, 24 Aug 2020 02:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598261063; cv=none; d=google.com; s=arc-20160816; b=NCxA3s3XEYgZhiioN7+raBrpKFXHvZQSTJKLf/y4Q94f6PfznW0EJ4OTAS3CLfSK/G kXSR+dHNraWYc9+Z/xQ1TZlBAAinFk7zRPrkmAhPw9JxpXjUBxt3SIAfl3sw0WiTPwFj OKi7wLGTixzXbnzcj77AZMXVf346QyAqP1NznYyG3ZuKagkRxkkK3nMj2L6l0dcoJukr wwlfSk/uni1Euublzxj0Rabx3iodgvOycHzTCcOWWXMZ0TEExLNGByLsx6bVaJuWHxxd 6uiFue3FXc2AQLInjKsXQMDWmyn1YJoe2PySKvdorMkiQu3mN7CD29o35U01WwFCITwT Rfcw== 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:autocrypt:from:references:cc:to:subject:reply-to :dkim-signature; bh=Yfbpn5nLUqGh2DtVQ45qQc+eziFu2Er0L4Q4DzIc48w=; b=Fp9uFl8GEraFEdwbDwbedkiI94VuxsbsV6LWCgDUbqT51F4U9y0YkkXx3AsecHWe9T NelHLB6ujSwkUNoe3l2oxD+oSQIesl/Ii3HaF2t70H0dYkJTmoCAYXOIx36pDcockBjE eEFKPJ29KVmAeVTnfB3YdNm1EIcgsiDNjQE2vbwip9BDnhL6w60BL41/QWtpXLzlnkZl cyzBsmBrcqNJ6g8hBrl8+axcPlZkcENzm2CLV+UUUHpOysyCpik0xop87UK8WFKwoSES 3wdY9Qm4Be7q291/8DM2tsiijdKZ92arszKBAQnZZnKPjRPozFkbRConwlR5elf1g8sT tdMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i5qUdXtf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si3575331eds.582.2020.08.24.02.24.01; Mon, 24 Aug 2020 02:24:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=i5qUdXtf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728558AbgHXJVI (ORCPT + 99 others); Mon, 24 Aug 2020 05:21:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:60436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbgHXJU6 (ORCPT ); Mon, 24 Aug 2020 05:20:58 -0400 Received: from [192.168.0.20] (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C2393206F0; Mon, 24 Aug 2020 09:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598260857; bh=4i8SYb74lw0to+xykcaHY9CXQFCR4AwZd8LI4lKSvy0=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=i5qUdXtfIBaryA7ZcrmvqWMXT4HBSx9kdMHJxpXwNZqOgZkTVOJwtgYND2h2Bz+8u 3pf5snY6p3n2wUr/JHR7P5GXcct+AME030/7yR9RPSJQs4S9u87WdH4pHpPhxiaKNz pLoUAKKarB5EdHJGDal5H75zOdRI/FeVgq1GVGHc= Reply-To: kbingham@kernel.org Subject: Re: [PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer To: Jan Kiszka , Petr Mladek , John Ogness Cc: Andrew Morton , Baoquan He , Dave Young , Vivek Goyal , Jonathan Corbet , 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: Kieran Bingham Autocrypt: addr=kbingham@kernel.org; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM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8JiRWctP16KjzUM7MO0/+4zllM8EY57rXrj48jsbEYX0YQnzaj+jO6kJto ZsIaYR7rMMq9aUAjyiaEZpmP1qF/2sYenDx0Fg2BSlLvLvXM0vU8pQk3kgDu7kb/7PRYrZvB sr21EIQoIjXbZxDz/o7z95frkP71EaICttZ6k9q5oxxA5WC6sTXcMW8zs8avFNuA9VpXt0Yu pJd2ijtZy2mpZNG02fFVXhIn4G807G7+9mhuC4XG5rKlBBUXTvPUAfYnB4JBDLmLzBFavQfv onSfbitgXwCG3vS+9HEwAjU30Bar1PEOmIbiAoMzuKeRm2LVpmq4WZw01QYHU/GUV/zHJSFk Message-ID: Date: Mon, 24 Aug 2020 10:20:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Petr, On 21/08/2020 09:55, Jan Kiszka wrote: > 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. Before 'pushing' ? What context do you mean here? These patches go through AKPM don't they? Did I miss some update to procedures? >> > > 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. Seconding that, and having also investigated the crash projects in previous work. I really wish there was more alignment to the kernel ;-) /me ponders what happened to the kernel awareness integrations on GDB... I know others have been investigating too, If only I had time ... > Jan > -- -- Kieran