<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libcg.git/src/tools, branch master</title>
<subtitle>Unnamed repository; edit this file to name it for gitweb.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/'/>
<entry>
<title>don't export functions that should not be exported</title>
<updated>2010-03-26T11:56:45+00:00</updated>
<author>
<name>Lennart Poettering</name>
<email>lennart@poettering.net</email>
</author>
<published>2010-03-24T20:05:23+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=7943d1eb2be34569829dfc2812a1bf4f6a6eb4d0'/>
<id>7943d1eb2be34569829dfc2812a1bf4f6a6eb4d0</id>
<content type='text'>
Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cgget: properly use binary &amp; instead of boolean &amp;&amp; when checking for flags</title>
<updated>2010-03-26T11:56:44+00:00</updated>
<author>
<name>Lennart Poettering</name>
<email>lennart@poettering.net</email>
</author>
<published>2010-03-24T20:05:08+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=da79ab6702e4323f9f401f831d5da41f1e2a2a1b'/>
<id>da79ab6702e4323f9f401f831d5da41f1e2a2a1b</id>
<content type='text'>
Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>add const where applicable, drop const where unnecessary</title>
<updated>2010-03-26T11:56:43+00:00</updated>
<author>
<name>Lennart Poettering</name>
<email>lennart@poettering.net</email>
</author>
<published>2010-03-24T18:06:49+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=127da29e9ab20a3be8096cbd7f7ff225a2ddd7b7'/>
<id>127da29e9ab20a3be8096cbd7f7ff225a2ddd7b7</id>
<content type='text'>
This patch adds the const qualifier to a number of function arguments
(mostly string arguments) so that client libraries can pass their own
const strings to the library without having to cast their const'ness
away.

This also drops a couple of consts where call-by-value is done anyway,
and which hence has no effect and just misleads the users and adds
unnecessary noise to the signal. After all this is C, not C++.

Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds the const qualifier to a number of function arguments
(mostly string arguments) so that client libraries can pass their own
const strings to the library without having to cast their const'ness
away.

This also drops a couple of consts where call-by-value is done anyway,
and which hence has no effect and just misleads the users and adds
unnecessary noise to the signal. After all this is C, not C++.

Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>git: hide all generated files from git</title>
<updated>2010-03-24T16:06:20+00:00</updated>
<author>
<name>Lennart Poettering</name>
<email>mzyvopt@0pointer.de</email>
</author>
<published>2010-03-24T14:53:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=bdc36c15b77dd7db3720540efbd164899bee53c0'/>
<id>bdc36c15b77dd7db3720540efbd164899bee53c0</id>
<content type='text'>
Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Reviewed-By: Jan Safranek &lt;jsafrane@redhat.com&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lennart Poettering &lt;lennart@poettering.net&gt;
Reviewed-By: Jan Safranek &lt;jsafrane@redhat.com&gt;
Acked-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Split header file III</title>
<updated>2010-03-21T21:02:01+00:00</updated>
<author>
<name>Jan Safranek</name>
<email>jsafrane@redhat.com</email>
</author>
<published>2010-03-12T15:50:20+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=ed0881d91408000d6ea5e4f73b49acf2615df9f9'/>
<id>ed0881d91408000d6ea5e4f73b49acf2615df9f9</id>
<content type='text'>
Changelog:
 - since there are no global macros, base.h is gone
 - since there is no base.h, all headers need to include &lt;features.h&gt; to get
   __BEGIN_DECLS
 - new init.h with cgroup_init() and cgroup_get_subsys_mount_point()
 - new error.h with error handling enum and related stuff
 - use #ifndef _LIBCGROUP_*_H instead _LIBCG_*_H in header guards
 - fix few checkpatch complaints (long lines, whitespaces, ...)

The patch includes Makefile and .spec changes. I tested it compiles,
make dist produces tarball with all headers, so does also the rpm.
'make' should automatically catch all changes in new headers and
recompile dependent (=all) sources when any header changes.

libcgroup.h
  - does not declare anything, it just includes all the other files. In
    future, it might contain base of doxygen documentation (some
    introduction etc.)

libcgroup/error.h
  - the big enum with errors + error related functions

libcgroup/init.h
  - libcgroup_init() and cgroup_get_subsys_mount_point()

libcgroup/config.h
  - configuration reading/unloading

libcgroup/groups.h
  - group manipulation stuff (create/modify/delete/free, incl. controllers and
    get/set values) + definition of struct cgroup (=must be included by
    libcgroup/tasks.h, which needs it)

libcgroup/iterators.h
  - various walks, *_begin/next/end

libcgroup/tasks.h
  - task classification, incl. rules cache manipulation

In addition, I probably removed some #includes, which are not needed now when
looking for the minimal #include set to build the project. I also hope I did not
miss any function declaration or macro...

Signed-off-by: Jan Safranek &lt;jsafrane@redhat.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changelog:
 - since there are no global macros, base.h is gone
 - since there is no base.h, all headers need to include &lt;features.h&gt; to get
   __BEGIN_DECLS
 - new init.h with cgroup_init() and cgroup_get_subsys_mount_point()
 - new error.h with error handling enum and related stuff
 - use #ifndef _LIBCGROUP_*_H instead _LIBCG_*_H in header guards
 - fix few checkpatch complaints (long lines, whitespaces, ...)

The patch includes Makefile and .spec changes. I tested it compiles,
make dist produces tarball with all headers, so does also the rpm.
'make' should automatically catch all changes in new headers and
recompile dependent (=all) sources when any header changes.

libcgroup.h
  - does not declare anything, it just includes all the other files. In
    future, it might contain base of doxygen documentation (some
    introduction etc.)

libcgroup/error.h
  - the big enum with errors + error related functions

libcgroup/init.h
  - libcgroup_init() and cgroup_get_subsys_mount_point()

libcgroup/config.h
  - configuration reading/unloading

libcgroup/groups.h
  - group manipulation stuff (create/modify/delete/free, incl. controllers and
    get/set values) + definition of struct cgroup (=must be included by
    libcgroup/tasks.h, which needs it)

libcgroup/iterators.h
  - various walks, *_begin/next/end

libcgroup/tasks.h
  - task classification, incl. rules cache manipulation

In addition, I probably removed some #includes, which are not needed now when
looking for the minimal #include set to build the project. I also hope I did not
miss any function declaration or macro...

Signed-off-by: Jan Safranek &lt;jsafrane@redhat.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Move private definitions to private header</title>
<updated>2010-03-21T21:02:01+00:00</updated>
<author>
<name>Jan Safranek</name>
<email>jsafrane@redhat.com</email>
</author>
<published>2010-03-12T15:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=4f6e409bad2dfa94a4245f7ea612b91a9baed2b7'/>
<id>4f6e409bad2dfa94a4245f7ea612b91a9baed2b7</id>
<content type='text'>
Most of the macro definitions in licgroup.h are internal, let's move them
to private header. Applications should not depend on them. The only one
really needed is CG_VALUE_MAX, which is used in struct cgroup_stat.

Signed-off-by: Jan Safranek &lt;jsafrane@redhat.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most of the macro definitions in licgroup.h are internal, let's move them
to private header. Applications should not depend on them. The only one
really needed is CG_VALUE_MAX, which is used in struct cgroup_stat.

Signed-off-by: Jan Safranek &lt;jsafrane@redhat.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove GNU_SOURCE from public headers</title>
<updated>2010-03-08T14:02:35+00:00</updated>
<author>
<name>Jan Safranek</name>
<email>jsafrane@redhat.com</email>
</author>
<published>2010-03-08T11:45:57+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=794b7a1c93515115359682ba2f7c6ecb1ca7586a'/>
<id>794b7a1c93515115359682ba2f7c6ecb1ca7586a</id>
<content type='text'>
Remove GNU_SOURCE from public headers, it has unpredictable consequences on
applications using libcgroup.h

Signed-off-by: Jan Safranek &lt;jsafrane@redhat.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove GNU_SOURCE from public headers, it has unpredictable consequences on
applications using libcgroup.h

Signed-off-by: Jan Safranek &lt;jsafrane@redhat.com&gt;
Signed-off-by: Dhaval Giani &lt;dhaval.giani@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix cgroup_get_value_string problem with *.stat output</title>
<updated>2010-02-10T11:13:37+00:00</updated>
<author>
<name>Ivana Hutarova Varekova</name>
<email>varekova@redhat.com</email>
</author>
<published>2010-02-08T12:32:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=6a7cfad855f7dc0c0a030dc0cc812c5fa9fdeb53'/>
<id>6a7cfad855f7dc0c0a030dc0cc812c5fa9fdeb53</id>
<content type='text'>
fix cgroup_get_value_string problem with *.stat output
the problem was in the low limit for value for the output of stat variables - now there are used the functions cgroup_read_stats_{begin/next/end} for this purpose

bogus output:
./src/tools/cgget -r memory.stat /
/:
memory.stat=cache 1024561152
rss 291270656
pgpgin 1209259
pgpgout 888011
inactive_anon 8192
active_anon 2976481

fixed output:
$ ./src/tools/cgget -r memory.stat /
/:
memory.stat=cache 1024610304
	rss 291270656
	pgpgin 1209271
	pgpgout 888011
	inactive_anon 8192
	active_anon 297648128
	inactive_file 619126784
	active_file 399073280
	unevictable 24576
	hierarchical_memory_limit 9223372036854775807
	hierarchical_memsw_limit 9223372036854775807
	total_cache 1024610304
	total_rss 291270656
	total_pgpgin 1209271
	total_pgpgout 888011
	total_inactive_anon 8192
	total_active_anon 297648128
	total_inactive_file 619126784
	total_active_file 399073280
	total_unevictable 24576

Signed-off-by: Ivana Hutarova Varekova &lt;varekova@redhat.com&gt;
Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix cgroup_get_value_string problem with *.stat output
the problem was in the low limit for value for the output of stat variables - now there are used the functions cgroup_read_stats_{begin/next/end} for this purpose

bogus output:
./src/tools/cgget -r memory.stat /
/:
memory.stat=cache 1024561152
rss 291270656
pgpgin 1209259
pgpgout 888011
inactive_anon 8192
active_anon 2976481

fixed output:
$ ./src/tools/cgget -r memory.stat /
/:
memory.stat=cache 1024610304
	rss 291270656
	pgpgin 1209271
	pgpgout 888011
	inactive_anon 8192
	active_anon 297648128
	inactive_file 619126784
	active_file 399073280
	unevictable 24576
	hierarchical_memory_limit 9223372036854775807
	hierarchical_memsw_limit 9223372036854775807
	total_cache 1024610304
	total_rss 291270656
	total_pgpgin 1209271
	total_pgpgout 888011
	total_inactive_anon 8192
	total_active_anon 297648128
	total_inactive_file 619126784
	total_active_file 399073280
	total_unevictable 24576

Signed-off-by: Ivana Hutarova Varekova &lt;varekova@redhat.com&gt;
Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>This patch adds to cgget option -a:</title>
<updated>2010-02-10T11:13:37+00:00</updated>
<author>
<name>Ivana Hutarova Varekova</name>
<email>varekova@redhat.com</email>
</author>
<published>2010-02-08T12:32:26+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=a2167e206bf6062e1a2388d54ca14df0389b872f'/>
<id>a2167e206bf6062e1a2388d54ca14df0389b872f</id>
<content type='text'>
v2:
removed bunch of unnecessary error messages
This patch adds to cgget option -a:
-a     print the variables for all controllers which consists given cgroup

EXAMPLE:
$ ./cgget -a /daemons
/daemons:
cpuset.memory_spread_slab=0
cpuset.memory_spread_page=0
cpuset.memory_pressure=0
cpuset.memory_migrate=0
cpuset.sched_relax_domain_level=-1
cpuset.sched_load_balance=1
cpuset.mem_hardwall=0
cpuset.mem_exclusive=0
cpuset.cpu_exclusive=0
cpuset.mems=
cpuset.cpus=
cpuacct.stat=user 0
system 0
cpuacct.usage_percpu=0 0
cpuacct.usage=0

Signed-off-by: Ivana Hutarova Varekova &lt;varekova@redhat.com&gt;
Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
v2:
removed bunch of unnecessary error messages
This patch adds to cgget option -a:
-a     print the variables for all controllers which consists given cgroup

EXAMPLE:
$ ./cgget -a /daemons
/daemons:
cpuset.memory_spread_slab=0
cpuset.memory_spread_page=0
cpuset.memory_pressure=0
cpuset.memory_migrate=0
cpuset.sched_relax_domain_level=-1
cpuset.sched_load_balance=1
cpuset.mem_hardwall=0
cpuset.mem_exclusive=0
cpuset.cpu_exclusive=0
cpuset.mems=
cpuset.cpus=
cpuacct.stat=user 0
system 0
cpuacct.usage_percpu=0 0
cpuacct.usage=0

Signed-off-by: Ivana Hutarova Varekova &lt;varekova@redhat.com&gt;
Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>adds new option -g to cgget command</title>
<updated>2010-02-10T11:13:37+00:00</updated>
<author>
<name>Ivana Hutarova Varekova</name>
<email>varekova@redhat.com</email>
</author>
<published>2010-02-08T12:32:18+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/jsafrane/public_git/libcg.git/commit/?id=82d4499dd8626cfad839683e9abd9dc7e45ed7a1'/>
<id>82d4499dd8626cfad839683e9abd9dc7e45ed7a1</id>
<content type='text'>
adds new option -g to cgget command
* the option has one argument - controller
* cgget -g devices / returns the values of all variables of controller
devices
* the option could be used multiple times

EXAMLES:

$ ./cgget -n -g cpu -r cpuset.mems /
cpu.rt_period_us=1000000
cpu.rt_runtime_us=950000
cpu.shares=1024
cpuset.mems=0

Signed-off-by: Ivana Hutarova Varekova &lt;varekova@redhat.com&gt;
Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
adds new option -g to cgget command
* the option has one argument - controller
* cgget -g devices / returns the values of all variables of controller
devices
* the option could be used multiple times

EXAMLES:

$ ./cgget -n -g cpu -r cpuset.mems /
cpu.rt_period_us=1000000
cpu.rt_runtime_us=950000
cpu.shares=1024
cpuset.mems=0

Signed-off-by: Ivana Hutarova Varekova &lt;varekova@redhat.com&gt;
Signed-off-by: Balbir Singh &lt;balbir@linux.vnet.ibm.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
