From: Sargun Dhillon <sargun@sargun.me>
To: netdev@vger.kernel.org
Cc: daniel@zonque.org, ast@fb.com
Subject: [PATCH net-next 0/2] samples, bpf: Refactor; Add automated tests for cgroups
Date: Fri, 2 Dec 2016 02:42:03 -0800 [thread overview]
Message-ID: <20161202104201.GA9217@ircssh.c.rugged-nimbus-611.internal> (raw)
These two patches are around refactoring out some old, reusable code from the
existing test_current_task_under_cgroup_user test, and adding a new, automated
test.
There is some generic cgroupsv2 setup & cleanup code, given that most
environment still don't have it setup by default. With this code, we're able
to pretty easily add an automated test for future cgroupsv2 functionality.
Sargun Dhillon (2):
samples, bpf: Refactor test_current_task_under_cgroup - separate out
helpers
samples, bpf: Add automated test for cgroup filter attachments
samples/bpf/Makefile | 4 +-
samples/bpf/cgroup_helpers.c | 177 ++++++++++++++++++++++
samples/bpf/cgroup_helpers.h | 16 ++
samples/bpf/test_cgrp2_attach2.c | 132 ++++++++++++++++
samples/bpf/test_current_task_under_cgroup_user.c | 108 +++----------
5 files changed, 352 insertions(+), 85 deletions(-)
create mode 100644 samples/bpf/cgroup_helpers.c
create mode 100644 samples/bpf/cgroup_helpers.h
create mode 100644 samples/bpf/test_cgrp2_attach2.c
--
2.7.4
next reply other threads:[~2016-12-02 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 10:42 Sargun Dhillon [this message]
2016-12-03 21:08 ` [PATCH net-next 0/2] samples, bpf: Refactor; Add automated tests for cgroups David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161202104201.GA9217@ircssh.c.rugged-nimbus-611.internal \
--to=sargun@sargun.me \
--cc=ast@fb.com \
--cc=daniel@zonque.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).