brintos

brintos / linux-shallow public Read only

0
0
Text · 237 B · af169f8 Raw
10 lines · bash
1#!/bin/bash2 3set -eufo pipefail4 5for i in usermode-count syscall-count {uprobe,uretprobe}-{nop,push,ret}6do7	summary=$(sudo ./bench -w2 -d5 -a trig-$i | tail -n1 | cut -d'(' -f1 | cut -d' ' -f3-)8	printf "%-15s: %s\n" $i "$summary"9done10