xref: /linux/tools/testing/selftests/bpf/benchs/run_bench_trigger.sh (revision 6367dee9e3db3f30878799d1d1a7bc73660b201f)
1#!/bin/bash
2
3set -eufo pipefail
4
5for i in base tp rawtp kprobe fentry fmodret
6do
7	summary=$(sudo ./bench -w2 -d5 -a trig-$i | tail -n1 | cut -d'(' -f1 | cut -d' ' -f3-)
8	printf "%-10s: %s\n" $i "$summary"
9done
10