Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2916005pxa; Tue, 25 Aug 2020 06:55:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5QMXaje3UqtTcOryKMzkTHv2fjkZCxEWxm/KP6ktb8X03bj7r9Oi9yowBCefSCkqHZ9Up X-Received: by 2002:aa7:d6d9:: with SMTP id x25mr2811821edr.265.1598363718881; Tue, 25 Aug 2020 06:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598363718; cv=none; d=google.com; s=arc-20160816; b=oX74Rc8lVMvtFFJzd0It3wcajPdnQmN1qbMgFrbp6j219t56Uh2AUYGL5dfPRjaQYm p+Z4jXLIANmAF6HrLON/P46NYkHayr4bDe3RA7rMBK6J7YvHjJJb6rO9t0FANt7HP1G4 IANNm4GtbEnRDoRCiSzEPMS2dzDASfjyItaFjkeghFH5ZxQStoRKG5YIPuCvqxO7SGG8 jGvIwPur0Xxr6vzCjzPM1RYLqQspJtaI0roFBIoQQ/HaVwPP+2CNx5vLAfK0lA+IHDrM V6f0T47Xq2Fjq5nxcvvWEgD/QC2KddWw5AnrPA+OIj109PxMW1QlVPWfan3clQEbec+x IQNg== 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=JJa7HAOIwcThX2F/z45BOTvPRAJjpPUvrqolXfGq0+w=; b=IL8D/oQDEq5v0r4FE6obz6T03qxGOKPC/v66Oo8EAqWKr+NFsQULNzQBF4me/ro8ff YLzcaISDJtrzX5lcgNdledEKuml6Pig59SSnpUJHpWKQYquTt1zR6CfsVoPyzm7z3ea1 vLBFWXPRW5Y9XhOLIv6VlEFrPGMgr73+J9OcmqDmKSLNg5Eby8YtaEvMZ8DBKPCVewQ/ BdTh6UVxMk/LnXbazTtVC8ZgBhwkCBleArJtg96Ka8pI45T3BKqlCzdGj/y7Ohd65N4Z R1ud+21saXiBperjAt0/R4qhFSD63yBZJ5rh7LvD3SsFieboC1NJNBJzbkcfUs2EPB8j VEhQ== 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 lz20si4589427ejb.179.2020.08.25.06.54.56; Tue, 25 Aug 2020 06:55:18 -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 S1726466AbgHYNyI (ORCPT + 99 others); Tue, 25 Aug 2020 09:54:08 -0400 Received: from goliath.siemens.de ([192.35.17.28]:42198 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbgHYNyH (ORCPT ); Tue, 25 Aug 2020 09:54:07 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 07PDrBcT024230 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Aug 2020 15:53:12 +0200 Received: from [167.87.131.58] ([167.87.131.58]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 07PDr3ue002994; Tue, 25 Aug 2020 15:53:05 +0200 Subject: Re: [PATCH 0/2][next] update gdb scripts for lockless printk ringbuffer To: Petr Mladek , Kieran Bingham , Andrew Morton Cc: John Ogness , 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> <20200825123542.GU4353@alley> From: Jan Kiszka Message-ID: <24cb943d-bbd2-9a09-1470-e0771d4624ec@siemens.com> Date: Tue, 25 Aug 2020 15:53:02 +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: <20200825123542.GU4353@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 25.08.20 14:35, Petr Mladek wrote: > On Mon 2020-08-24 10:20:53, Kieran Bingham wrote: >> 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? > > Both patches should go into mainline together with the lockless printk > ring buffer. It is already in linux-next via printk/linux.git, > branch printk-rework. > > The plan is to get it into mainline when pr_cont() handling is solved. > It is more complicated than we hoped for, see > https://lore.kernel.org/r/20200824103538.31446-1-john.ogness@linutronix.de > It is still not clear whether it will be ready for 5.10. > > Andrew, would you mind when I take the three gdb/lockless-printk > related changes via printk tree to avoid synchronization problems? From my POV, that would be best in this case - but actually also in other cases where developers happen to notice the dependency between their refactorings and gdb scripts. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux