Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp834728rwb; Thu, 11 Aug 2022 10:41:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR5alavstjRNCBHcNfNGMtgpe+6MQoeIgYKujN5T/1VOMzojcV6+7G5ZCeytjZJWO5cC1wj8 X-Received: by 2002:a17:902:c40a:b0:16e:cc02:b9ab with SMTP id k10-20020a170902c40a00b0016ecc02b9abmr242815plk.81.1660239714123; Thu, 11 Aug 2022 10:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660239714; cv=none; d=google.com; s=arc-20160816; b=ZGxnsjd5c2q1qHWhK7/XKx5xMr0dxVjSrLSIceqQEw/efprnngqqgvEMhDMBAvIWkt vxmK2AF8drIWHdcrCKsfms9NfLCyG7aE55Z4A81WHhrqcahQiRwac3P5LcaPBop2YvFl bo/nIzfdP40iLT9j4mcAfeVHfIQ3ui3PDQEDUBswshWUFbaTbqp1nuHKKcwQZwlMZ5GA /hnQMD4+S/FW2XZRFbSAPgtTsElOj6z+xE0lySexQdHBXsI/pqS8aDGIxTcV0+oMPD3R mUVm56Zuc2KSsOhQVxt9r0+k5reCWrWVUseJq1BWhxWizrut2wVSTotyuGjXTRS2+QCG 5TMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uAM2bHt8Z4xuRTvJFeLRexags7bboegRrLg3WgQNpl4=; b=L90y9PoL0Z/wQ4ub4VneEdCYYxuE55WDUFMnga7TiDDPKEh307FBGt4wfR7nAQrW9e VtBo4ngVOLLOdWkozqRJHNgs/qbObQoh5ihwP4Etvr+5ywOiRMjnqAr+uuIyK0FgZleD +y82CUgpWBfNhw6ehwLEbD5Kd/qiZSMuCiXaI5Hm1ZLt0J0qu5ApQ0fwciHLbD5tnTQL lQjtfuZIP1T/tMz5FNCOdsF2Aqa0GJNK9RsbZsCKeHGB4/K1u969SL2Jb2KONlpmSJW1 YRLZjD3woFm7w9F8fc/pOj8vA5qb1kAJ6mZkNnX5w2d0U9GuIPSUwSpIucDa0RUOC2rx mltQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ii4VkUoA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a6552c7000000b00412a195efe9si29920pgp.415.2022.08.11.10.41.39; Thu, 11 Aug 2022 10:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ii4VkUoA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231352AbiHKRgK (ORCPT + 99 others); Thu, 11 Aug 2022 13:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236264AbiHKRf7 (ORCPT ); Thu, 11 Aug 2022 13:35:59 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E7646B15F for ; Thu, 11 Aug 2022 10:35:58 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id g14so10299783ile.11 for ; Thu, 11 Aug 2022 10:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=uAM2bHt8Z4xuRTvJFeLRexags7bboegRrLg3WgQNpl4=; b=ii4VkUoA6F32PRQBQUwOPojiHvt0PrVuYDunF42/VkxHg9+3RJfUzGcusx4Ds/F0vJ Fx00G6swXTCJfgfwhWLj6KtJaMMhybcLUOANyAJxp7zX1nY4B9o6NWTABl7FoLHgrUHO Ph/OOeHyLwLY94W6rTuDTE28HFO3GXrjXZDQAD1j1LSrV1AObbxSL5lggiHS8BA1+bpH QgVuW39C5gejOnmPbvKb4otziow0TA8THJBBBqRQ13wVHeCzDMO0UN6l0JwPl5wdKIR5 47G+SyMSfb8XArc70d7VLNucqfqAHhffwK6tRKGaonHcDMqoJ6KnKNYvzPWzE1qUiTKJ +8FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=uAM2bHt8Z4xuRTvJFeLRexags7bboegRrLg3WgQNpl4=; b=gvnlmBBDrQ6rbd03dw18atyLofdyYXEA2YjDkpkhii6o/20bOEaAZ90TuoudvTAs43 iHKeq/dTvK2p9iM2vHbaVqB3POQU5wYnp+QgF+Pyk5ZW1txXYzTkLVieKhWzdkNIM8kk Wgp94Z84ap8h47jtUrmE4xLgg+RKsyG9aNuMPJpdCmDaO13nv3hD/bOfV6hNf1Uq0sbm 0pr/8o5yNgYHZTZvyd81sfLj7CwIysPH8MNceb1KMZQF2Wm2Z5RvT170bG2BVThOSRDE 7shsFR+Ak4k7GbRHUwqmb9J0d6I50F9BWG+XqvUkRycLdzvXK9G+2TgM1Gtwx8pd4Y25 aYMw== X-Gm-Message-State: ACgBeo0irg6o8SmsLjckSlcUhjELY0vnKqz1Q9B8RfC5/cgE+hfCUTDC L3ZwKdeOWGg6OUvOaT82pKWV7kPuze0= X-Received: by 2002:a05:6e02:178d:b0:2de:9179:85e9 with SMTP id y13-20020a056e02178d00b002de917985e9mr126261ilu.308.1660239357406; Thu, 11 Aug 2022 10:35:57 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id n9-20020a056638110900b003435e8635bbsm27928jal.77.2022.08.11.10.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 10:35:56 -0700 (PDT) From: Jim Cromie To: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, jbaron@akamai.com Cc: Jim Cromie Subject: [PATCH 04/11] dyndbg: reverse module walk in cat control Date: Thu, 11 Aug 2022 11:35:34 -0600 Message-Id: <20220811173541.2901122-5-jim.cromie@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220811173541.2901122-1-jim.cromie@gmail.com> References: <20220811173541.2901122-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org /proc/dynamic_debug/control walks the prdbg catalog in "reverse", fix this by adding new ddebug_tables to tail of list. This puts init/main.c entries 1st, which looks more than coincidental. no functional changes. Signed-off-by: Jim Cromie Acked-by: Jason Baron --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 8faf584f2f4b..7fb99492c16f 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -970,7 +970,7 @@ int ddebug_add_module(struct _ddebug *tab, unsigned int n, dt->ddebugs = tab; mutex_lock(&ddebug_lock); - list_add(&dt->link, &ddebug_tables); + list_add_tail(&dt->link, &ddebug_tables); mutex_unlock(&ddebug_lock); vpr_info("%3u debug prints in module %s\n", n, dt->mod_name); -- 2.37.1