Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3083343rwl; Thu, 13 Apr 2023 15:42:10 -0700 (PDT) X-Google-Smtp-Source: AKy350a5u7sootjndo7OP0bbcFqcyOEe5t2R3a2XPjbFmSDrFIvLJmP1WjyjK5a87dp5MqU2jRyt X-Received: by 2002:a17:90a:4586:b0:23f:9925:6f8b with SMTP id v6-20020a17090a458600b0023f99256f8bmr3316642pjg.17.1681425730261; Thu, 13 Apr 2023 15:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681425730; cv=none; d=google.com; s=arc-20160816; b=wUXs+bXX8dHuNs1R+56SSA8z86yu2BeQGQaDF9q7t53cHoVPSV3szDDvVeBzeURkyM /YBGhazcQvt0S+LQJktLo13dz4NI9VENUg3NV6SXd+dI4SMFWyldmmdr17WufWgDg3+E Qch+E3nh31Akd+qNpzs+uNMrhd71fh4DFonTQAw1yQlxXI4AUwKKmd9Bu23y5/1gI/vl 4O/xDCNkHfClMt5D9stt7qzJDfOeyvQIHUDlPkLoAxz5QOGsqIgin57AWx2R2zbjXz+F 1lz/fa67QllVoW7E+OT3ovdlihlNDMo5gjOGa/9mLwPhRsIwBSoh5s2pR8mQcxUy8Epw e+gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=t8ZGlD5y99nuYbUdfAnl+Ad+d+jEX3P0YqKpyEIDTkY=; b=PfNKdfKzI+RFgVs1VGZoPhx+EcF2QLTaj3ZFyofD8pErdZ2gAPQ1TlzR5FfH/0KbtS sEqS7oPphu1qhx9yrr02qoa236QfdWi5KeK3MgQPp5GXFlguO0enBSzsO1OIZbc0FMfh 6RTiiwBdSp2ICm5WxmLkBVpApQ0si9hczOwbeO4NOxvfiqUgtYNFbD7XVSDW30/H/5B9 1ocREldpaIPLXRYLRBKSTJwqstQdv6xwpM7exZnL1k6HXMG+UJErTxckygtw+wMXle0J z3C/q15eWL7yS0aaGcW3kQg0bX4duBdLTssIW1dUDIwc97QTEPofv5nG4d2NPBlj5r0O w/9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="kCFnP/gR"; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc17-20020a17090325d100b0019953bfaad4si2730062plb.470.2023.04.13.15.41.57; Thu, 13 Apr 2023 15:42:10 -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=@linutronix.de header.s=2020 header.b="kCFnP/gR"; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbjDMWkA (ORCPT + 99 others); Thu, 13 Apr 2023 18:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbjDMWjv (ORCPT ); Thu, 13 Apr 2023 18:39:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DF6EAD12 for ; Thu, 13 Apr 2023 15:39:27 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681425564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t8ZGlD5y99nuYbUdfAnl+Ad+d+jEX3P0YqKpyEIDTkY=; b=kCFnP/gR2ckV3MwhvCKxVuxjg7kgGhJtkVtTwrrLNp2noUT/3WzcI4shoylS5KNEvCC0Uc onBynsX+CiKPAY2LPfiMvSwuPwB+bzC063SuWRJiMCEsDLBp9o2jqZfRO7jlPU4FqWJDOT U+p/f5p5lUb2wYi1ZhlG2sXVO6oWGc9wxxcnD3BiqcfFTjcvZel3nzr1nOiOgi3Ae7ojF4 1KcFwD7V4tvvF14V8AiDo2hFWhTEYPZ3dEqzXxwJ3uBqxFqqXC6O2bTLQ79qiQaPx0YRPo F975ChZt4wIPCrf0qyYs8xY8PlDEFXjce2PUXuFaJlPGoJISqopyCOdkU5E0MA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681425564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t8ZGlD5y99nuYbUdfAnl+Ad+d+jEX3P0YqKpyEIDTkY=; b=nxk3GHauzC/2qJvc9brz80CR+DNVq3qcUW6CkrP5yKQIHd18BMyji1xs9VT4IkKQLkyBGy MVYcEqiN76A20hAA== To: Schspa Shi Cc: longman@redhat.com, swboyd@chromium.org, linux@roeck-us.net, wuchi.zero@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] debugobject: add unit test for static debug object In-Reply-To: References: <20230303161906.831686-1-schspa@gmail.com> <20230303161906.831686-2-schspa@gmail.com> <87h6ub9a4w.ffs@tglx> Date: Fri, 14 Apr 2023 00:39:23 +0200 Message-ID: <87edonz9t0.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 On Thu, Mar 23 2023 at 16:44, Schspa Shi wrote: > Thomas Gleixner writes: >> On Thu, Mar 23 2023 at 11:16, Schspa Shi wrote: >>> What do you think about this test case? Should we need it ? There are >>> some platform compatibility issues here that need a little optimization. >> >> What does it buy over the existing self test. Nothing AFACIT aside of >> extra code. >> > > It checks the race of the is_static_object() call in the previous > BUG. This test can used to make sure the new fix patch works. The > existing self test have no ability to check this. Sure it can somehow make sure that it works. Don't misunderstand me. I'm all for self tests, but this one really falls into the category of testing the obvious. There are tons of more interesting places in the kernel which lack self tests than this particular oddity which is well understood and more than unlikely to come back. That said, it would be valuable if you could add your Tested-by to the final patch, which will be queued up soonish. Thanks, tglx