Skip to content

RFC Test annotate with data type profiling

Dmitrii Dolgov linux-perf-users lkml rust-for-linux 2 versions – Applied

Status from this message: Thanks, applied to perf-tools-next,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 11 repliesApplied
  2. v1 RFC1 patch 7 repliesSuperseded

Changes in v2 from the cover letter

- Switched to use mem record.
- Fixed the build issue with a custom output.
- Separated patches for the workload and tests.
- Added new test for C code.
- Added a feature test for rust compiler.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4tools/build: Add a feature test for rust compilertools/build/Makefile.feature tools/build/feature/Makefile tools/build/feature/test-rust.rs +2 more+27 -20 replies
2/4perf test workload: Add code_with_type test workloadtools/build/Makefile.build tools/perf/Makefile.perf tools/perf/tests/builtin-test.c +5 more+99 -14 replies
3/4perf tests: Test annotate with data type profiling and rusttools/perf/tests/shell/data_type_profiling.sh+69 -00 replies
4/4perf tests: Test annotate with data type profiling and Ctools/perf/tests/shell/data_type_profiling.sh+23 -813 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchDmitrii Dolgov
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC PATCH v2 0/4] Test annotate with data type profiling

Add shell tests for data type profiling, including C and rust.

To support the rust test, a new workload with rust code was introduced. To build it only when rust is actually available, also add a feature test for rust compiler and guard everything behind it.

Changes in v2:
- Switched to use mem record.
- Fixed the build issue with a custom output.
- Separated patches for the workload and tests.
- Added new test for C code.
- Added a feature test for rust compiler.

Dmitrii Dolgov (4):
tools/build: Add a feature test for rust compiler perf test workload: Add code_with_type test workload perf tests: Test annotate with data type profiling and rust perf tests: Test annotate with data type profiling and C

 tools/build/Makefile.build                    | 14 ++++
 tools/build/Makefile.feature                  |  6 +-
 tools/build/feature/Makefile                  |  7 ++
 tools/build/feature/test-rust.rs              |  4 +
 tools/perf/Makefile.config                    | 11 +++
 tools/perf/Makefile.perf                      |  2 +-
 tools/perf/builtin-check.c                    |  1 +
 tools/perf/tests/builtin-test.c               |  4 +
 tools/perf/tests/shell/data_type_profiling.sh | 84 +++++++++++++++++++
 tools/perf/tests/tests.h                      |  4 +
 tools/perf/tests/workloads/Build              |  5 ++
 tools/perf/tests/workloads/code_with_type.c   | 46 ++++++++++
 tools/perf/tests/workloads/code_with_type.rs  | 23 +++++
 tools/scripts/Makefile.include                |  2 +
 14 files changed, 210 insertions(+), 3 deletions(-)
 create mode 100644 tools/build/feature/test-rust.rs
 create mode 100755 tools/perf/tests/shell/data_type_profiling.sh
 create mode 100644 tools/perf/tests/workloads/code_with_type.c
 create mode 100644 tools/perf/tests/workloads/code_with_type.rs

base-commit: 36a1b0061a584430277861fe5d8bd107aef26137

Signature · 1 line
2.52.0