* [PATCH net-next 0/2] samples, bpf: Refactor; Add automated tests for cgroups
@ 2016-12-02 10:42 Sargun Dhillon
2016-12-03 21:08 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sargun Dhillon @ 2016-12-02 10:42 UTC (permalink / raw)
To: netdev; +Cc: daniel, ast
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next 0/2] samples, bpf: Refactor; Add automated tests for cgroups
2016-12-02 10:42 [PATCH net-next 0/2] samples, bpf: Refactor; Add automated tests for cgroups Sargun Dhillon
@ 2016-12-03 21:08 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-12-03 21:08 UTC (permalink / raw)
To: sargun; +Cc: netdev, daniel, ast
From: Sargun Dhillon <sargun@sargun.me>
Date: Fri, 2 Dec 2016 02:42:03 -0800
> 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.
Series applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-03 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 10:42 [PATCH net-next 0/2] samples, bpf: Refactor; Add automated tests for cgroups Sargun Dhillon
2016-12-03 21:08 ` David Miller
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).