[lxc-devel] [PATCH 2/3] lua: fix stats collection using get_cgroup_item

2013-11-02 Thread Dwight Engen
Previously, the lua stats collection was building its own paths to the cgroup files, which could be wrong depending on what --with-cgroup-pattern was passed to configure. Fix it to use the get_cgroup_item api so it always finds the files. Remove cgroup_path_get since it is not used anymore. Signe

[lxc-devel] [PATCH 3/3] lxc-top: show kernel memory being used if available

2013-11-02 Thread Dwight Engen
- Also removed duplicate stats_clear lua function Signed-off-by: Dwight Engen --- doc/lxc-top.sgml.in | 33 ++--- src/lua-lxc/lxc.lua | 17 ++--- src/lxc/lxc-top | 25 ++--- 3 files changed, 50 insertions(+), 25 deletions(-) diff -

[lxc-devel] [PATCH 1/3] add [gs]et_cgroup_item to lua api

2013-11-02 Thread Dwight Engen
fix up api test to run and add test for new [gs]et_cgroup_item Signed-off-by: Dwight Engen --- src/lua-lxc/core.c | 35 +++ src/lua-lxc/lxc.lua | 16 src/lua-lxc/test/apitest.lua | 13 + 3 files changed, 64 insertion

[lxc-devel] [PATCH] make sure to check c->lxc_conf is not NULL before dereferencing it.

2013-11-02 Thread S . Çağlar Onur
Signed-off-by: S.Çağlar Onur --- src/lxc/lxccontainer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index a9d97ad..362b429 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -441,7 +441,7 @@ static bool lxcap