Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp128158iof; Sun, 5 Jun 2022 23:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFyhV+xkD0NP4uN+sPlhY5ZeqC4Uz2P/u9CGfohOc5kRZmu6z2BEvIZk/p/v/d6bzuk+HE X-Received: by 2002:a63:504:0:b0:3fc:607b:9750 with SMTP id 4-20020a630504000000b003fc607b9750mr19951265pgf.604.1654495942607; Sun, 05 Jun 2022 23:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495942; cv=none; d=google.com; s=arc-20160816; b=B/rDbeMcWnyN33sfEhEqJT1/H7pqYghz56kdX+TPFL9GBM4BExICD1vJWrEWiyINrW vp/kzoYzr/Lp/IdVf6TTmGk+SDlWMLmmvqi745mE7XSdsTfHulD67lF/3NZvQj+hEa0/ RsZA22HI9Zcqsiy+T3XGQoXzcGCwtrtXnH7uwwioF9N35qWOti2SpttwTF4t0vLBPZ/P Z3jXpbGHoiGH3yEhmBYHBj4nM7k6tc0LvaRGb7bFPDF9rTblFcJAnsI+VdgrTJCREqMz X3j5B9CXm9qr6YVokZYU8lzx5AbQfK+v7VaXmSop7vsLFMJCCEQ4hbqpIMGqolAq7Hm3 Tplw== 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:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=yw5oLDxPzA4x8GiT50xzenS9433El8aksuU2kCWJ5pk=; b=cJBKbPKZYRwbpoCocB8U2j2j80lpfrPRNZ75qcLhFIrAp4o+20NK0O//acL0P+rGZG xd8+urNeml19ws5VXglEL1y9kUgdoLjw2cBv2gNRszR1thgCNHiekwXoyBN1dl47cNGf z4ZoxomqSGv0hMfkRiPfUGfNzgfxcOc+tfqtGkWlDA7x9OiA6QwXzTK9Ob6HMAwgZMlS mCwN+3h523fSHQNdQda1V30ajmZBR1DUEEcCWaGWhUq+eCA0DAWLIK1G/FSzxYUm62A8 rnC7eSDLiCAF3WvZcXpM3RrOpGEALS+qUsGSCUGJzRM7u/Kp7IA9CBi1o2mciFqvFZn0 MvXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="dlp/8I89"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b21-20020a170902d31500b00161f1960b5dsi20577533plc.291.2022.06.05.23.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="dlp/8I89"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9930212ADE; Sun, 5 Jun 2022 21:51:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244713AbiFCT5q (ORCPT + 99 others); Fri, 3 Jun 2022 15:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243107AbiFCT5n (ORCPT ); Fri, 3 Jun 2022 15:57:43 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20391EED6 for ; Fri, 3 Jun 2022 12:57:42 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id x1-20020a170902ec8100b0016634ff72a4so3789810plg.15 for ; Fri, 03 Jun 2022 12:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=yw5oLDxPzA4x8GiT50xzenS9433El8aksuU2kCWJ5pk=; b=dlp/8I89YhGs2GWgPG5LnOxa8u3bZx25ZgFP34Y/NU/We4cto1TBikJ/iU4HC+xorT V/oOkMpMzwOcS4l3IIBMN/rjnX+NhwDcXXTGlH3Difj8Sgr2tYgZNaExYJZs5PEanU+e cS/ex2huFpe3TJoCa72Qykd6SQ4vAEEVPg9P3C6rr5/SuTwIGnhs6KUPintnhIr3AnKM qUAgflPjChyZxocbm4AjZjv6pVYa6JuO8oj+/nmJ3oXEfzwclIvonTApEfLdsFshhXNT UT4w4lFYLaRUnMRxrnisa+RsQwqHBSUJfQGfuHPdvhn9R8Gfqj3tADInlsosGXbqgHzE DnWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=yw5oLDxPzA4x8GiT50xzenS9433El8aksuU2kCWJ5pk=; b=h6ceSeM2/cmEx3usJ1g9aPl4FE90f740t6AQmZAO1yKT5ZecMlwHqN4QqipSe0tY6F Osca/0n5gcIom/BVxnQ69M6Csq9NjjGpuZLUYOIpveBjwtCKwNEdXU29dCYH24HdPaed seavoCM+eywqes93x/lC37dVw8qj55VT4lduSdqdA07SSlxW5G/qZXC/QiwMl5FyJf0k 5yE+QTDPFdC1Z290VyNi9bu3oeWRwlmjpnXju965jVrDCDLR6NWiNajl+CqLDA+ZOcOv jVeUqEt0ax74be7Iq1l2C/KvDgBqsd5vpavKxIQsxK/PafcNiPUju7ZUYUNOFSNY+PaA wyXA== X-Gm-Message-State: AOAM533qy/gN0IqGAQBP1lusk6G57rWva+KNLHHR4HKEsC5vHk4EMqf4 yeByCVGhCk4NQ7q3JglpPNMYRMMOMR9hLw== X-Received: from dlatypov.svl.corp.google.com ([2620:15c:2cd:202:9ff0:c6ec:46df:8f8a]) (user=dlatypov job=sendgmr) by 2002:a05:6a00:114b:b0:4f7:915:3ec3 with SMTP id b11-20020a056a00114b00b004f709153ec3mr12029785pfm.8.1654286262084; Fri, 03 Jun 2022 12:57:42 -0700 (PDT) Date: Fri, 3 Jun 2022 12:56:25 -0700 In-Reply-To: <20220603195626.121922-1-dlatypov@google.com> Message-Id: <20220603195626.121922-2-dlatypov@google.com> Mime-Version: 1.0 References: <20220603195626.121922-1-dlatypov@google.com> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog Subject: [PATCH 2/3] Documentation: kunit: move mention of --jobs flag lower From: Daniel Latypov To: brendanhiggins@google.com, davidgow@google.com Cc: linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, corbet@lwn.net, linux-doc@vger.kernel.org, Daniel Latypov Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Commit ad659ccb5412 ("kunit: tool: Default --jobs to number of CPUs") changed the --jobs flag from a hard-coded value of 8 to basically `nproc`. Therefore, most users should probably not need to bother to tweak this flag. Having it near the top of the page is more noise than anything. Signed-off-by: Daniel Latypov --- Documentation/dev-tools/kunit/run_wrapper.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/dev-tools/kunit/run_wrapper.rst b/Documentation/dev-tools/kunit/run_wrapper.rst index 653985ce9cae..1fccf2e099f7 100644 --- a/Documentation/dev-tools/kunit/run_wrapper.rst +++ b/Documentation/dev-tools/kunit/run_wrapper.rst @@ -30,10 +30,9 @@ We may want to use the following options: .. code-block:: - ./tools/testing/kunit/kunit.py run --timeout=30 --jobs=`nproc --all + ./tools/testing/kunit/kunit.py run --timeout=30 - ``--timeout`` sets a maximum amount of time for tests to run. -- ``--jobs`` sets the number of threads to build the kernel. kunit_tool will generate a ``.kunitconfig`` with a default configuration, if no other ``.kunitconfig`` file exists @@ -237,6 +236,9 @@ command line arguments: compiling a kernel (using ``build`` or ``run`` commands). For example: to enable compiler warnings, we can pass ``--make_options W=1``. +- ``--jobs``: The ``-j`` argument to ``make`` when building the kernel. + Defaults to the same value as ``nproc``. + - ``--alltests``: Builds a UML kernel with all config options enabled using ``make allyesconfig``. This allows us to run as many tests as possible. -- 2.36.1.255.ge46751e96f-goog