]> git.ipfire.org Git - thirdparty/libcgroup.git/log
thirdparty/libcgroup.git
3 years agosamples/get_controller.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:55:22 +0000 (21:25 +0530)] 
samples/get_controller.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG.  It also introduces reverse xmas tree local
variable declarations and header file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 0 warnings, 34 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosamples/get_all_controller.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:54:28 +0000 (21:24 +0530)] 
samples/get_all_controller.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG.  It also introduces reverse xmas tree local
variable declarations and header file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 0 warnings, 34 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgrulesengd.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:54:04 +0000 (21:24 +0530)] 
cgrulesengd.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 10 errors, 36 warnings, 1306 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgrulesengd.h: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:53:45 +0000 (21:23 +0530)] 
cgrulesengd.h: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 18 warnings, 129 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agopam/pam_cgroup.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:51:53 +0000 (21:21 +0530)] 
pam/pam_cgroup.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 10 warnings, 163 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotools-common.h: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:51:36 +0000 (21:21 +0530)] 
tools-common.h: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 7 warnings, 145 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotools-common.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:50:38 +0000 (21:20 +0530)] 
tools-common.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 2 warnings, 312 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agolssubsys.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 16:24:34 +0000 (21:54 +0530)] 
lssubsys.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 16 warnings, 295 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agolscgroup.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:45:33 +0000 (21:15 +0530)] 
lscgroup.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 9 warnings, 328 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgxset.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:45:01 +0000 (21:15 +0530)] 
cgxset.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 20 warnings, 385 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgxget.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:42:43 +0000 (21:12 +0530)] 
cgxget.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 2 errors, 17 warnings, 921 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgsnapshot.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:37:43 +0000 (21:07 +0530)] 
cgsnapshot.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 39 warnings, 847 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgset.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:36:34 +0000 (21:06 +0530)] 
cgset.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 16 warnings, 284 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgget.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:32:16 +0000 (21:02 +0530)] 
cgget.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 2 errors, 13 warnings, 772 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgexec.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:25:09 +0000 (20:55 +0530)] 
cgexec.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 2 errors, 8 warnings, 178 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgdelete.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:24:30 +0000 (20:54 +0530)] 
cgdelete.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 6 warnings, 303 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgcreate.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:23:50 +0000 (20:53 +0530)] 
cgcreate.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 10 warnings, 247 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgconfig.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:22:59 +0000 (20:52 +0530)] 
cgconfig.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 11 warnings, 213 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgclassify.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 16 Mar 2022 15:22:23 +0000 (20:52 +0530)] 
cgclassify.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO and NEW_TYPEDEFS types.  It
also introduces reverse xmas tree local variable declarations and header
file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 2 errors, 10 warnings, 203 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years ago.checkpatch.conf: add NEW_TYPEDEFS to ignore-list
Kamalesh Babulal [Mon, 14 Mar 2022 10:35:06 +0000 (16:05 +0530)] 
.checkpatch.conf: add NEW_TYPEDEFS to ignore-list

There are tools/files, that introduce new typdefs and checkpatch.pl is
unhappy about it. It takes some re-work on removing and for now let's
teach checkpatch to ignore it.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoAdopt SPDX License tag for files missing license information
Kamalesh Babulal [Mon, 14 Mar 2022 04:38:44 +0000 (10:08 +0530)] 
Adopt SPDX License tag for files missing license information

Adopt SPDX license tag for all the source files, those missing License
information.  All the files in the project fall under project license,
hence explicitly adding LGPL-2.1-only identifier to them.  The SPDX
license identifier is added for the files, reported by checkpatch.pl.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoAdopt SPDX License tag
Kamalesh Babulal [Mon, 14 Mar 2022 04:35:01 +0000 (10:05 +0530)] 
Adopt SPDX License tag

Adopt SPDX license tag for all the source files, those already have
LGPL 2.1 bolierplate in them.  Adopting SPDX license helps the
compliance tools to determine the license and also helps in reducing the
repetitive license boilerplate across source files.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosamples/c: drop the test suites
Kamalesh Babulal [Fri, 11 Mar 2022 14:54:43 +0000 (07:54 -0700)] 
samples/c: drop the test suites

samples/c contains test cases, those do serve as good examples on how to
use some APIs, but there are also very elaborate test cases, which are
test suites in themselves.  Let's drop these examples and allow users to
look at gunit/ftests for how to contribute to test cases.  This patch
also modifies the Makefile to help users to build the examples, in case
they want to give it a quick try.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agolog: add log level string prefix to logging functions
Kamalesh Babulal [Fri, 11 Mar 2022 14:51:09 +0000 (07:51 -0700)] 
log: add log level string prefix to logging functions

Usage of cgroup_{err, warn, info} functions, expects the log level to be
prefixed to the message like: cgroup_warn("Warning: ...").  This patch
removes this need to prefix and automatically adds the desired prefix to
the logger function, so the usage becomes cgroup_warn("...").  This
helps in readability and avoiding typos in setting the right log level
string to the message.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocheckpatch.conf: introduce checkpatch.pl configuration
Kamalesh Babulal [Wed, 9 Mar 2022 11:52:35 +0000 (17:22 +0530)] 
checkpatch.conf: introduce checkpatch.pl configuration

Introduce checkpatch.conf, which defines the rules those are exempted in
libcgroup when running scripts/checkpatch.pl from Linux Kernel sources.

This helps us in introducing a coding standard and stay close to already
well defined and debated coding style that of the Linux Kernel.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/abstraction-map.c: re-arrange the header files
Kamalesh Babulal [Wed, 9 Mar 2022 11:51:33 +0000 (17:21 +0530)] 
src/abstraction-map.c: re-arrange the header files

Re-arrange the headers files, in the following order:
1. Header files that declare the functions, are defined in this file.
2. Other header files from the libcgroup.
3. Standard header file.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/abstraction-cpuset.c: re-arrange the header files
Kamalesh Babulal [Wed, 9 Mar 2022 11:49:42 +0000 (17:19 +0530)] 
src/abstraction-cpuset.c: re-arrange the header files

Re-arrange the headers files, in the following order:
1. Header files that declare the functions, are defined in this file.
2. Other header files from the libcgroup.
3. Standard header file.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/abstraction-cpu.c: re-arrange the header files
Kamalesh Babulal [Wed, 9 Mar 2022 11:46:32 +0000 (17:16 +0530)] 
src/abstraction-cpu.c: re-arrange the header files

Re-arrange the headers files, in the following order:
1. Header files that declare the functions, are defined in this file.
2. Other header files from the libcgroup.
3. Standard header file.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/api.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 13:59:57 +0000 (19:29 +0530)] 
src/api.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 26 errors, 204 warnings, 5855 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/wrapper.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 10:09:49 +0000 (15:39 +0530)] 
src/wrapper.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 55 warnings, 743 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/log.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 10:03:41 +0000 (15:33 +0530)] 
src/log.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 3 warnings, 96 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/config.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 07:54:35 +0000 (13:24 +0530)] 
src/config.c: fix checkpatch.pl warnings

Fix most of the warnings/errors reported by Linux Kernel's
checkpatch.pl, except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.
It also introduces reverse xmas tree local variable declarations
and header file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 4 errors, 36 warnings, 1899 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/libcgroup-internal.h: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 13:58:31 +0000 (19:28 +0530)] 
src/libcgroup-internal.h: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 5 errors, 2 warnings, 438 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/abstraction-common.h: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 07:11:03 +0000 (12:41 +0530)] 
src/abstraction-common.h: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 4 warnings, 150 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosrc/abstraction-common.c: fix checkpatch.pl warnings
Kamalesh Babulal [Wed, 9 Mar 2022 06:54:27 +0000 (12:24 +0530)] 
src/abstraction-common.c: fix checkpatch.pl warnings

Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG, USE_NEGATIVE_ERRNO types.  It also introduces
reverse xmas tree local variable declarations and header file
reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 0 errors, 7 warnings, 320 lines checked

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-013: add support for newer cpu.pressure output
Kamalesh Babulal [Thu, 10 Mar 2022 05:09:21 +0000 (10:39 +0530)] 
test-013: add support for newer cpu.pressure output

Kernel commit 0e94682b73bf ("psi: introduce psi monitor"), adds more
information to the cgroup V2 cpu.pressure file. This patch recognizes
the additional information displayed while reading cpu.pressure file.

Older format:
-------------
cpu.pressure: some avg10=0.00 avg60=0.00 avg300=0.00 total=0

New format:
-----------
some avg10=0.00 avg60=0.00 avg300=0.00 total=0
full avg10=0.00 avg60=0.00 avg300=0.00 total=0

Fixes: https://github.com/libcgroup/libcgroup/issues/105
Reported-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-010: add support for newer cpu.pressure output
Kamalesh Babulal [Thu, 10 Mar 2022 05:08:03 +0000 (10:38 +0530)] 
test-010: add support for newer cpu.pressure output

Kernel commit 0e94682b73bf ("psi: introduce psi monitor"), adds more
information to the cgroup V2 cpu.pressure file. This patch recognizes
the additional information displayed while reading cpu.pressure file.

Older format:
-------------
cpu.pressure: some avg10=0.00 avg60=0.00 avg300=0.00 total=0

New format:
-----------
some avg10=0.00 avg60=0.00 avg300=0.00 total=0
full avg10=0.00 avg60=0.00 avg300=0.00 total=0

Fixes: https://github.com/libcgroup/libcgroup/issues/105
Reported-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-009: add support for newer cpu.pressure output
Kamalesh Babulal [Thu, 10 Mar 2022 05:11:17 +0000 (10:41 +0530)] 
test-009: add support for newer cpu.pressure output

Kernel commit 0e94682b73bf ("psi: introduce psi monitor"), adds more
information to the cgroup V2 cpu.pressure file. This patch recognizes
the additional information displayed while reading cpu.pressure file.

Older format:
-------------
cpu.pressure: some avg10=0.00 avg60=0.00 avg300=0.00 total=0

New format:
-----------
some avg10=0.00 avg60=0.00 avg300=0.00 total=0
full avg10=0.00 avg60=0.00 avg300=0.00 total=0

Fixes: https://github.com/libcgroup/libcgroup/issues/105
Reported-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoworkflows/ci: use more extensive Python lint
Kamalesh Babulal [Fri, 4 Mar 2022 16:16:49 +0000 (09:16 -0700)] 
workflows/ci: use more extensive Python lint

Make the Python linting more exhaustive, using
https://github.com/reviewdog/action-flake8. The current linting
is limited to syntax errors, and it can also be extended. The
reason to use new action is that there is active development
in comparison to the current action used.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotools/lssubsys: fix strncpy() warning
Kamalesh Babulal [Mon, 28 Feb 2022 14:11:43 +0000 (19:41 +0530)] 
tools/lssubsys: fix strncpy() warning

GCC complains about string truncations in
print_all_controllers_in_hierarchy:

In function 'print_all_controllers_in_hierarchy',
    inlined from 'cgroup_list_all_controllers' at lssubsys.c:226:9,
    inlined from 'main' at lssubsys.c:294:8:
lssubsys.c:127:25: warning: 'strncpy' output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation]
  127 |                         strncpy(cont_name, info.name, FILENAME_MAX-1);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lssubsys.c:131:25: warning: 'strncpy' output may be truncated copying 4095 bytes from a string of length 4095 [-Wstringop-truncation]
  131 |                         strncpy(cont_names, info.name, FILENAME_MAX-1);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

this warning seems to be a little odd when the current code is already
explicitly truncating the string. Digging deeper, it looks like the
memset(), followed by strncpy() with -O >= 2 triggers this warning on
GCC 11. A simple and safe fix would be removing the memset(). As per
the standard's strncpy() will fill the destination string with '\0', if
the source string length is lesser than that of the destination.  This
fix, take this approach.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoapi: fix strncpy() warning in cgroup_process_v2_mnt
Kamalesh Babulal [Mon, 28 Feb 2022 14:07:20 +0000 (19:37 +0530)] 
api: fix strncpy() warning in cgroup_process_v2_mnt

Fix a GCC warning about un-truncated strncpy() in
cgroup_process_v2_mnt():

In function 'cgroup_process_v2_mnt',
    inlined from 'cgroup_init' at api.c:1387:10:
api.c:1205:9: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation]
 1205 |         strncpy(cg_cgroup_v2_mount_path, ent->mnt_dir, FILENAME_MAX);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoREADME.md: Add continuous integration badge
Tom Hromatka [Thu, 24 Feb 2022 17:00:40 +0000 (10:00 -0700)] 
README.md: Add continuous integration badge

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgroup.py: replace UnicodeDecodeError with RunError
Kamalesh Babulal [Thu, 24 Feb 2022 15:37:23 +0000 (21:07 +0530)] 
cgroup.py: replace UnicodeDecodeError with RunError

init_cgrules(), tries creating a directory '/etc/cgconfig.d' and relies
on stderr from RunError to check if the directory already exists and
fails on other exceptions. The exception logic can be simplified by,
passing `-p` to mkdir and fail on any RunError exceptions.

This patch replaces except UnicodeDecodeError RunError to catch
any exceptions raised when running the command
`mkdir -p /etc/cgconfig.d`.

Suggested-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agorun.py: fix codec type used to decode stdout, stderr
Kamalesh Babulal [Wed, 23 Feb 2022 13:43:33 +0000 (19:13 +0530)] 
run.py: fix codec type used to decode stdout, stderr

Codec 'ascii' only decodes English and can't understand other characters
and raise an UnicodeDecodeError. For example, consider running 'mkdir' on
an already existing directory, it would trigger:

err.strip().decode('ascii')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 31: ordinal not in range(128)

fix it by using 'UTF-8' as Codec for decoding, with the patch stderr
will be:

err.strip().decode('UTF-8')
'mkdir: cannot create directory â€˜out’: File exists'

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoftests.py: fix double import of log
Kamalesh Babulal [Wed, 23 Feb 2022 09:47:30 +0000 (15:17 +0530)] 
ftests.py: fix double import of log

Fix double import, 'import log' and 'from log import Log'. The reason to
do so is to access the global variable from the log package. This patch
uses only 'import log' that will work for both accessing the global
variables and Class Log functions.

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agolog.py: fix selfimport
Kamalesh Babulal [Wed, 23 Feb 2022 09:38:48 +0000 (15:08 +0530)] 
log.py: fix selfimport

It's not advised to selfimport, i.e import log. To remove this
selfimport, the global variable access needs to be fixed by using
'global' keyword inside the Class methods.

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgroup.py: fix nested loop variable in get_cgroup_mounts()
Kamalesh Babulal [Wed, 23 Feb 2022 06:16:03 +0000 (11:46 +0530)] 
cgroup.py: fix nested loop variable in get_cgroup_mounts()

In get_cgroup_mounts(), both files '/proc/mounts' and
'<mountpoint>/cgroup.controller' uses 'line' as loop variable
to read lines from the file.  The issue here is that, they are
nested. This patch renames second loop variable
'line' -> 'ctrlf_line'.

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoutils.py: remove unreachable code in get_file_owner_username()
Kamalesh Babulal [Wed, 23 Feb 2022 06:30:37 +0000 (12:00 +0530)] 
utils.py: remove unreachable code in get_file_owner_username()

remove the return statement, that will never get executed in
get_file_owner_username().

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocontainer.py: fix argument list ContainerError::__init__
Kamalesh Babulal [Wed, 23 Feb 2022 06:27:14 +0000 (11:57 +0530)] 
container.py: fix argument list ContainerError::__init__

Remove the unused argument ret from the ContainerError constructor. The
only user of the ContainerError doesn't pass or uses the ret value.

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocontainer.py: Fix erroneous super call in ContainerError()
Kamalesh Babulal [Wed, 23 Feb 2022 06:20:37 +0000 (11:50 +0530)] 
container.py: Fix erroneous super call in ContainerError()

ContainerError erroneously passed RunError into super() during
init() time.  Fix this by passing in ContainerError().

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
TJH: Fixed comment

3 years agogithub: Run the libcgroup Github Actions
Tom Hromatka [Thu, 24 Feb 2022 14:55:57 +0000 (07:55 -0700)] 
github: Run the libcgroup Github Actions

Add jobs to run the libcgroup automated tests against the main
branch of libcgroup.  Since the Github Action is being
triggered from the tests repo, the setup steps differ slightly
from libcgroup's steps.  In this case we need to move the unit
and functional tests from the root to tests/, and we need to
move the library code from libcg/ to the root.

Finally, code coverage is not enabled in these runs.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agoapi.c: Allow creation of a v2 cgroup with no controllers 102/head
Tom Hromatka [Thu, 17 Feb 2022 21:17:15 +0000 (14:17 -0700)] 
api.c: Allow creation of a v2 cgroup with no controllers

Commit 498530a1d744 ("cgcreate, tools: Allow cgroup creation with
no controllers attached") attempted to add support to allow the
creation of a cgroup v2 cgroup with no controllers attached.  This
patch did create the requested cgroup, but it still required there
to be at least one valid controller _available_ to attach to.

Rework the aforementioned logic so that the cgroup can be created
if there's a valid cgroup v2 mount - even if there are no v2
controllers available.

Fixes: 498530a1d744 ("cgcreate, tools: Allow cgroup creation with no controllers attached")
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agoprocess.py: Explicitly convert child to starting
Tom Hromatka [Wed, 23 Feb 2022 17:39:01 +0000 (10:39 -0700)] 
process.py: Explicitly convert child to starting

When killing the child processes, explicitly convert
them to strings.

Suggested-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agosamples: Add C samples
Tom Hromatka [Wed, 23 Feb 2022 15:01:38 +0000 (08:01 -0700)] 
samples: Add C samples

Move the legacy tests from libcgroup-tests [1] to the
samples/c/ directory.  While these files are no longer
being run as automated tests, they provide helpful insight
into how to utilize the libcgroup C APIs.

[1] https://github.com/libcgroup/libcgroup-tests/

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agosamples: Move the config examples to samples/config/
Tom Hromatka [Wed, 23 Feb 2022 15:01:03 +0000 (08:01 -0700)] 
samples: Move the config examples to samples/config/

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agoconfigure: Delete legacy test artifacts
Tom Hromatka [Wed, 23 Feb 2022 15:00:29 +0000 (08:00 -0700)] 
configure: Delete legacy test artifacts

The legacy tests (now located in the libcgroup-tests)
repository have been moved to
https://github.com/libcgroup/libcgroup-tests/tree/main/examples
and are no longer being run.  Remove all references to
the tests from the configure.ac file.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agocgroup.py: Fix exception handling in init_cgrules()
Tom Hromatka [Tue, 22 Feb 2022 23:08:43 +0000 (16:08 -0700)] 
cgroup.py: Fix exception handling in init_cgrules()

When /etc/cgconfig.d/ exists, a UnicodeDecodeError is
thrown because the Unicode error string cannot be
properly decoded by Run.run().  Catch this error as it's
not an error in this case.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotests: Delete legacy tests
Tom Hromatka [Tue, 22 Feb 2022 20:07:32 +0000 (13:07 -0700)] 
tests: Delete legacy tests

The legacy tests have been moved to libcgroup [1]
in the samples/c/ directory.

[1] https://github.com/libcgroup/libcgroup

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agoftests.py: make it PEP8 compliant
Kamalesh Babulal [Fri, 18 Feb 2022 06:34:56 +0000 (12:04 +0530)] 
ftests.py: make it PEP8 compliant

Make ftests.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoprocess.py: make it PEP8 compliant
Kamalesh Babulal [Fri, 18 Feb 2022 06:02:30 +0000 (11:32 +0530)] 
process.py: make it PEP8 compliant

Make process.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoutils.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 11:19:34 +0000 (16:49 +0530)] 
utils.py: make it PEP8 compliant

Make utils.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agorun.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 11:17:29 +0000 (16:47 +0530)] 
run.py: make it PEP8 compliant

Make run.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agolog.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 11:14:30 +0000 (16:44 +0530)] 
log.py: make it PEP8 compliant

Make log.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocontroller.py: make it PEP8 compliant
Kamalesh Babulal [Fri, 18 Feb 2022 06:00:52 +0000 (11:30 +0530)] 
controller.py: make it PEP8 compliant

Make controller.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocontainer.py: make it PEP8 compliant
Kamalesh Babulal [Fri, 18 Feb 2022 05:57:49 +0000 (11:27 +0530)] 
container.py: make it PEP8 compliant

Make container.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoconsts.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 11:03:54 +0000 (16:33 +0530)] 
consts.py: make it PEP8 compliant

Make consts.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoconfig.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 11:02:35 +0000 (16:32 +0530)] 
config.py: make it PEP8 compliant

Make config.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agocgroup.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 11:00:29 +0000 (16:30 +0530)] 
cgroup.py: make it PEP8 compliant

Make cgroup.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agopython/setup.py: make it PEP8 compliant
Kamalesh Babulal [Thu, 17 Feb 2022 19:39:43 +0000 (12:39 -0700)] 
python/setup.py: make it PEP8 compliant

Make setup.py PEP-8 compliant, it fixes the following two issues
reported by flake8:
- E128 continuation line under-indented for visual indent
- E251 unexpected spaces around keyword/parameter equals

also, adopt single quotes for strings.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agoREADME.md: Add python code quality badge
Tom Hromatka [Wed, 16 Feb 2022 19:27:05 +0000 (12:27 -0700)] 
README.md: Add python code quality badge

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agoREADME.md: Add a readme for libcgroup-tests
Tom Hromatka [Wed, 16 Feb 2022 19:19:22 +0000 (12:19 -0700)] 
README.md: Add a readme for libcgroup-tests

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
3 years agotest-044: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:34:29 +0000 (13:04 +0530)] 
test-044: make it PEP8 compliant

Make test 044-pybindings-cgcreate_empty_controller.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-043: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:34:01 +0000 (13:04 +0530)] 
test-043: make it PEP8 compliant

Make test 043-cgcreate-empty_controller.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-042: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:33:33 +0000 (13:03 +0530)] 
test-042: make it PEP8 compliant

Make test 042-cgxget-unmappable.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-041: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:33:13 +0000 (13:03 +0530)] 
test-041: make it PEP8 compliant

Make test 041-pybindings-library_version.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-040: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:32:54 +0000 (13:02 +0530)] 
test-040: make it PEP8 compliant

Make test 040-pybindings-cgxset.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-039: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:32:12 +0000 (13:02 +0530)] 
test-039: make it PEP8 compliant

Make test 039-pybindings-cgxget.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-038: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:31:44 +0000 (13:01 +0530)] 
test-038: make it PEP8 compliant

Make test 038-cgxget-cpuset_settings.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-037: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:28:27 +0000 (12:58 +0530)] 
test-037: make it PEP8 compliant

Make test 037-cgxget-cpu_settings.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-036: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:27:04 +0000 (12:57 +0530)] 
test-036: make it PEP8 compliant

Make test 036-cgset-multi_thread.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-035: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:26:42 +0000 (12:56 +0530)] 
test-035: make it PEP8 compliant

Make test 035-cgset-set_cgroup_type.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-034: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:26:27 +0000 (12:56 +0530)] 
test-034: make it PEP8 compliant

Make test 034-cgexec-basic_cgexec.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-033: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:25:59 +0000 (12:55 +0530)] 
test-033: make it PEP8 compliant

Make test 033-cgget-no_flags.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-032: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:25:13 +0000 (12:55 +0530)] 
test-032: make it PEP8 compliant

Make test 032-lscgroup-multiple_g_flags.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-031: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:23:55 +0000 (12:53 +0530)] 
test-031: make it PEP8 compliant

Make test 031-lscgroup-g_flag.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-030: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:23:35 +0000 (12:53 +0530)] 
test-030: make it PEP8 compliant

Make test 030-lssubsys-lssubsys_all.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-029: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:23:11 +0000 (12:53 +0530)] 
test-029: make it PEP8 compliant

Make test 029-lssubsys-basic_lssubsys.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-027: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:22:47 +0000 (12:52 +0530)] 
test-027: make it PEP8 compliant

Make test 027-cgset-invalid_options.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-026: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:22:11 +0000 (12:52 +0530)] 
test-026: make it PEP8 compliant

Make test 026-cgset-multiple_r_multiple_cgroup.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-025: make it PEP8 complaint
Kamalesh Babulal [Wed, 16 Feb 2022 06:23:51 +0000 (11:53 +0530)] 
test-025: make it PEP8 complaint

Make test 025-cgset-multiple_cgroups.py PEP-8 complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-023: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:21:23 +0000 (12:51 +0530)] 
test-023: make it PEP8 compliant

Make test 023-cgset-copy_from.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-022: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:21:01 +0000 (12:51 +0530)] 
test-022: make it PEP8 compliant

Make test 022-cgset-multiple_r_flag.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-021: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:20:44 +0000 (12:50 +0530)] 
test-021: make it PEP8 compliant

Make test 021-cgconfig-invalid_options.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-020: make it PEP8 complaint
Kamalesh Babulal [Wed, 16 Feb 2022 06:22:25 +0000 (11:52 +0530)] 
test-020: make it PEP8 complaint

Make test 020-cgconfig-tasks_perms_owner.py PEP-8 complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-019: make it PEP8 complaint
Kamalesh Babulal [Wed, 16 Feb 2022 06:21:44 +0000 (11:51 +0530)] 
test-019: make it PEP8 complaint

Make test 019-cgconfig-uidgid_dperm_fperm.py PEP-8 complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-018: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:19:24 +0000 (12:49 +0530)] 
test-018: make it PEP8 compliant

Make test 018-cgconfig-load_dir.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-017: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:04:38 +0000 (12:34 +0530)] 
test-017: make it PEP8 compliant

Make test 017-cgconfig-load_file.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-016: make it PEP8 complaint
Kamalesh Babulal [Wed, 16 Feb 2022 06:27:01 +0000 (11:57 +0530)] 
test-016: make it PEP8 complaint

Make test 016-cgget-invalid_options.py PEP-8 complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-015: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:03:45 +0000 (12:33 +0530)] 
test-015: make it PEP8 compliant

Make test 015-cgget-multiline_r_flag.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
3 years agotest-014: make it PEP8 compliant
Kamalesh Babulal [Tue, 15 Feb 2022 07:03:28 +0000 (12:33 +0530)] 
test-014: make it PEP8 compliant

Make test 014-cgget-a_flag.py PEP-8 compliant.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>