|
Hi,
Changelog of v6:
================
* New patch.
This patch adds a new test command "proctest" for testing both
cgroup_get_uid_gid_from_procfs() and cgroup_get_procname_from_procfs().
# sleep 100 &
[1] 28558
# ./tests/proctest $$ 28558
Pid | Process name | Uid | Gid
-------+----------------------------------+-------+-------
27219 | /bin/bash | 0 | 0
28558 | /bin/sleep | 0 | 0
#
The functions get a process information from /proc fs, and they are
fragile because the content of /proc fs is not stable. If changing
/proc fs in future, this test command will be useful for catching
the change.
Thanks
Ken'ichi Ohmichi
Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
|