Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1325107rdb; Fri, 16 Feb 2024 11:57:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfrD1fxPkcd5U3oaWle2f8oaVf59P3UQax5U2AsxW9FW4yb20b08ywdYtr4CVFeu6OXqWM9EA9rlnahsAcSqrv+eQjRcoqO5pDg6CBbg== X-Google-Smtp-Source: AGHT+IEviZcNRKKyYyboFDIeQ0RISjETN89/XO3i/0V0a9obWiLYqmw+zTk4TAjEEoJX5p44H8xx X-Received: by 2002:a05:620a:44c6:b0:787:447f:e8d6 with SMTP id y6-20020a05620a44c600b00787447fe8d6mr3741893qkp.25.1708113465289; Fri, 16 Feb 2024 11:57:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708113465; cv=pass; d=google.com; s=arc-20160816; b=dQsYM1QjGjnM19F4yVM9ZYzsamMbNb18Dokl4gC9oJ+ef4Rc07CObSgB0QWeBQfkYT 1u4Zm8NqVb72yrrVPSbNAKyR0cYASQxoU1zx2Q0awt3oriVTDfSEwB9S5WLzkFJ3Y4Lc nVEz2F1s0dPxZ2a/+12HB1IXZWdhw28AMnb8Zv6xi7J2jbka1aN3kA4Imfw61QGFdowH IIiMUU0EEuEj293XoH7ojxSyWCE+EfPHXaPFo0d0i2fBz1s60DpioLJtayk7yh0CpUP4 M3RjGShN49rwkZKjmjqDmQZB5BZKr3aDVHwgH3hRkpbjwEMptf0kOGUS/BgZGLbuUOFw jrOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=eT8lrnb7gXnsbOnwG07kVXdw+Ry7KiTiqSIe4Bjzp5k=; fh=L55IoHlCUUIOtYjIjZAtl+maFvuXjYv0Q82N0kyChSE=; b=njH2p3KyBTpNduBJNhzFcjFPO09ZoDYEC+S0NKCKYDral5RL4uxnk1kPd6Bn5q1Jxz mVyXL86skiRAdW+U4jSta0YZVwfuRxVq8JdMogLIulYO39ydVAH6WJY7uWdHXtMJRvJx dQ9ZUTJZhcidRAaJ9WGYP2mU42U9oQT2qLd4WY5OWwbZyMKa0KSWS3XfEIWKoQdBbsEU a7y1GOzK9oee/0HUePPaPUDHQsYW0GZyn+3RxlPu8ezNXb9goe6A7KFX59hMqWbPx+Qb bj9IpVMm5L0Rt+Bigde7wwcvT4qrbp+WWpbzrwPVCQy/x4y8et41mYNBKqCih5OgoqS4 sn4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-69270-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk30-20020a05620a1a1e00b00785d57272a6si751442qkb.314.2024.02.16.11.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 11:57:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69270-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-69270-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0EE091C2144B for ; Fri, 16 Feb 2024 19:57:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA68F137C51; Fri, 16 Feb 2024 19:57:37 +0000 (UTC) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9E371369BE; Fri, 16 Feb 2024 19:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708113457; cv=none; b=iVFz0P4Bp3RM+nxM/mhxLdpiXOQ2p5kLI80UTXjFu294VdrsBO9lavO+cmquU1Y+7FJ/rEcT3J2k/Vk4DtOV/3Gxy/Yk944b/kH1xEvn6ZlMzMLnzifHOeczZoWZ5kd80WcnBKT5Td04sBQ517D4JvLDk/hB8iblQ8zv3K9MNvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708113457; c=relaxed/simple; bh=mwBXSOLbzppGPcectkAGNJ7sViWWfxda+/ZYkgbgHHE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hIzlqdSHW6QGAmQow//xuT1+7wbkkeUZtEY1J0OiMfk3bgthAwUEbqdL1jZQsIdRo178BkDw1YKIrfe2cQ1SV5XqH+HfXPi4eGWYu6If0DnLKpfs2pNilqO2bpUqBdDy8WK+EDzXdgJUfPuyH1qGSGaUVT0eOSVgsWmAIg3BA4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.215.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5c66b093b86so2608597a12.0; Fri, 16 Feb 2024 11:57:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708113455; x=1708718255; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eT8lrnb7gXnsbOnwG07kVXdw+Ry7KiTiqSIe4Bjzp5k=; b=DqyeWv/hUSDiruCDOAI8OFGu6TFhoFoY2SF8vTV4JIAMF7WG3KpsMA1cdhbxM3oYtv 47Qmlfl9r2Lz43kk/9G67/iTgG/EL+9tzrlELf11EIYknAOimGaLrrH4kSO92aOYZyOm Yj6dwpVeccZg+iI9Vp3Z/IG3NpRCwr3d8VSLwcYpl2o16LUdsdwNAqptCCVV5YCU7Jzy 434ZcLpBZ6VzPwq697/Btp7JCLSb/OciaLKfqVhr8dpyNcFjhs0gvWgH3nUv/sTNXzRl KIMTXrVBi8aDguY2WavB0+aHocC1oiTxHNq9/4I/Gq2o1bOrPNMkIfKEst0990xlI1ug f7cg== X-Forwarded-Encrypted: i=1; AJvYcCXlq5mRuSOggYmqc/oLBkXUm8DAacs+RjzwpwBPBbP/Nyh8hg0biCrtoRcekhz9PIASPMPNfFCM40fuoessWM16wyBIOnE0i3wA20k9SxtE2icROi8MBLjLvpHan4WqhA2scH7G6YtgfP2B+/WilA== X-Gm-Message-State: AOJu0YyfiwAA94vLYpfjZ4/jqpBA/3bTIkFdw4l6tfWkCkOPYGIm+O16 WpijVVBPb9fEelfZmjzdAcUruMZElCIwpkN0CtOhnxRlS2ND5j8PISq2v5Py7vbS8geSN6JvwaT 04dekRVuB1ud4eI8BdMeunYWYcq4= X-Received: by 2002:a17:90b:19d5:b0:299:2d92:4942 with SMTP id nm21-20020a17090b19d500b002992d924942mr4919146pjb.7.1708113455044; Fri, 16 Feb 2024 11:57:35 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240214045356.748330-1-irogers@google.com> In-Reply-To: <20240214045356.748330-1-irogers@google.com> From: Namhyung Kim Date: Fri, 16 Feb 2024 11:57:23 -0800 Message-ID: Subject: Re: [PATCH v4 0/8] Run tests in parallel To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , James Clark , Athira Jajeev , Kan Liang , Yang Jihong , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ian, On Tue, Feb 13, 2024 at 8:54=E2=80=AFPM Ian Rogers wro= te: > > If command line option '-p' is provided, start/fork all tests in the > main thread and then gather them in order at the end. On a laptop test > time was reduced from 5 minutes 21 seconds to 1 minute 50 seconds. The > option isn't default as the test shows up perf and test flakes. It's a bit sad that tests flake when run in parallel but I think we can work on improving it later. So Acked-by: Namhyung Kim Thanks, Namhyung > > The '-v' option is modified so that 'perf test -v' will give verbose > output only from failing tests. > > v4 - fix bug in width computation. > v3 - fix a crash if shell test directory isn't found, remove merged patch= . > v2 - fix parallel test output/verbose issue > v1 - initial PoC > > Ian Rogers (8): > perf thread_map: Skip exited threads when scanning /proc > perf list: Add scandirat compatibility function > perf tests: Avoid fork in perf_has_symbol test > tools subcmd: Add a no exec function call option > perf test: Rename builtin-test-list and add missed header guard > perf tests: Use scandirat for shell script finding > perf tests: Run time generate shell test suites > perf tests: Add option to run tests in parallel > > tools/lib/subcmd/run-command.c | 2 + > tools/lib/subcmd/run-command.h | 2 + > tools/perf/tests/Build | 2 +- > tools/perf/tests/builtin-test-list.c | 207 ---------- > tools/perf/tests/builtin-test-list.h | 12 - > tools/perf/tests/builtin-test.c | 378 ++++++++++-------- > tools/perf/tests/shell/lib/perf_has_symbol.sh | 2 +- > tools/perf/tests/tests-scripts.c | 257 ++++++++++++ > tools/perf/tests/tests-scripts.h | 9 + > tools/perf/util/print-events.c | 12 +- > tools/perf/util/thread_map.c | 9 +- > tools/perf/util/util.c | 19 + > tools/perf/util/util.h | 8 + > 13 files changed, 509 insertions(+), 410 deletions(-) > delete mode 100644 tools/perf/tests/builtin-test-list.c > delete mode 100644 tools/perf/tests/builtin-test-list.h > create mode 100644 tools/perf/tests/tests-scripts.c > create mode 100644 tools/perf/tests/tests-scripts.h > > -- > 2.43.0.687.g38aa6559b0-goog >