xref: /linux/tools/testing/selftests/bpf/benchs/run_bench_uprobes.sh (revision ffcaa2172cc1a85ddb8b783de96d38ca8855e248)
1#!/bin/bash
2
3set -eufo pipefail
4
5for i in usermode-count syscall-count {uprobe,uretprobe}-{nop,push,ret}
6do
7	summary=$(sudo ./bench -w2 -d5 -a trig-$i | tail -n1 | cut -d'(' -f1 | cut -d' ' -f3-)
8	printf "%-15s: %s\n" $i "$summary"
9done
10