]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
samples: Add C samples
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 23 Feb 2022 15:01:38 +0000 (08:01 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 23 Feb 2022 15:01:38 +0000 (08:01 -0700)
commitfb7f397e5e12c95a6ea21f4c19c539548a1ad137
tree48f653f26e99241eba3ae873d33c14354dde8172
parentb546e328e00c21970b04a165108e8c6743ca50a4
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>
20 files changed:
configure.ac
samples/Makefile.am
samples/c/Makefile.am [new file with mode: 0644]
samples/c/get_all_controller.c [new file with mode: 0644]
samples/c/get_controller.c [new file with mode: 0644]
samples/c/get_mount_point.c [new file with mode: 0644]
samples/c/get_procs.c [new file with mode: 0644]
samples/c/get_variable_names.c [new file with mode: 0644]
samples/c/libcg_ba.cpp [new file with mode: 0644]
samples/c/libcgrouptest.h [new file with mode: 0644]
samples/c/libcgrouptest01.c [new file with mode: 0644]
samples/c/logger.c [new file with mode: 0644]
samples/c/proctest.c [new file with mode: 0644]
samples/c/read_stats.c [new file with mode: 0644]
samples/c/setuid.c [new file with mode: 0644]
samples/c/test_functions.c [new file with mode: 0644]
samples/c/test_named_hierarchy.c [new file with mode: 0644]
samples/c/walk_task.c [new file with mode: 0644]
samples/c/walk_test.c [new file with mode: 0644]
samples/c/wrapper_test.c [new file with mode: 0644]