Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp882523pxb; Wed, 29 Sep 2021 11:39:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOD3jDgh2a6K6iK3QXxGJVZEOtL/GJ9WxoMMAA84MPV863IT5pCzSpVHqVJOTnzAhpSkY8 X-Received: by 2002:a17:906:354f:: with SMTP id s15mr1557218eja.149.1632940783936; Wed, 29 Sep 2021 11:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632940783; cv=none; d=google.com; s=arc-20160816; b=sjEag82WY+HFjVgTqm3aqQRhD+I1UQEuIwQ/tMXyGkRWOqTcwbbqpV5dziTbQBeaXx 9hU+ubMBxxe+IhPa9zhmVq2GvEf6/fswhQ3tgSDRITgS3T9xHN1PPMn+q9oDdsy6DBsB U8rO1x4Ygi2cEpSb+Io+MGH91SQnouyiuQZCDKKApZVVDUFDkPisomTJTXwtqwot6c7I Y3wWVFYtPrB0WpqklQQniVpk/6ULOEkdfMXkP7ED3/ObuUDf4Q04M8PnHLkAxjdCeMds 2oZmZscyp/qnhRN1SrFAcx6pEQOGjc0VgJuJomXvEmTf4foXOXbaMxw9rPZkZja8zGMZ R2Ug== 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=NzVREY3+gytLq7oEsY0e3jcU0ECpeVaZTWkMcC3UOjw=; b=eHdcfPhBJRB55V3qlF+Zhl+6sjYrdvwQkAd3Dqb0cWr7v1icNYpNw07u7SdXiGHktM qZWgRI/K4wtWMCSAyYjfgxXQCR1/dWlBYZA4WqZ9Vg/XYV9js9j0ko2sPe3+S+l1W4mn zqoztdXnwc4p4djdVd9XnYKMbCNBMjeQiJdgGTtmLKH5hHnNo13JdnN35xKf7Dmlaw4x cGacsxwVI5veK0nCQu5X7lZJWB/rLPwh2t99vQRcMRqjvGgnGuzcXXHEGQJIj9X/LJsh xkN/jJSN5MdpUTtrsJKUsxOKfEWqw2oMnMe37DMm7/HL9t1d25pLosZqE7bNnr/hgrhG 9vBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DD2a0k2Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si1068664edm.496.2021.09.29.11.39.17; Wed, 29 Sep 2021 11:39:43 -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=@gmail.com header.s=20210112 header.b=DD2a0k2Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346285AbhI2Sjc (ORCPT + 99 others); Wed, 29 Sep 2021 14:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244341AbhI2Sjb (ORCPT ); Wed, 29 Sep 2021 14:39:31 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D3AC06161C for ; Wed, 29 Sep 2021 11:37:50 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id 134so4326482iou.12 for ; Wed, 29 Sep 2021 11:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NzVREY3+gytLq7oEsY0e3jcU0ECpeVaZTWkMcC3UOjw=; b=DD2a0k2ZCXNPq8oQBfNZNRlFHyKJDnFZp+imutgMs5ecVQhnAncopz4RZAu9hEIWl0 +/zgrPeIca2RQYnbxxaK0/W2fj6iqAFbyh4YocFFHpz/8WiUpbTfQXAmq71B63EiL4CH bAMw43dYvGoxZn/LVrFITPn2/znc1R4iSFjv4vOb65trunmjjTDpk5zbpL12mw5rqodT FowGaSBlYgR975jSwylLDpv+Li2blZ3IXUCbk3mnmN3KU1e8dkL7Ztgm1xgaLtnQ4+lQ drR6w9w+JAWGXdxmXPuKHI5wAuxq57sbF2be4E3n0zBTrR9c/4gMhTGE3xvK3WN6FlS5 PR5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NzVREY3+gytLq7oEsY0e3jcU0ECpeVaZTWkMcC3UOjw=; b=WWFXzItZ0pJskJR0BKBgRarPScS8iv1OuJBZy4DfWQMevlfE7QJ++ifBUgSBkLHh8w gGVnqqc86HNHVozUtwCvQWpjFB8GfYFFfMtiDI+Sl5/FDdDa7BaXsaQJ7vfv6l7BOkQH 2jAagM0x8DQS021rp44BodzpIk4loPO30/wn1xDMqiwWqlCQLlv+s+ObTWZrdzCafyTN m1Lz/PGeyVXC8aOOf+EV8serhuNZ0wlbUWKwl89oJ72JUgZ8QFAE6kB45kACcgTXhU9P 9oIfOIR+sR9yf2GYkqWtrrJ5wB+k5BNHOknYFwkgZGrBTeSNUZ70C7a2HJkl2zJwt/RF kp/Q== X-Gm-Message-State: AOAM531bfFnOxvnhp6vV+546JMdKR+HxWyE0BnkHi0a06d+Rk2+kv3Uz xxyDNbsCz4whyyagW4SwD4c= X-Received: by 2002:a05:6638:204c:: with SMTP id t12mr1133705jaj.9.1632940669836; Wed, 29 Sep 2021 11:37:49 -0700 (PDT) Received: from samwise.. (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id y2sm317041ioj.12.2021.09.29.11.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 11:37:49 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Jim Cromie Subject: [PATCH 1/6] dyndbg: recode for stronger precondition Date: Wed, 29 Sep 2021 12:37:30 -0600 Message-Id: <20210929183735.6630-2-jim.cromie@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210929183735.6630-1-jim.cromie@gmail.com> References: <20210929183735.6630-1-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The table of struct _ddebugs, due to its construction by the linker, has an important property; namely that its "equal" fields have actual ptr-equality, not just strcmp-equality. Lets recognize that truth in dynamic_debug_init(), while slicing the builtin table into a per-module list. --- 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 cb5abb42c16a..817a87e9c37f 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -1101,7 +1101,7 @@ static int __init dynamic_debug_init(void) iter_start = iter; for (; iter < __stop___dyndbg; iter++) { entries++; - if (strcmp(modname, iter->modname)) { + if (modname != iter->modname) { modct++; ret = ddebug_add_module(iter_start, n, modname); if (ret) -- 2.31.1