From aaf151b9e68101b03ba42d581e8a424bdd0110fe Mon Sep 17 00:00:00 2001 From: Lawrence Brakmo Date: Sun, 5 Nov 2017 18:44:10 -0800 Subject: bpf: Rename tcp_bbf.readme to tcp_bpf.readme The original patch had the wrong filename. Fixes: bfdf75693875 ("bpf: create samples/bpf/tcp_bpf.readme") Signed-off-by: Lawrence Brakmo Acked-by: Alexei Starovoitov Acked-by: Daniel Borkmann Signed-off-by: David S. Miller --- samples/bpf/tcp_bbf.readme | 26 -------------------------- samples/bpf/tcp_bpf.readme | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 samples/bpf/tcp_bbf.readme create mode 100644 samples/bpf/tcp_bpf.readme (limited to 'samples') diff --git a/samples/bpf/tcp_bbf.readme b/samples/bpf/tcp_bbf.readme deleted file mode 100644 index 831fb601e3c9..000000000000 --- a/samples/bpf/tcp_bbf.readme +++ /dev/null @@ -1,26 +0,0 @@ -This file describes how to run the tcp_*_kern.o tcp_bpf (or socket_ops) -programs. These programs attach to a cgroupv2. The following commands create -a cgroupv2 and attach a bash shell to the group. - - mkdir -p /tmp/cgroupv2 - mount -t cgroup2 none /tmp/cgroupv2 - mkdir -p /tmp/cgroupv2/foo - bash - echo $$ >> /tmp/cgroupv2/foo/cgroup.procs - -Anything that runs under this shell belongs to the foo cgroupv2 To load -(attach) one of the tcp_*_kern.o programs: - - ./load_sock_ops -l /tmp/cgroupv2/foo tcp_basertt_kern.o - -If the "-l" flag is used, the load_sock_ops program will continue to run -printing the BPF log buffer. The tcp_*_kern.o programs use special print -functions to print logging information (if enabled by the ifdef). - -If using netperf/netserver to create traffic, you need to run them under the -cgroupv2 to which the BPF programs are attached (i.e. under bash shell -attached to the cgroupv2). - -To remove (unattach) a socket_ops BPF program from a cgroupv2: - - ./load_sock_ops -r /tmp/cgroupv2/foo diff --git a/samples/bpf/tcp_bpf.readme b/samples/bpf/tcp_bpf.readme new file mode 100644 index 000000000000..831fb601e3c9 --- /dev/null +++ b/samples/bpf/tcp_bpf.readme @@ -0,0 +1,26 @@ +This file describes how to run the tcp_*_kern.o tcp_bpf (or socket_ops) +programs. These programs attach to a cgroupv2. The following commands create +a cgroupv2 and attach a bash shell to the group. + + mkdir -p /tmp/cgroupv2 + mount -t cgroup2 none /tmp/cgroupv2 + mkdir -p /tmp/cgroupv2/foo + bash + echo $$ >> /tmp/cgroupv2/foo/cgroup.procs + +Anything that runs under this shell belongs to the foo cgroupv2 To load +(attach) one of the tcp_*_kern.o programs: + + ./load_sock_ops -l /tmp/cgroupv2/foo tcp_basertt_kern.o + +If the "-l" flag is used, the load_sock_ops program will continue to run +printing the BPF log buffer. The tcp_*_kern.o programs use special print +functions to print logging information (if enabled by the ifdef). + +If using netperf/netserver to create traffic, you need to run them under the +cgroupv2 to which the BPF programs are attached (i.e. under bash shell +attached to the cgroupv2). + +To remove (unattach) a socket_ops BPF program from a cgroupv2: + + ./load_sock_ops -r /tmp/cgroupv2/foo -- cgit