Re: [lttng-dev] Question about use libbabeltrace

2012-12-18 Thread Hui Zhu
On Fri, Dec 14, 2012 at 2:13 PM, Yannick Brosseau wrote: > On 2012-12-13 06:35, Mathieu Desnoyers wrote: >> * Hui Zhu (teawa...@gmail.com) wrote: >>> Hi guys, >>> >>> Maybe you had known that I am working on add CTF support to GDB that >>> use libbabeltrace from my prev mail. >>> >>> I use libbabe

[lttng-dev] babletrace with python bindings

2012-12-18 Thread ajonwa ajonwa
Hello everyone, I get the following error message while attempting to compile babeltrace with python bindings: CC _babeltrace_la-babeltrace_wrap.lo babeltrace_wrap.c: In function '_wrap__bt_ctf_field_type': babeltrace_wrap.c:4621:56: warning: passing argument 1 of 'bt_ctf_field_type' from inc

[lttng-dev] [PATCH 1/5] run-report: Use libtool wrapper to spawn the sessiond for tests

2012-12-18 Thread Christian Babeux
The run-report script was using the sessiond binary generated via libtool under the ".libs/" folder. When using this binary, the consumerd used when starting the sessiond is the one installed system-wide (if any). This could lead to tests failures if no consumer are installed in the system or any v

[lttng-dev] [PATCH 2/5] run-report: Restore SIGPIPE default handler in subprocess calls

2012-12-18 Thread Christian Babeux
Python override the SIGPIPE default handler because it prefers to check every write and raise an IOError exception rather than taking SIGPIPE [1]. This behavior has the unfortunate side-effect of polluting stdout with broken pipe messages on shell pipelines invocations (e.g. echo foo | grep someth

[lttng-dev] [PATCH 3/5] run-report: Fix CPU usage stats computation

2012-12-18 Thread Christian Babeux
The CPU usage statistics are computed by grepping the top command output. The top output format as since changed so the CPU usage statistics were not properly computed. Fix this by adjusting to the new top command output format. Signed-off-by: Christian Babeux --- tests/run-report.py | 10 +

[lttng-dev] [PATCH 4/5] run-report: Allow tests to spawn and control their own sessiond

2012-12-18 Thread Christian Babeux
The run-report script can spawn a sessiond if the 'daemon' key value is set to 'True' in the test description dictionary. If the 'daemon' key is set to 'False', the TEST_NO_SESSIOND environment variable is set so no sessiond can be spawned in the tests. This variable is also set when the run-report

[lttng-dev] [PATCH 5/5] run-report: Add tools filtering, health check and streaming tests

2012-12-18 Thread Christian Babeux
Signed-off-by: Christian Babeux --- tests/test_list.py | 82 -- 1 file changed, 74 insertions(+), 8 deletions(-) mode change 100644 => 100755 tests/test_list.py diff --git a/tests/test_list.py b/tests/test_list.py old mode 100644 new mode 100

Re: [lttng-dev] [PATCH 1/5] run-report: Use libtool wrapper to spawn the sessiond for tests

2012-12-18 Thread David Goulet
Merged! Thanks! David Christian Babeux: > The run-report script was using the sessiond binary generated via libtool > under the ".libs/" folder. When using this binary, the consumerd used when > starting the sessiond is the one installed system-wide (if any). This could > lead to tests failures