From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795994215; b=4d3gsfBFd58/a45jrfLqvtmcrMN47ANsDWVRF0uqaHwRm6qJxv4OVbxOv4f8oIG0KC7q YRCF6eZj3N7JegSLj8SDGi35t/dV9UMcDnaqaFIuDGBM3UxVVJsdp3WgaHRdq6zge44ee +LDiwoiEroIOIGO4UgnS6nW2MLXQbVuDV7R3Q9NNGPmeFEg7Ldns9cYyNiFw0X2vXOUk3 ydNVSF291BmW14cscte27tYpN4u4PUCv10g0PB/Fp4SfYAtWxLFGflxzfCVaPBuS5rz85 F1Lp7IE3EMiy18stH2eF5B1lu0jTBwWnnqrLJogKWlGbB/Ra8SJ9jnoSzkSnTe0zX2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795994215; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=wM8XNm39fFhFZeYkNhRWVOCLuZfX6v2o4mMUHyDVKfA=; b=Y9Al90/JWBKOpVlFhxky/0HCGfaveWDNkZVGDX9jPfBoasO7xqDWkZxcVc1oAr9sdD4a RpwlGV3V8K6tSTlGn4+LYQ+vE9EnYll3nOlUm1r+kifwZBUiplBiF35hhJVLz1iZCPH+G Qv0y8ChnLFmAR2xa7CCA6NW5Kk/lnymfio0qyiD/IXai6dDR8Jzth1JlxYxNYN/gKwSCT 6QfRYAD6Ff7LkOubT6rWt87ItoWOMDLAiLCCzhOd+AW2keRZwXeApFOD4rTwIX8gQaPC/ iPgvoi0A1qp9JeNAURndRBN4WooNEXanGInt1BpSEPlSVlg8DqM5kPlH7fsr0JTAEew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jarjX2Ya; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9764B606A31C; Sun, 29 Nov 2026 23:16:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jarjX2Ya Received: by smtp.kernel.org (Postfix) with ESMTPSA id B35F11F000C1; Sun, 29 Nov 2026 23:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795994215; bh=wM8XNm39fFhFZeYkNhRWVOCLuZfX6v2o4mMUHyDVKfA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=jarjX2Ya+KjTr3WOj2/x0VZ6roEvtEiXgFeuR75MSQ7PzUiofWYWx4nW+Exv3BZZt l9EHewzPRHnQYvgh9Lhens/ffRwHsUURtsCKPmCdWUXfi3gZ6xU+sO89nvg9aQBGbo OzVuCcc1Nb4XPOF58oyZXpaIGGC+5pu06++GgOUzsIBsqFFAdJGuCIzf7sQcXplHz1 qaU+5rG2EDOPypo8J/yoZCxdw7qN3A1QZFM6Ub+88Hq3iLjHUExzRna1UMsVDTAxDl XGcRcLN1K2JxQScud9PZ0bdILAnvXZ/3if6QdPJPu/ZFB+Lf/KWujYillbe8/l3U5h peq6EhAKVjBog== Date: Sun, 29 Nov 2026 15:16:51 -0800 From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Athira Rajeev , Ingo Molnar , Thomas Gleixner , James Clark , Jiri Olsa , Ian Rogers , Adrian Hunter , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo Subject: Re: [PATCH v13 00/19] perf coverage: A harness for perf, and the fixes it found Message-ID: References: <20261125192312.34134-1-acme@kernel.org> <66F9D915-DB49-4567-B42E-9721EFFE03E7@linux.ibm.com> X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sun, Nov 29, 2026 at 02:20:11PM -0300, Arnaldo Carvalho de Melo wrote: > On Sun, Nov 29, 2026 at 04:32:33PM +0530, Athira Rajeev wrote: > > > On 26 Nov 2026, at 12:52 AM, Arnaldo Carvalho de Melo wrote: > > > On aarch64 (Raspberry Pi 4, Cortex-A72, clang 19), the full suite as > > > root, run sequentially, measured 101119 of 232961 lines (43.41%), 75800 > > > of 171070 in tools/perf/ (44.31%), 142 passed, 133 subtests, 47 skipped, > > > two timed out and one failed (130, the stat test; 17 now selects an > > > absent CPU instead of an online one). The parallel test mode starts > > > every test at once and times out on the four cores, hence --sequential > > > and --timeout (18). > > > Hi Arnaldo, > > Hi Athira, > > > Thanks for adding coverage support to perf. I tried this on powerpc and it > > helps to see where the coverage gaps are. > > Excellent! > > > Steps and adding just snippet: > > > $ make -C tools/perf coverage-prep > > $ make -C tools/perf coverage > > $ make -C tools/perf coverage-table COVERAGE_ARGS="--all" > > > Output of 'make -C tools/perf coverage': > > > warning: some tests failed, coverage is still collected > > ==> Merging 1930 profile files (3.7G) > > ==> Generating report > > warning: 2 functions have mismatched data > > > Total: 93762 of 212725 lines covered (44.08%) > > perf: 72088 of 152293 lines covered (47.34%) > > > Baseline saved: /root/perf-tools-next/tools/perf/cov/baseline.txt > > > tools/perf (no tests/ or bench/), 100+ executable lines: > > the 20 biggest uncovered gaps, start here when adding coverage tests. > > --all for every file: make -C tools/perf coverage-table COVERAGE_ARGS="—all” > > > > ┌──────────────────────────────────────────┬───────────────┬───────────────────────────┬───────────────┬───────────────────────────┐ > > │ File │ Lines │ Coverage │ Funcs │ Coverage │ > > ├──────────────────────────────────────────┼───────────────┼───────────────────────────┼───────────────┼───────────────────────────┤ > > │ util/intel-pt.c │ 0/3244 │ ░░░░░░░░░░░░░░░░░░ 0.0% │ 0/143 │ ░░░░░░░░░░░░░░░░░░ 0.0% │ > > │ util/intel-pt-decoder/intel-pt-decoder.c │ 0/3208 │ ░░░░░░░░░░░░░░░░░░ 0.0% │ 0/119 │ ░░░░░░░░░░░░░░░░░░ 0.0% │ > > │ builtin-script.c │ 988/3221 │ █████░░░░░░░░░░░░░ 30.7% │ 40/124 │ █████░░░░░░░░░░░░░ 32.3% │ > > │ builtin-sched.c │ 1539/3737 │ ███████░░░░░░░░░░░ 41.2% │ 61/141 │ ███████░░░░░░░░░░░ 43.3% │ > > │ util/auxtrace.c │ 90/2035 │ ░░░░░░░░░░░░░░░░░░ 4.4% │ 14/128 │ █░░░░░░░░░░░░░░░░░ 10.9% │ > > │ util/annotate.c │ 592/2348 │ ████░░░░░░░░░░░░░░ 25.2% │ 49/125 │ ███████░░░░░░░░░░░ 39.2% │ > > │ builtin-trace.c │ 1942/3659 │ █████████░░░░░░░░░ 53.1% │ 135/198 │ ████████████░░░░░░ 68.2% │ > > │ util/sort.c │ 749/2427 │ █████░░░░░░░░░░░░░ 30.9% │ 70/246 │ █████░░░░░░░░░░░░░ 28.5% │ > > │ util/session.c │ 1038/2690 │ ██████░░░░░░░░░░░░ 38.6% │ 60/125 │ ████████░░░░░░░░░░ 48.0% │ > > │ util/header.c │ 2467/3941 │ ███████████░░░░░░░ 62.6% │ 150/180 │ ██████████████░░░░ 83.3% │ > > > For coverage “all” > > > make -C tools/perf coverage-table COVERAGE_ARGS="--all" > > make: Entering directory '/root/perf-tools-next/tools/perf' > > every tools/perf file, tests and benches included, most covered first. > > > > ┌───────────────────────────────────────────────┬───────────────┬───────────────────────────┬───────────────┬───────────────────────────┐ > > │ File │ Lines │ Coverage │ Funcs │ Coverage │ > > ├───────────────────────────────────────────────┼───────────────┼───────────────────────────┼───────────────┼───────────────────────────┤ > > │ builtin-version.c │ 12/12 │ ██████████████████ 100.0% │ 2/2 │ ██████████████████ 100.0% │ > > │ tests/bitmap.c │ 33/33 │ ██████████████████ 100.0% │ 3/3 │ ██████████████████ 100.0% │ > > │ tests/event_update.c │ 63/63 │ ██████████████████ 100.0% │ 5/5 │ ██████████████████ 100.0% │ > > │ tests/kmod-path.c │ 112/112 │ ██████████████████ 100.0% │ 3/3 │ ██████████████████ 100.0% │ > > │ tests/mem.c │ 34/34 │ ██████████████████ 100.0% │ 2/2 │ ██████████████████ 100.0% │ > > │ tests/pe-file-parsing.c │ 4/4 │ ██████████████████ 100.0% │ 1/1 │ ██████████████████ 100.0% │ > > │ tests/pfm.c │ 6/6 │ ██████████████████ 100.0% │ 2/2 │ ██████████████████ 100.0% │ > > │ tests/sdt.c │ 4/4 │ ██████████████████ 100.0% │ 1/1 │ ██████████████████ 100.0% │ > > │ tests/subcmd-help.c │ 79/79 │ ██████████████████ 100.0% │ 4/4 │ ██████████████████ 100.0% │ > > │ tests/thread-map.c │ 86/86 │ ██████████████████ 100.0% │ 4/4 │ ██████████████████ 100.0% │ > > │ tests/thread-maps-share.c │ 47/47 │ ██████████████████ 100.0% │ 1/1 │ ██████████████████ 100.0% │ > > │ tests/util.c │ 49/49 │ ██████████████████ 100.0% │ 4/4 │ ██████████████████ 100.0% │ > > │ tests/workloads/datasym.c │ 19/19 │ ██████████████████ 100.0% │ 2/2 │ ██████████████████ 100.0% │ > > │ tests/workloads/inlineloop.c │ 26/26 │ ██████████████████ 100.0% │ 5/5 │ ██████████████████ 100.0% │ > > │ trace/beauty/fs_at_flags.c │ 22/22 │ ██████████████████ 100.0% │ 4/4 │ ██████████████████ 100.0% │ > > > > > > Notes: > > - The default table is ordered by uncovered lines, so on powerpc the > > x86/arm-only files (intel-pt*, arm-spe, kvm) rank first at 0%. They > > can't be exercised on this arch, so the useful targets here are > > I think we can have in the codebase simple perf.data files with Intel > pt, coresight records, sometimes we find problems that are relevant to > the most plausible use case for those encodings when doing cross > analysis. > > > builtin-script.c, builtin-sched.c, util/annotate.c and util/sort.c. > > - --all sorts the other way (most covered first) and includes tests/ > > and bench/. > > > > Tested-by: Athira Rajeev Thanks for testing this. > > there's another series posted that add more perf test tests, new ones > and additions to existing ones eggs will most likely bump the code > that's tested/covered in ppc64. Arnaldo, how do you want to process the series? I'm not sure if they are independent or not. Thanks, Namhyung