Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5975679pxj; Wed, 23 Jun 2021 13:19:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIk8T/AkvOPNDfWlVCjgi1qn+OdQmRSe2dh+gW6ruFYEBpMWBCPtPaV3No3TUBUSEEagUF X-Received: by 2002:a17:906:94d1:: with SMTP id d17mr1834070ejy.460.1624479584724; Wed, 23 Jun 2021 13:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624479584; cv=none; d=google.com; s=arc-20160816; b=REB+9rJZzmKjPkwJqeGQkD55KwxC5ArWl//7o26RvTro5iaOQAmsbYi2TfG0RUMgII 6VJeNy5oDC23iqg+5hF/GpanJairPV0JG1hcuXJxpAw2gVKErTTgF4q5/306eL90u9nT ViaiWZMM9/bwv0Og8VoHvY18TusoThdM3S5UYMr106tJ+hcYJQn9d4GfLsoAIW21EID8 qOeVCY2UjoJxWe1fmOTGITPv4T6SAbqZ24DF8/x2L0zn6RghlmYHa1uiKdaf26owb/k/ OR7p9DTZIxFfqWjN/iRHuZn/OsEJ8LrtuS5TWCfv6bYPo37uORQSXBbfN882BEBOiTrL jpiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=RmgYkSUGYieZikK9NuAnejKxqcMfTNYVkon/vhNrDpA=; b=bA71qOkJefQuqDzN99gN9e7jqxPBqyzOiYdFrK0UV+D89fPnjP1ueIFINXPVn5qAKr xrR2yUeKVJ8tAwnCp15xd1HLLlKTkyqtyDPGV9Q2pjww2aU3SX6rpw2a/cmgnZy7PiUR KtqD9KiBIgCKy0Mh+dYEf2R5oe3HXhwIRhOTb525tK8ACPyqdpF+2CGo6FPwryNr3s1a z3U10L+DdA7jQ8oKXxBl4h9eEF41fasEgJ4Tf7LMQ7vNuRjTbjBDMI3ofhndZFSiyADy 0T4aal1UAXkmeSkuoWpcudEGPMCbGPzZImikDrbEF2FmN9dVmGiKC00wJD3Ahck4U3/y wWUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JDc9N5Ov; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id em22si639462ejc.469.2021.06.23.13.19.21; Wed, 23 Jun 2021 13:19:44 -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=@google.com header.s=20161025 header.b=JDc9N5Ov; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbhFWUTy (ORCPT + 99 others); Wed, 23 Jun 2021 16:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbhFWUTv (ORCPT ); Wed, 23 Jun 2021 16:19:51 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B855C061768 for ; Wed, 23 Jun 2021 13:17:33 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id z6-20020a0cfec60000b0290263740e5b2aso4277389qvs.6 for ; Wed, 23 Jun 2021 13:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=RmgYkSUGYieZikK9NuAnejKxqcMfTNYVkon/vhNrDpA=; b=JDc9N5OvdSJNegz1nzRkoYK0b6NVD00mqB26yk0pqMqHKOp00LWfyTyEEUBl4ku1uV hgBRCFUt3ZyLRouebPleQ8jJrc9r2h8GYJtog9xIlJy2JD8gLHcGw7MyVHNaOU3m/Sbf 69bSSaL557ur8AsMXE/mtzVOrSQ0fn3T0l3e06XefXhqCYTUiEiXv350sWc+bZytoopZ AmEyQ+grjM2DVxIg1nd4JSW8v7LpTBmNq1TiK9xU6GFFfUuFdfsvbybkqVFAUBdy0hKf erlF95CeLqNR3uFDwlcXwI5dOMHBp92z9eiT1+1r+lufRJE8o+hGLckpYG3BnCf64ncd dKzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=RmgYkSUGYieZikK9NuAnejKxqcMfTNYVkon/vhNrDpA=; b=Uag8nWu6g4n59GkMVWa3zIDn+IBsiBXAvBhPeaLKuF/0Arv4UBHv2ufJzcKxQT+jBd Zt2M5MZLwkTMI6bjCuLUN0rWEKXgxqoxemxcQgeBKauRtGQ4LUFPkOBO7I824cze8aFz joK2+tKEHL7S+KEE/wCLR8TXiHG9merD0BxTJ+ghQeIVS+bggbRVTjoBqSOOac0d7HWK usCpyHE7+I7jmj3/aAY5QLs+fK7SGbMxhXwQ8o353ZxgzkHMcYe+CSxsac/ijwZ22Oyq uUeb34CvJzcTb4zCb2UuYbIsKtJaQZfW3zewSWoMH8ef5ExHYltIfCyUyhVPGQBqj79h vRLg== X-Gm-Message-State: AOAM531J1vjJF/i7LWde85PYW099fIXdbgfULxooTN+tBK74Eli2Drfr aAHubaM2KjU3lwTbPBW6jOKXA/4EXPTn0g== X-Received: from dlatypov.svl.corp.google.com ([2620:15c:2cd:202:bb8a:281b:ed1:24b3]) (user=dlatypov job=sendgmr) by 2002:a25:8092:: with SMTP id n18mr1671942ybk.318.1624479452407; Wed, 23 Jun 2021 13:17:32 -0700 (PDT) Date: Wed, 23 Jun 2021 13:17:21 -0700 Message-Id: <20210623201721.980348-1-dlatypov@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH] Documentation: kunit: drop obsolete note about uml_abort for coverage From: Daniel Latypov To: brendanhiggins@google.com, davidgow@google.com Cc: linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, Daniel Latypov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit b6d5799b0b58 ("kunit: Add 'kunit_shutdown' option") changes KUnit to call kernel_halt() by default when done testing. This fixes the issue with not having .gcda files due to not calling atexit() handlers, and therefore we can stop recommending people manually tweak UML code. The need to use older versions of GCC (<=6) remains however, due to linktime issues, same as before. Note: There also might still be issues with .gcda files as well in newer versions. Signed-off-by: Daniel Latypov --- Documentation/dev-tools/kunit/running_tips.rst | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Documentation/dev-tools/kunit/running_tips.rst b/Documentation/dev-tools/kunit/running_tips.rst index 7d99386cf94a..d1626d548fa5 100644 --- a/Documentation/dev-tools/kunit/running_tips.rst +++ b/Documentation/dev-tools/kunit/running_tips.rst @@ -86,19 +86,7 @@ Generating code coverage reports under UML .. note:: TODO(brendanhiggins@google.com): There are various issues with UML and versions of gcc 7 and up. You're likely to run into missing ``.gcda`` - files or compile errors. We know one `faulty GCC commit - `_ - but not how we'd go about getting this fixed. The compile errors still - need some investigation. - -.. note:: - TODO(brendanhiggins@google.com): for recent versions of Linux - (5.10-5.12, maybe earlier), there's a bug with gcov counters not being - flushed in UML. This translates to very low (<1%) reported coverage. This is - related to the above issue and can be worked around by replacing the - one call to ``uml_abort()`` (it's in ``os_dump_core()``) with a plain - ``exit()``. - + files or compile errors. This is different from the "normal" way of getting coverage information that is documented in Documentation/dev-tools/gcov.rst. base-commit: 87c9c16317882dd6dbbc07e349bc3223e14f3244 -- 2.32.0.93.g670b81a890-goog