Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1323492rwb; Wed, 16 Nov 2022 15:55:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RbQuoS90FQC80Jw+7OD8OnQP28eEpdDQeGCZdOQUsYy9GmvzuRKHktCQr7PtooiTKvUAm X-Received: by 2002:a63:5424:0:b0:437:e9f3:8add with SMTP id i36-20020a635424000000b00437e9f38addmr23238599pgb.438.1668642940226; Wed, 16 Nov 2022 15:55:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668642940; cv=none; d=google.com; s=arc-20160816; b=RMKa+02ROhan5g4/AOuQFtBDCEpCnNIzo2AyWlaSnesgfn1ALCAChtF8qC4xdeM5oG 1SCsCGmOJ20FscqvRqzJOsQdHrAceg7I+jrzZTu5AM4UnXi3caIJFP0vwJLGqMiVNdgT bZggKoHS7IJJMSCVSmEsECNPS3YkDVMwF83zqbyTl/cg0Bq742vA12foK93/60Z6s8hP wAQl/iA8f2utC47xANm7Kn1m2rFi8V6BsRUmur1mrXgQKoeGX9pTAXS4d3WMj1IlJDS5 4Fi6PfFysh8Yjp8PZZ6IEO4DmW8CFVrt700y1M+crkwcJCiX08bQE5s/Y4nKNBdevzRx 043A== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=Gdy3fEXtgXyoXwkPfALelVJoAp8iW4D1E4xvDfkIRRs=; b=sLjXEEMRtKPYnKSvc/xrzbwohT6Mi+qUZGZ7gy9YQYr4KweEq1PLZmpXf+CfKbiChp c6DYnElMB//ZfQigtM6E+z6bpsngb76Mr9Kp+v9RzFPC8lXomPVC52gEPzMYK7yekF+Y EDOwo08/h6nxWLIW8JlyJen0BMzecq00offxtp4v5C2c7yswETGniA1R1la+VCvK7LIj Ai/O5J9HqsjOoUR+ygyCaT/ydOmIFKAahSVsIm4VfkBW4rQd4YxUixS4dH+ByR1fmGfS c8bTJ6q5U1tW95bpEyhUp4UiRa2b5ZMsNqCkE2l59PNlX9hoaCnOmA2juBH8nsUhKb1i EGgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z1XuwqNs; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb19-20020a056a004c9300b0056e3c566bfasi14624886pfb.201.2022.11.16.15.55.28; Wed, 16 Nov 2022 15:55:40 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=Z1XuwqNs; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234225AbiKPXjC (ORCPT + 90 others); Wed, 16 Nov 2022 18:39:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233694AbiKPXi7 (ORCPT ); Wed, 16 Nov 2022 18:38:59 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E44B02735; Wed, 16 Nov 2022 15:38:58 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id c15-20020a17090a1d0f00b0021365864446so329467pjd.4; Wed, 16 Nov 2022 15:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=Gdy3fEXtgXyoXwkPfALelVJoAp8iW4D1E4xvDfkIRRs=; b=Z1XuwqNsMJiG/461z0tHAjvyJ1484KFa7iBAFXP6j/SS8cPeKn5D6z/HLPqrOfu0LH z8ISXaOhxuBQc1MScEYVIrxZ5uR5KTdTj6GiGDDz0CAd/KEmq4FmHFncIclZ5RPDcvre PLZjYjsLEyMjs1MpCpWZL60MOAnZLoMRNzDb2VhvRgtsFutfXlIn26gR0h6YKIS/aLQO pzBRqXm1XxoFLTe5McYmJFe5S8zjtYswW4r6VInVJA/wxzI6UF8c+rNli21UxZ5LzN8K trj/Tqfori4kSyqgXrG7uaACflqZZuvFL7Utca3ydn/ja7TZedvFA7cjOpVyqxZdDXyf xOmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gdy3fEXtgXyoXwkPfALelVJoAp8iW4D1E4xvDfkIRRs=; b=bIwr71JbgD2V0U637m8ecs3MUCALTHNJMh8aLQHvflgeHJcrZvkVAF38vBZjL1VWaO i6pieriqUVXMGd4xRTClHVIdJ59bX+jSishWbh/Bcn2hdD8wuhWKXOBuMWA/NQcrpmBq 5GtT6OuYVfV1EPZB6ehbQ6N6khqAQ1Q5JlbtZfE7ek1cRVjeTk7adS5x3Pz93wFL/LBW TEpvChA57XOIP/5tMouTgtp01/mZHMWPq671iSKp2CUgrUDaEusoULx+dzu+xymtXkxo XUqZQ5jgGlySETVZm06kA7f5QIR+/5hd/m5Zml4LBdUS4DrgBMwiwNO5yhZnjfc2a1l5 Jc2g== X-Gm-Message-State: ANoB5pk91qUeNDJLUfgTon5kGeR/aVa7sPiN0s7eQHKfay9HsnOBAq9I QP9s6KyL0ixp78FcCuUTwR8= X-Received: by 2002:a17:90b:810:b0:200:6637:a9e3 with SMTP id bk16-20020a17090b081000b002006637a9e3mr34656pjb.176.1668641938258; Wed, 16 Nov 2022 15:38:58 -0800 (PST) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:5b40:ce8c:1f7c:9acc]) by smtp.gmail.com with ESMTPSA id bc10-20020a170902930a00b00188ef3ea2b6sm95929plb.262.2022.11.16.15.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 15:38:57 -0800 (PST) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, Leo Yan , German Gomez , Zhengjun Xing , James Clark , Athira Jajeev Subject: [PATCHSET 00/12] perf test: Add test workloads (v3) Date: Wed, 16 Nov 2022 15:38:42 -0800 Message-Id: <20221116233854.1596378-1-namhyung@kernel.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS 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 Hello, In the shell tests, it needs to run a custom test workload to verify the behaviors. This requires a working compiler when it runs the tests. However it's not available in some test environments, making hard to run those tests. changes in v3) * update brstack to set num_loops (James) * fix a typo in the brstack test (German) * add tags rom German and James changes in v2) * use sig_atomic_t (Arnaldo) * fix callgraph fp test (Leo) * fix bulid in sqrtloop (German) * add tags from Leo Yan So I've added the test workload to the perf binary directly, so that we can run them simply like: $ perf test -w noploop And convert most of the shell tests need compilers with this workloads. The buildid test still requires a compiler since it needs to check different build options to generate different kind of build-IDs. I've checked perf test result after the changes but could not verify architecture-specific ones (e.g. for arm64). It'd be nice if anyone can check it out. You can find it in 'perf/test-workload-v3' branch in git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Thanks, Namhyung Namhyung Kim (12): perf test: Add -w/--workload option perf test: Replace pipe test workload with noploop perf test: Add 'thloop' test workload perf test: Replace record test workload with thloop perf test: Add 'leafloop' test workload perf test: Replace arm callgraph fp test workload with leafloop perf test: Add 'sqrtloop' test workload perf test: Replace arm spe fork test workload with sqrtloop perf test: Add 'brstack' test workload perf test: Replace brstack test workload perf test: Add 'datasym' test workload perf test: Replace data symbol test workload with datasym tools/perf/tests/Build | 2 + tools/perf/tests/builtin-test.c | 29 ++++++++ tools/perf/tests/shell/pipe_test.sh | 55 +++------------- tools/perf/tests/shell/record.sh | 59 +---------------- .../perf/tests/shell/test_arm_callgraph_fp.sh | 34 +--------- tools/perf/tests/shell/test_arm_spe_fork.sh | 44 +------------ tools/perf/tests/shell/test_brstack.sh | 66 ++++--------------- tools/perf/tests/shell/test_data_symbol.sh | 29 +------- tools/perf/tests/tests.h | 27 ++++++++ tools/perf/tests/workloads/Build | 12 ++++ tools/perf/tests/workloads/brstack.c | 41 ++++++++++++ tools/perf/tests/workloads/datasym.c | 24 +++++++ tools/perf/tests/workloads/leafloop.c | 34 ++++++++++ tools/perf/tests/workloads/noploop.c | 32 +++++++++ tools/perf/tests/workloads/sqrtloop.c | 45 +++++++++++++ tools/perf/tests/workloads/thloop.c | 53 +++++++++++++++ 16 files changed, 329 insertions(+), 257 deletions(-) create mode 100644 tools/perf/tests/workloads/Build create mode 100644 tools/perf/tests/workloads/brstack.c create mode 100644 tools/perf/tests/workloads/datasym.c create mode 100644 tools/perf/tests/workloads/leafloop.c create mode 100644 tools/perf/tests/workloads/noploop.c create mode 100644 tools/perf/tests/workloads/sqrtloop.c create mode 100644 tools/perf/tests/workloads/thloop.c base-commit: 4dd7ff4a0311eee3ac946f0824442de94b34c42e -- 2.38.1.584.g0f3c55d4c2-goog