Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1599031pxb; Mon, 22 Feb 2021 06:19:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3kKZylVoXWryLnR/voEjykBigWaG7TPtod5GoDVWfl0zUz3A6IGD8TIX/36D8D9JnNTZm X-Received: by 2002:a17:906:380b:: with SMTP id v11mr21609307ejc.183.1614003577932; Mon, 22 Feb 2021 06:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614003577; cv=none; d=google.com; s=arc-20160816; b=cLQX4xps9DiZd+H6bRMci/XYi2gj/VNP4jeSEJzI5vbTyUMu2TWGYxxOnXWIFbIc89 CWAUejb5uBRFr34wX6rVastDh56qDkN82nV8szQZMNcFNH2FD4g0BBGN/3f0XTQMNxDC /zlp3cJt71YicbfAwo0BJOckTF947gqphFfUwJj1GbD3ed8uHhCX1CR+oksx7/ljVbux Q45zD1aUcVeuAFcG/b73EZcv6Q+GT4eGEn3xD3RXwcPqzoRUr9FMIyYcGJVO+8IzwXbX 75tENS4ocMMBxdu5v7J1yOSu2ylZlDV5ysWqAL43PD2avFms18kcjZPIJ9u3sihhNcf/ dXGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DkB8TTAK1lLO99nzMEfxUHcuDNMKeOkqhURiMPq3j0Y=; b=xmLdjqEwJafDmbBNExRhrLSaNutwkG+l0XBD0yL7n9kCGzVJewnFcgVHZroUeepZPt wHfKsvhGl1xtsOIOr+mPRjYGdK05lfghmUZxKUstQjaH+fKtj++3w0z6vbEArX5Gw416 RfRRTok5OcxnfeQrr5ph7NZdlxXPFX0x9RJexxcrUFL6kXFZfFwV7tVd3Cazniv0VQ1h hG06XxOrtfC3XqDwpteckcqWcqxfh/jAT1kjyPN0PONCbGgfiQ/40CRMsGZP8rdMFZic gtBLPpOdsIuG8aba8opT6JXcInCw0UUooE51kJ0loEHMSuUCBwg2cQoz3tXi9+RYDvfn g5IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jiV+jaD9; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si5788737edw.196.2021.02.22.06.19.14; Mon, 22 Feb 2021 06:19:37 -0800 (PST) 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=@linaro.org header.s=google header.b=jiV+jaD9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232394AbhBVOSJ (ORCPT + 99 others); Mon, 22 Feb 2021 09:18:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbhBVNse (ORCPT ); Mon, 22 Feb 2021 08:48:34 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE92C061574 for ; Mon, 22 Feb 2021 05:47:53 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id t15so19081993wrx.13 for ; Mon, 22 Feb 2021 05:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=DkB8TTAK1lLO99nzMEfxUHcuDNMKeOkqhURiMPq3j0Y=; b=jiV+jaD982bwgugJwuqis1dzzxy/lcL0mHW1tSFhHR/NblI9dVOTQ+vyCgVCt7S55Y EDH/FxPyJVspwE9ToCB837JBWllB4tilyoUgEE4oecMDNP0w2PMHClISgivmYP4dnLCu cTH0zXrQmNvHRxw1+UBftERDsSqFPFGWxm5AlmXEzXb648KpAE0xGBKV+Y1d5XaSy6fj sFdHsdUY6TWAEQJrHUvnsvugFUMx8Zhm2UZ/BtMrJ8ovLb6MRL+ufQfl5M27I9o2VL3r bh6f7tnSA8s8xjynn8vX+AChClDaOZqDxSapwhwFUb43V1pY2ZRmvjT3dQhvQauvlUed 9Fmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DkB8TTAK1lLO99nzMEfxUHcuDNMKeOkqhURiMPq3j0Y=; b=N+edPqzsPESBtCjJPRjUR7lgfUGG5kib1/xbpC+FyFdf4iZ8shADOXf8AO88BVg3sx nL4O3ZuPZrqK5WZq3lYOlMGP1c5fHFGpsiQwIgpYk6kEgZrz6orFl2dxrLffBlvsWcK5 TZw6VZ28c7i/Mc142qhMre0tK1+lcPfitXKzEjiksRLC3NtnuQQP++Nu3jORQKPLCChZ 4Fja3aWdZ8ktY7xF4vAIZUaXC6tW6mHcULnsn5V5SQiuNn79jYLNeC5XPXcmiVQv3ukt +Y0uUhWQ+Cmq4uDq7aYycMakt6yEolxJ8y7ljAmO4FyGKRMzlLLeM8YXPjtjQZ2UT6xT LuBw== X-Gm-Message-State: AOAM533L5OR1why89DAIrpgo2Tz68KWBQkVmKT/nmRMipmAi6NgO6vZb ODYpLVRTcmQGleJhn3ThnV4MxA== X-Received: by 2002:a5d:67cd:: with SMTP id n13mr21405266wrw.96.1614001672655; Mon, 22 Feb 2021 05:47:52 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id y4sm22550575wrs.66.2021.02.22.05.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 05:47:51 -0800 (PST) Date: Mon, 22 Feb 2021 13:47:50 +0000 From: Daniel Thompson To: Sumit Garg Cc: kgdb-bugreport@lists.sourceforge.net, Jason Wessel , Douglas Anderson , Linux Kernel Mailing List Subject: Re: [PATCH v4] kdb: Simplify kdb commands registration Message-ID: <20210222134750.zc473zz42bz4teu3@maple.lan> References: <1613650198-27437-1-git-send-email-sumit.garg@linaro.org> <20210222120502.phazkmskgqvpe4yy@maple.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 06:33:18PM +0530, Sumit Garg wrote: > On Mon, 22 Feb 2021 at 17:35, Daniel Thompson > wrote: > > > > On Thu, Feb 18, 2021 at 05:39:58PM +0530, Sumit Garg wrote: > > > Simplify kdb commands registration via using linked list instead of > > > static array for commands storage. > > > > > > Signed-off-by: Sumit Garg > > > --- > > > > > > Changes in v4: > > > - Fix kdb commands memory allocation issue prior to slab being available > > > with an array of statically allocated commands. Now it works fine with > > > kgdbwait. > > > > I'm not sure this is the right approach. It's still faking dynamic usage > > when none of the callers at this stage of the boot actually are dynamic. > > > > Okay, as an alternative I came across dbg_kmalloc()/dbg_kfree() as well but ... Last time I traced these functions I concluded that this heap can be removed if the symbol handling code is refactored a little. I'd be *seriously* reluctant to add any new callers... which I assume from your later comments you can live with ;-) . Daniel.