perf tests: Test annotate with data type profiling and C
authorDmitrii Dolgov <9erthalion6@gmail.com>
Sun, 8 Feb 2026 12:22:26 +0000 (13:22 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 8 Feb 2026 22:16:28 +0000 (19:16 -0300)
commit335047109d7d488bf5ad32a4076e1a011994cd0e
tree5c71203186d3114aef382da40b5ff069fbd107af
parentf60a5c22967b845d5319d4f447cb28190021795c
perf tests: Test annotate with data type profiling and C

Exercise the annotate command with data type profiling feature with C.

For that extend the existing data type profiling shell test to profile
the datasym workload, then annotate the result expecting to see some
data structures from the C code.

Committer testing:

  root@number:~# perf test 'perf data type profiling tests'
   83: perf data type profiling tests                                  : Ok
  root@number:~# perf test -vv 'perf data type profiling tests'
   83: perf data type profiling tests:
  --- start ---
  test child forked, pid 125028
  Basic Rust perf annotate test
  Basic annotate test [Success]
  Pipe Rust perf annotate test
  Pipe annotate test [Success]
  Basic C perf annotate test
  Basic annotate test [Success]
  Pipe C perf annotate test
  Pipe annotate test [Success]
  ---- end(0) ----
   83: perf data type profiling tests                                  : Ok
  root@number:~#

Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/data_type_profiling.sh