Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4644147img; Tue, 26 Mar 2019 13:40:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJM6OGrwg2XPl+2GGKYkBOtTWIH4XzQNNJYHM3YcV2nWIfgkvJzikjxv16rTnDIoUZG3hn X-Received: by 2002:a17:902:9a01:: with SMTP id v1mr33439031plp.34.1553632806188; Tue, 26 Mar 2019 13:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553632806; cv=none; d=google.com; s=arc-20160816; b=d7BxEHvw1XWHX9EVlYHY2BxpVTlpBXerhErc5U6xfTzq4/Dg0pjK4lKo0odyZBZAJp tSFiQu9yKXomydGS5d5hWu81Ef8fNQ8mJwWwrbU8czo9gGez7S0OcYLy5ras7uzYXzvY iO9PsWIQTonaX5AwGEGLl1cZzGTthOCMXzRT/idTs47r5ezLItdAc8tXWhIoT+Ws1cXr gBfrQ5IqAtmKufm2yjGNT9MLUhCrzLuZD+r8JSpIOzJz96E4V6BlnI9ZT40D4yUfufoJ 0u1mtNH9qiMn2xhouupj++BmDX8HVDH85jzkVZ7xzBVP2PRD6eQBruGpEYyXCRyuBRN0 OKJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:cc:subject :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=8gazi28c20822jWbnu97Ff27qgZuzyclqPEStdgiz60=; b=ZI/TKjLKRKO+irN+f+Galdmi9GPkPqQtHllNBD71JYCpugwXL7Fa7XUqYOHDXiAGQy WMPow07Amc2rvUti6+0X2TWSfvPW7r4C4qAtap7MmO9lBJRTxZ7CLKAi9O1+EVnvIbsJ zScYJRB0bwaqcsFc1pJDtRIcdGfy4k97UHRAcajcH7T0k1UxozXvCl2D0yiE+k/RewFL u6LA3eSXr53tmEdvqJpupYhvKwdVpD74LPvJjXkRoCtLyZuSt2CUn1O+5SbkYnatXxSV 1s9k9l0dp5WU3fv0DTmRV7IGJIJruxRDbwb+FKmFe6C6HFL3Xt0Y28uDBrK2wPZScLRM 8t8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Z9uDEr+7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e190si16868892pfc.63.2019.03.26.13.39.50; Tue, 26 Mar 2019 13:40:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Z9uDEr+7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732601AbfCZUjD (ORCPT + 99 others); Tue, 26 Mar 2019 16:39:03 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36406 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfCZUjD (ORCPT ); Tue, 26 Mar 2019 16:39:03 -0400 Received: by mail-pg1-f195.google.com with SMTP id r124so8805037pgr.3 for ; Tue, 26 Mar 2019 13:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references:from :subject:cc:to:message-id:user-agent:date; bh=8gazi28c20822jWbnu97Ff27qgZuzyclqPEStdgiz60=; b=Z9uDEr+7LnsTBf7wW31awvFoJm+qIEpxbW9Syhv+0Xus7ZNdNrA3JRcb/j8s7kGlWV 4OA8lQCvLxguBKHrYAB31jwTYwz02BTpWv6iItQV8R9n0mqfXHwXj2NXgTpD+dlQVXz4 W4s5t8I1WHCZM8w8aEGI9sfptdoStTd8Vg29E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:from:subject:cc:to:message-id:user-agent :date; bh=8gazi28c20822jWbnu97Ff27qgZuzyclqPEStdgiz60=; b=ZoYHk+epnf7Ap5TKFxbCOberH+AtfZfZEt+mHpVxTGW1S9er3uefZoAJY7dj3tmuPR 938F3JWuNMW7Ffii34BlByOOfKC05D0wmjN4gqIdEqL+T0t2YL/wVFauhLpUgXeD3NuB yUses7+DHaY2ppVGkKzmeUO5Dez3B4ZinH/r0cxvzoKVX4nU3RF9C9BpSFra/l6wFlR2 6LPr6bU8obhnh56gs09OjpDqPb0/pKH0W666GVfVc4dHFQEfBaL4X2lDfviD6OwINvhs lMpVB6PigNLBNK8/ZB6M79BWsy1m5I6ogOL08fpd28dUJWx+ZBUtVGED4h+1a7m4xMCf 9eyA== X-Gm-Message-State: APjAAAWHiuHCdTXsWDr5QxQA8QyZnK/m1/feZ95ygyK3vnAqeK+rJ28Y jvpwGg4HS+s6yWtb6wVPjeg+3HIUpf9xkA== X-Received: by 2002:a63:1322:: with SMTP id i34mr30284474pgl.208.1553632741756; Tue, 26 Mar 2019 13:39:01 -0700 (PDT) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id i72sm35120674pfj.147.2019.03.26.13.39.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 13:39:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190325184522.260535-1-swboyd@chromium.org> <20190325184522.260535-4-swboyd@chromium.org> <227f1a1f-d8dd-72f4-4eb9-43bba714d52a@kernel.org> <155361993610.20095.762425616683725063@swboyd.mtv.corp.google.com> From: Stephen Boyd Subject: Re: [PATCH 3/4] scripts/gdb: Add rb tree iterating utilities Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Douglas Anderson , Nikolay Borisov , Jackie Liu To: Andrew Morton , Jan Kiszka , Kieran Bingham Message-ID: <155363274033.20095.10762543028999566245@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Tue, 26 Mar 2019 13:39:00 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jan Kiszka (2019-03-26 10:21:21) > On 26.03.19 18:05, Stephen Boyd wrote: > > Quoting Kieran Bingham (2019-03-26 01:52:10) > >> > >> Do you foresee any similar issue here? Or is the corresponding RB code > >> in the kernel fairly 'stable'? > >> > >> > >> Please could we make sure whomever maintains the RBTree code is aware = of > >> the python implementation? > >> > >> That said, MAINTAINERS doesn't actually seem to list any ownership over > >> the rb-tree code, and get_maintainers.pl [0] seems to be pointing at > >> Andrew as the probable route in for that code so perhaps that's already > >> in place :D > >=20 > > I don't think that the rb tree implementation is going to change. It > > feels similar to the list API. I suppose this problem of keeping things > > in sync is a more general problem than just data-structures changing. > > The only solution I can offer is to have more testing and usage of these > > scripts. Unless gdb can "simulate" or run arbitrary code for us then I > > think we're stuck reimplementing kernel internal code in gdb scripts so > > that we can get debug info out. > >=20 >=20 > Could we possibly leave some link in form of comment in the related heade= rs or=20 > implementations? Won't magically solve the problem but at least increase = changes=20 > that author actually read them when they start changing the C implementat= ions. >=20 Sure. Can you propose some sort of patch against the 'list' implementation for this? I'd like to just use whatever policy is decided here.