Skip to content

Instantly share code, notes, and snippets.

View navarrothiago's full-sized avatar
🎯
Focusing

Thiago Navarro navarrothiago

🎯
Focusing
View GitHub Profile
@navarrothiago
navarrothiago / iperf-pods.md
Created September 13, 2022 12:22 — forked from williamcaban/iperf-pods.md
Using client/server iperf pods

Using iperf Pods

  • Create namespace or project for running iperf tests:
oc new-project iperf-test
  • Create server Pod
rm -f pod-iperf-server.yaml 
@navarrothiago
navarrothiago / bpftool.md
Created September 6, 2021 17:03
bpftool features from Quentin Monnet

bpftool feature probe kernel

  1. "bpftool prog show" is used to list all BPF programs currently loaded on the system (loaded != attached)

  2. load a BPF program from ELF file “foo.o” to the system and pin it under the BPF virtual file system as “bar”:

# bpftool prog load foo.o /sys/fs/bpf/bar

pinning the program makes it persistent (and offers a handle for later management, e.g. to attach that program to a hook).