diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-10-20 04:18:40 +0200 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-10-22 06:10:06 +0200 |
commit | 18b63d63cd0148fef02c6c3f33a596ad7ee97a9a (patch) | |
tree | 66b28f533f497dc06e38f7da4b76428fdeecb548 /tools/perf/tests/fdarray.c | |
parent | perf vendor events amd: Update Zen 5 data cache fill events (diff) | |
download | linux-18b63d63cd0148fef02c6c3f33a596ad7ee97a9a.tar.xz linux-18b63d63cd0148fef02c6c3f33a596ad7ee97a9a.zip |
perf test: Introduce workloads__for_each()
And use it in run_workload().
Testing it:
root@x1:~# perf trace -e *landlock* perf test -w landlock
0.000 ( 0.015 ms): :1274331/1274331 landlock_add_rule(ruleset_fd: 11, rule_type: LANDLOCK_RULE_PATH_BENEATH, rule_attr: 0x7ffd3fea55e0, flags: 45) = -1 EINVAL (Invalid argument)
0.018 ( 0.003 ms): :1274331/1274331 landlock_add_rule(ruleset_fd: 11, rule_type: LANDLOCK_RULE_NET_PORT, rule_attr: 0x7ffd3fea55f0, flags: 45) = -1 EINVAL (Invalid argument)
root@x1:~# perf test -w bla
No workload found: bla
root@x1:~#
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Clark Williams <williams@redhat.com>
Link: https://lore.kernel.org/r/20241020021842.1752770-2-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/tests/fdarray.c')
0 files changed, 0 insertions, 0 deletions