summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLorenz Bauer <lmb@cloudflare.com>2020-03-30 01:53:41 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-03-30 23:45:05 +0300
commit2d7824ffd25ce041db952d713567d54314cb7c29 (patch)
treeb4174abd7a7e99a44e12942bb6027fd1b206b8fd /tools/perf/scripts/python/stackcollapse.py
parent7ae215d23c12a939005f35d1848ca55b6109b9c0 (diff)
downloadlinux-2d7824ffd25ce041db952d713567d54314cb7c29.tar.xz
selftests: bpf: Add test for sk_assign
Attach a tc direct-action classifier to lo in a fresh network namespace, and rewrite all connection attempts to localhost:4321 to localhost:1234 (for port tests) and connections to unreachable IPv4/IPv6 IPs to the local socket (for address tests). Includes implementations for both TCP and UDP. Keep in mind that both client to server and server to client traffic passes the classifier. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Joe Stringer <joe@wand.net.nz> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20200329225342.16317-5-joe@wand.net.nz Co-authored-by: Joe Stringer <joe@wand.net.nz>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions