ARCv2: SLC: Make sure busy bit is set properly for region ops
[linux/fpc-iii.git] / samples / bpf / run_cookie_uid_helper_example.sh
blobf898cfa2b1aa52f71a65db469450d4d001b08b2c
1 #!/bin/bash
2 local_dir="$(pwd)"
3 root_dir=$local_dir/../..
4 mnt_dir=$(mktemp -d --tmp)
6 on_exit() {
7 iptables -D OUTPUT -m bpf --object-pinned ${mnt_dir}/bpf_prog -j ACCEPT
8 umount ${mnt_dir}
9 rm -r ${mnt_dir}
12 trap on_exit EXIT
13 mount -t bpf bpf ${mnt_dir}
14 ./per_socket_stats_example ${mnt_dir}/bpf_prog $1