Re: [lttng-dev] [PATCH lttng-ust v2] Add setuid wrappers for per-UID buffers

2019-06-09 Thread Philippe Proulx
On Wed, Jun 5, 2019 at 2:57 PM Gabriel-Andrew Pollo-Guilbert wrote: > > diff --git a/doc/man/lttng-ust.3.txt b/doc/man/lttng-ust.3.txt > index 5c9c9f5d..d58b43c7 100644 > --- a/doc/man/lttng-ust.3.txt > +++ b/doc/man/lttng-ust.3.txt > @@ -744,6 +744,17 @@ library before you start the application.

Re: [lttng-dev] (no subject)

2019-06-12 Thread Philippe Proulx
On Wed, Jun 12, 2019 at 11:22 PM Zvi Vered wrote: > > Hello, > > I'm trying to read the file "metadata". > I read the struct: > > struct metadata_packet_header { > uint32_t magic; /* 0x75D11D57 */ > uint8_t uuid[16]; /* Unique Universal Identifier */ > uint32_t checksum; /* 0 if unused */ > uint3

Re: [lttng-dev] Need help with CTF

2019-07-12 Thread Philippe Proulx
On Fri, Jul 12, 2019 at 2:04 AM Ravindra Kumar Meena wrote: > > Hi developers, > > trace { > major = 1; > minor = 8; > uuid = "6a7715d0-b502-4c65-8678-6777ac7f755a"; > byte_order = le; > packet.header := struct { > uint32_t magic; > uint8_t uuid[16]; >

Re: [lttng-dev] Java code for CTF trace writing?

2013-04-15 Thread Philippe Proulx
Actually, that was the exact purpose of my internship at Ericsson last summer. I designed a new architecture for the CTF part of TMF, but it is still not merged/integrated with mainline TMF (I don't even know if it's still planned). See

Re: [lttng-dev] Java code for CTF trace writing?

2013-05-06 Thread Philippe Proulx
iming synchronization though if you plan to produce your own CTF trace. Philippe Proulx On Mon, May 6, 2013 at 10:33 AM, Ostermueller, Erik < erik.ostermuel...@fisglobal.com> wrote: > Hello all, > > I've got a question about the Java code that writes CTF traces. > Would this d

[lttng-dev] [RFC] CTF files support

2013-08-22 Thread Philippe Proulx
h like the C language (it has lots of shared keywords with C) so file(1) will detect it as a C file first. Knowing this, would you accept a patch merging the C and CTF text metadata magics? This would be similar to Mach-O and Java having common detection code in "cafebabe". Thank you, P

[lttng-dev] [RFC] Add support for CTF trace files

2013-08-22 Thread Philippe Proulx
--- magic/Magdir/ctf | 18 ++ magic/Makefile.am | 1 + 2 files changed, 19 insertions(+) create mode 100644 magic/Magdir/ctf diff --git a/magic/Magdir/ctf b/magic/Magdir/ctf new file mode 100644 index 000..1848422 --- /dev/null +++ b/magic/Magdir/ctf @@ -0,0 +1,18 @@ + +#--

[lttng-dev] CTF files recognition by file(1) now upstream

2013-09-09 Thread Philippe Proulx
ch could be in a while, but still. Have a nice day, Philippe Proulx ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

[lttng-dev] libbabeltrace: getting CTF sequence length?

2014-05-20 Thread Philippe Proulx
what would be your way to read sequence items? Do you have an example using strictly what's available in /usr/include/babeltrace? I'm using the latest Git master on Arch Linux. Thank you! Philippe Proulx ___ lttng-dev mailing list lttng-dev@

Re: [lttng-dev] libbabeltrace: getting CTF sequence length?

2014-05-20 Thread Philippe Proulx
On Tue, May 20, 2014 at 4:50 PM, Jérémie Galarneau wrote: > On Tue, May 20, 2014 at 4:37 PM, Philippe Proulx > wrote: >> Hello, >> >> I'm using libbabeltrace in C++. I would like to know if there's an >> equivalent of bt_ctf_get_array_len() for sequences

Re: [lttng-dev] libbabeltrace: getting CTF sequence length?

2014-05-21 Thread Philippe Proulx
On Wed, May 21, 2014 at 7:51 AM, Simon Marchi wrote: > On 20 May 2014 23:03, Philippe Proulx wrote: >> On Tue, May 20, 2014 at 4:50 PM, Jérémie Galarneau >> wrote: >>> On Tue, May 20, 2014 at 4:37 PM, Philippe Proulx >>> wrote: >>>> Hello, >>&

[lttng-dev] [PATCH] configure.ac: fix "missing jni.h" error message

2014-09-02 Thread Philippe Proulx
DIR in --with-java-jdk=DIR must point to the JDK base directory, not the actual JDK include directory. Signed-off-by: Philippe Proulx --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 726c8e9..175a0a6 100644 --- a/configure.ac

[lttng-dev] [PATCH lttng-tools] Fix: ignore libkmod ret. value with optional kmod

2014-09-12 Thread Philippe Proulx
This commit also improves the accuracy of debug messages: a module is not "successfully" loaded when it's optional and actually not loaded. Fixes: #837 Signed-off-by: Philippe Proulx --- src/bin/lttng-sessiond/modprobe.c | 10 -- 1 file changed, 8 insertions(+), 2 del

[lttng-dev] [PATCH lttng-tools] sessiond: add --extra-kmod-probes option

2014-09-12 Thread Philippe Proulx
=custom_subsys,other would load all known and available LTTng kernel probes plus lttng_probe_custom_subsys and lttng_probe_other. Signed-off-by: Philippe Proulx --- doc/man/lttng-sessiond.8 | 8 ++ src/bin/lttng-sessiond/main.c | 10 ++ src/bin/lttng-sessiond/modprobe.c | 202

[lttng-dev] [PATCH lttng-tools] Fix: ignore error when loading optional kmod

2014-09-15 Thread Philippe Proulx
This commit also improves the accuracy of debug messages: a module is not "successfully" loaded when it's optional and actually not loaded. Fixes: #837 Signed-off-by: Philippe Proulx --- src/bin/lttng-sessiond/modprobe.c | 35 +-- 1 file changed

Re: [lttng-dev] Announcing the new LTTng website

2014-10-12 Thread Philippe Proulx
;> major improvements on the documentation side of the project. You can >> now read the documentation at [2]. >> >> Contributing and improving the documentation is now very easy, just >> follow the instructions on our Github repo [3]. >> >> A big thanks to Ph

Re: [lttng-dev] avoid ust_libc traces

2014-10-13 Thread Philippe Proulx
On Mon, Oct 13, 2014 at 6:56 PM, Anand Neeli wrote: > Hi All > > I see that ust_libc:malloc, ust_libc:free, ust_libc:calloc tracepoints > appear a lot in my traces. > I think these appear when malloc/calloc/free is done in my app. > Is there a way to disable them from logging? Those tracepoints

Re: [lttng-dev] Best way to analyze CTF files

2014-10-17 Thread Philippe Proulx
On Fri, Oct 17, 2014 at 8:13 PM, Christian Babeux wrote: > Hi Sebastien, > > A simple Python script using the Babeltrace bindings would probably do > the job here. See [1] for an example using the bindings. Yes, here's a start Sébastien : import babeltrace i

Re: [lttng-dev] Writing .tp files for lttng-gen-tp

2014-10-17 Thread Philippe Proulx
On Fri, Oct 17, 2014 at 5:39 PM, Boisvert, Sebastien wrote: > Hi, > > I wrote a big .tp file to define numerous tracepoints that only differ in the > event name. > They all take the same arguments and they all dump the same fields. > > > .tp file: > https://github.com/sebhtml/biosal/blob/master/

Re: [lttng-dev] Writing .tp files for lttng-gen-tp

2014-10-18 Thread Philippe Proulx
ssage.h: <http://pastebin.com/yiqN0CEj> * message.c: <http://pastebin.com/BmXiSCbd> Build it like this: gcc -I../../../.. -I. -c message.c and link the resulting message.o with your application as usual. > > > > > From: Philipp

Re: [lttng-dev] Writing .tp files for lttng-gen-tp

2014-10-18 Thread Philippe Proulx
e, message->destination_node) > ) > ) > > > I feel like this is better, but I don't know if this a good practice to do > this with LTTng. > >> >> From: Philippe Proulx [eeppelitel...@gmail.com] >> Sent: Saturd

Re: [lttng-dev] Announcing the new LTTng website

2014-10-19 Thread Philippe Proulx
ocumentation side of the project. You can >> now read the documentation at [2]. >> >> Contributing and improving the documentation is now very easy, just >> follow the instructions on our Github repo [3]. >> >> A big thanks to Philippe Proulx who helped design

Re: [lttng-dev] Padding with Fs in babeltrace for a 32 bits field (ctf_integer_hex)

2014-10-22 Thread Philippe Proulx
On Wed, Oct 22, 2014 at 4:34 PM, Boisvert, Sebastien wrote: > I am using LTTng-UST (lttng 2.4.1-1.el6) and babeltrace (1.2.1-1.el6) on > CentOS 6.5 (using EPEL). > > I have 2 hexadecimal fields: > > ctf_integer_hex(int, script, actor->script->identifier) > ctf_integer_hex(int, action,

Re: [lttng-dev] Padding with Fs in babeltrace for a 32 bits field (ctf_integer_hex)

2014-10-22 Thread Philippe Proulx
On Wed, Oct 22, 2014 at 5:31 PM, Boisvert, Sebastien wrote: >> >> From: Philippe Proulx [eeppelitel...@gmail.com] >> Sent: Wednesday, October 22, 2014 4:03 PM >> To: Boisvert, Sebastien >> Cc: lttng-dev@lists.lttng.org >&

Re: [lttng-dev] Padding with Fs in babeltrace for a 32 bits field (ctf_integer_hex)

2014-10-26 Thread Philippe Proulx
On Sat, Oct 25, 2014 at 6:15 PM, Mathieu Desnoyers wrote: > - Original Message - >> From: "Jérémie Galarneau" >> To: "Mathieu Desnoyers" >> Cc: "Philippe Proulx" , "Sebastien Boisvert" >> , lttng-dev@lists.lttng.org &g

Re: [lttng-dev] babeltrace-python bindings

2014-11-04 Thread Philippe Proulx
n not use babeltrace python bindings > when i run import babeltrace it output error with no module What is the output of this command: ls /usr/lib/python3.*/site-packages ? Philippe Proulx > > I really need you help about it > Thank you very much in advance > > Bin Ye >

Re: [lttng-dev] instrumenting "tutorial" and RTAI

2014-11-26 Thread Philippe Proulx
On Wed, Nov 26, 2014 at 11:59 AM, wrote: > > Hello, right now I am reading the LTTng documentation and I am at the point > with the "tutorial" for adding a tracepoint to the usb_probe_device(). I > updated the files as instructed, rebuilt the kernel and bootet it, but the > "/sys/kernel/debug/tra

[lttng-dev] [lttng-tools 0/2] Fix various polling loops when using poll()

2014-11-26 Thread Philippe Proulx
few of those polling loops in LTTng-tools where it is assumed that revents is not 0 (epoll_wait() behaviour). Philippe Proulx (2): Fix: sessiond: revents may be 0 when using poll() Fix: relayd: revents may be 0 when using poll() src/bin/lttng-relayd/main.c | 5 + src/bin/lttng

[lttng-dev] [lttng-tools 1/2] Fix: sessiond: revents may be 0 when using poll()

2014-11-26 Thread Philippe Proulx
Fixes: #747 Signed-off-by: Philippe Proulx --- src/bin/lttng-sessiond/ht-cleanup.c | 5 + src/bin/lttng-sessiond/main.c | 10 ++ src/bin/lttng-sessiond/ust-thread.c | 5 + 3 files changed, 20 insertions(+) diff --git a/src/bin/lttng-sessiond/ht-cleanup.c b/src/bin

[lttng-dev] [lttng-tools 2/2] Fix: relayd: revents may be 0 when using poll()

2014-11-26 Thread Philippe Proulx
Refs: #747 Signed-off-by: Philippe Proulx --- src/bin/lttng-relayd/main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 00b8735..07cb8f5 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c

[lttng-dev] [lttng-ust] Fix: man: you can't link a lib with a static lib

2014-11-26 Thread Philippe Proulx
Fixes: #825 Signed-off-by: Philippe Proulx --- doc/man/lttng-ust.3 | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/doc/man/lttng-ust.3 b/doc/man/lttng-ust.3 index 0c8405f..3d52bc0 100644 --- a/doc/man/lttng-ust.3 +++ b/doc/man/lttng-ust.3 @@ -299,17 +299,13

[lttng-dev] [lttng-tools] Fix: channel name with '.' and '/' brings problems

2014-11-26 Thread Philippe Proulx
er, since trace readers (Babeltrace is one of them) could interpret files starting with a dot as hidden files and ignore them when opening the CTF trace Fixes: #751 Signed-off-by: Philippe Proulx --- src/bin/lttng/commands/enable_channels.c | 38 +++-

Re: [lttng-dev] [lttng-tools] Fix: channel name with '.' and '/' brings problems

2014-11-26 Thread Philippe Proulx
h, which is more a discussion starter than anything else ;-) Phil > > On Wed, Nov 26, 2014 at 10:32 PM, Philippe Proulx > wrote: >> >> This patch ensures: >> >> 1. A channel name does not contain any '/' character, since >> relative paths may be

[lttng-dev] [PATCH lttng-tools] Fix: channel names are not validated

2014-11-27 Thread Philippe Proulx
er, since trace readers (Babeltrace is one of them) could interpret files starting with a dot as hidden files and ignore them when opening the CTF trace Fixes: #751 Signed-off-by: Philippe Proulx --- include/lttng/lttng-error.h | 1 + src/bin/lttng-sessiond/cm

Re: [lttng-dev] Bug in LTTng-UST

2014-12-12 Thread Philippe Proulx
On Fri, Dec 12, 2014 at 11:21 PM, Simon Marchi wrote: > Actually, I think the problem comes from UST not handling when a > program dlcloses a lib. There is a simpler way to show the problem. > Just have an app dlopen a .so that has a tracepoint and dlclose it. > When the app quits, UST will try to

Re: [lttng-dev] bug #857 -- babeltrace may core dump if index file is too short (with patch)

2014-12-14 Thread Philippe Proulx
On Sun, Dec 14, 2014 at 1:47 PM, Jérémie Galarneau wrote: > > On Sat, Dec 13, 2014 at 10:08 PM, craig harmer wrote: > > hi all, > > > > i opened a bug at bugs.lttng.org about a problem that i had where babeltrace > > would exit, possibly with a core dump, if one the trace's index files was > > to

Re: [lttng-dev] Sequence of strings

2015-01-19 Thread Philippe Proulx
On Mon, Jan 19, 2015 at 5:50 PM, Francis Giraldeau wrote: > > Hi, > > I would like to record a sequence of strings. Here is an example: > > struct foo { > string _my_string; > }; > > event { > ... > fields := struct { > uint8_t _num; > struct foo _items[_num]; > }; > }; > > The pro

Re: [lttng-dev] Out of Tree Kernel Module

2015-01-21 Thread Philippe Proulx
On Wed, Jan 21, 2015 at 3:55 PM, Jonathan Haws wrote: > I am developing an out-of-tree kernel module and would like to > instrument it for tracing. I understand I will need to create an LTTng > probe in the modules source tree, however when I try to build my module, > I get errors stating that a

[lttng-dev] [PATCH ctf] Modernize CTF specification using Markdown

2015-01-21 Thread Philippe Proulx
Content is unchanged, with the exception of a few minor typos fixed here and there. Signed-off-by: Philippe Proulx --- common-trace-format-specification.md | 2035 + common-trace-format-specification.txt | 1823 - 2 files changed

Re: [lttng-dev] adding new channel

2015-02-20 Thread Philippe Proulx
On Fri, Feb 20, 2015 at 2:00 PM, Anand Neeli wrote: > Hi All, > Is adding a new channel to an existing(running) session supported? No. > > i get following error when doing this. > Error: Channel myc5: Tracing already started > > Is there any way to add channels on the fly? No. LTTng's documentat

Re: [lttng-dev] adding new channel

2015-02-20 Thread Philippe Proulx
On Fri, Feb 20, 2015 at 2:20 PM, Alexandre Montplaisir wrote: > > On 02/20/2015 02:05 PM, Philippe Proulx wrote: >> >> On Fri, Feb 20, 2015 at 2:00 PM, Anand Neeli >> wrote: >>> >>> Hi All, >>> Is adding a new channel to an existing(running) s

Re: [lttng-dev] how to generate CTF metadata

2015-03-15 Thread Philippe Proulx
On Sun, Mar 15, 2015 at 5:25 PM, Dominik Taborsky wrote: > Hello, > > I am working on a project that involves generating CTF metadata, but I am > unsure about how to proceed. I am not sure about how to get information > about types, What "types" are you talking about exactly? What are you intendi

Re: [lttng-dev] how to generate CTF metadata

2015-03-15 Thread Philippe Proulx
On Sun, Mar 15, 2015 at 6:14 PM, Dominik Taborsky wrote: > > > On 03/15/2015 10:31 PM, Philippe Proulx wrote: >> >> On Sun, Mar 15, 2015 at 5:25 PM, Dominik Taborsky >> wrote: >>> >>> Hello, >>> >>> I am working on a project that inv

[lttng-dev] [PATCH lttng-ust] Refactor Python agent

2015-03-31 Thread Philippe Proulx
-agent/__init__.py.in new file mode 100644 index 000..0b83d10 --- /dev/null +++ b/liblttng-ust-python-agent/__init__.py.in @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2015 - Philippe Proulx +# +# This library is free software; you can redistribute it and/or modify it under +# th

[lttng-dev] [PATCH lttng-tools] Tests: Python agent: update after Python agent refactoring

2015-03-31 Thread Philippe Proulx
This patch makes the tests follow the recent refactoring of the LTTng-UST Python agent. You need both python2 and python3 in your $PATH to run this test now (since the agent is compatible with both versions of Python). Signed-off-by: Philippe Proulx --- tests/regression/ust/python-logging

Re: [lttng-dev] how to get relayd pid

2015-04-07 Thread Philippe Proulx
Anand, On Tue, Apr 7, 2015 at 4:07 PM, Anand Neeli wrote: > > Hi All, > Is there any better way of getting lttng-relayd PID programmatically? > > like sessiond pid is in /var/run/lttng/lttng-sessiond.pid, is there any > similar way to get relayd PID? For which language? Phil > > > Thanks, > A

Re: [lttng-dev] how to get relayd pid

2015-04-07 Thread Philippe Proulx
ist); return 1; } printf("PID of first lttng-relayd found: %d\n", list[0]); free(list); return 0; } [1] http://phoxis.org/2013/09/13/find-process-ids-of-a-running-process-by-name/ Hope it helps, Phil > > > > > On Wed, Apr 8, 2015 at 1:45

[lttng-dev] [PATCH lttng-tools] man pages: use standard NAME format

2015-04-08 Thread Philippe Proulx
-off-by: Philippe Proulx --- doc/man/lttng-crash.1| 2 +- doc/man/lttng-relayd.8 | 2 +- doc/man/lttng-sessiond.8 | 2 +- doc/man/lttng.1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/man/lttng-crash.1 b/doc/man/lttng-crash.1 index 4af93f3..8097108

Re: [lttng-dev] CTF 2.0 and lttng indexes

2015-04-08 Thread Philippe Proulx
On Tue, Apr 7, 2015 at 10:01 AM, Matthew Khouzam wrote: > > Hi all, > > Will the lttng indexes or something more generic be specified in the CTF > 2.0 spec? Mathieu needs to confirm, but AFAIK, I don't think so. However, here's an idea following what was proposed for the integration of base addr

Re: [lttng-dev] Warning: HOME environment variable not set.

2015-04-10 Thread Philippe Proulx
On Mon, Mar 23, 2015 at 9:36 AM, Mathieu Desnoyers wrote: > Perhaps your program is clearing its environment > variables ? Or launched by a wrapper that clears > the env. var. ? Perhaps LTTng-UST should do like LTTng-tools: try $LTTNG_HOME, then $HOME, then the current UID's entry in /etc/passwd?

Re: [lttng-dev] Change of output format in lttng view?

2015-04-21 Thread Philippe Proulx
On Tue, Apr 21, 2015 at 12:26 PM, Glen Keane wrote: > > Hey guys, > > Would you please consider changing the '=' char to a ':' char in the event > data output of `lttng view`? it would make it more json-like. This output format, called ctf-text, is a custom one, even though it shares similariti

[lttng-dev] [PATCH lttng-tools 1/2] Fix: append_list_to_probes(): increment index

2015-04-28 Thread Philippe Proulx
Reported-by: Hannes Weisbach Signed-off-by: Philippe Proulx --- src/bin/lttng-sessiond/modprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index a9035da..d730a1d 100644 --- a/src/bin/lttng-sessiond

[lttng-dev] [PATCH lttng-tools 2/2] Fix: modprobe.c: fix tmp_list memory leak

2015-04-28 Thread Philippe Proulx
Reported-by: Hannes Weisbach Signed-off-by: Philippe Proulx --- src/bin/lttng-sessiond/modprobe.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index d730a1d..32c4210 100644 --- a/src/bin/lttng

Re: [lttng-dev] confirm c4ffe9cce5044a3711020b355aa9133ec1268447

2015-06-03 Thread Philippe Proulx
On Wed, Jun 3, 2015 at 10:22 PM, Deepak Kumar wrote: > Hi, > > I am trying to output the inpute lttng live stream to ctf-metadata and still > it shows as text. > I tried ctf and dummy also. Am I using the command wrong? You're not using it wrong; the Babeltrace tool does not currently honor its o

Re: [lttng-dev] String format based events

2015-06-18 Thread Philippe Proulx
On Wed, Jun 17, 2015 at 7:51 PM, Jeffrey Chen wrote: > I have a question while reading the lttng documentation. Could anyone answer > me? Thanks a lot. > > It looks like lttng events are all key-value pairs. Like { my_val1 = 10, > my_val2 = "OK" }. Does lttng supports regular string format based e

Re: [lttng-dev] [BABELTRACE stable-1.2 PATCH] Hide the packet_seq_num field

2015-08-06 Thread Philippe Proulx
On Thu, Aug 6, 2015 at 10:21 PM, Julien Desfossez wrote: > > On 15-08-03 11:41 AM, Mathieu Desnoyers wrote: > > Acked-by: Mathieu Desnoyers > > > > Could we backport it to current babeltrace stable releases too ? > This patch is already meant for babeltrace stable-1.2 branch and it > should apply

Re: [lttng-dev] Using LLTNG within shared library (not dlopen-ed).

2015-08-10 Thread Philippe Proulx
On Mon, Aug 10, 2015 at 1:27 PM, Sergei Dyshel wrote: > Hi all, > > I have some code using traces compiled as shared object (together with trace > provider). > This ".so" is linked to main code during compile-time. > When I run main application and try to read traces after that I get errors > abou

Re: [lttng-dev] Using LLTNG within shared library (not dlopen-ed).

2015-08-11 Thread Philippe Proulx
ed. Phil > > Also, it would be very inconvenient for me to put trace provider into > separate ".so" for some reasons. > > > -- > Regards, > Sergei Dyshel > > On Mon, Aug 10, 2015 at 10:52 PM, Philippe Proulx > wrote: >> >> On Mon, Aug 10, 20

[lttng-dev] Improving the enable-event and disable-event commands

2015-10-27 Thread Philippe Proulx
be solved before problem 2, as its proposed solution is easier to implement. The solutions suggested below are designed to maintain full backward compatibility with LTTng 2.7 while still improving the `enable-event` and `disable-event` commands. Feel free to contribute your own ideas! Philippe

Re: [lttng-dev] [RELEASE] Babeltrace 1.2.5

2015-11-10 Thread Philippe Proulx
Long live the Babeltrace! Philippe Proulx On Tue, Nov 10, 2015 at 3:42 PM, Jérémie Galarneau wrote: > Hi all, > > We are releasing Babeltrace 1.2.5, which is a bugfix release. > > Babeltrace is an open source trace format converter. > > The Babeltrace project provides a lib

Re: [lttng-dev] (no subject)

2015-11-26 Thread Philippe Proulx
Isn't there a libuuid development package for CentOS 5 instead of building it from source? Like this: <http://pkgs.org/centos-5/epel-i386/uuid-devel-1.5.1-3.el5.i386.rpm.html>? Really not a CentOS/RPM expert here. Philippe Proulx On Thu, Nov 26, 2015 at 10:20 PM, Zvi Vered wro

Re: [lttng-dev] compile error in lttng-ust-2.4.4

2015-11-29 Thread Philippe Proulx
traces. See: <https://lttng.org/viewers/> and <https://lttng.org/docs/#doc-getting-started>. Philippe Proulx On Sun, Nov 29, 2015 at 3:18 PM, Zvi Vered wrote: > Hi Mathieu, > > You are right. I installed Centos 6.3(64) with gcc 4.4.6 > No problems with compilation. > > S

Re: [lttng-dev] lttng view => [error] at line 1269: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA

2015-12-02 Thread Philippe Proulx
John, Can you pastebin the trace's metadata file? Use: babeltrace -o ctf-metadata /path/to/trace to get it. Thanks, Philippe Proulx On Tue, Dec 1, 2015 at 9:19 PM, John Smith wrote: > Hi, > > issued the regular following lttng commands: > [ > lttng create > l

Re: [lttng-dev] lttng view => [error] at line 1269: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA

2015-12-02 Thread Philippe Proulx
Okay, You should know, however, that LTTng 2.4 is not supported anymore. There could be bugs in there not fixed in this version. Any chance you can upgrade to at least LTTng 2.6 (2.7 is better)? Philippe Proulx On Wed, Dec 2, 2015 at 7:31 PM, John Smith wrote: > Philippe, > it doesn&

Re: [lttng-dev] lttng view => [error] at line 1269: token "(": syntax error, unexpected LPAREN, expecting SEMICOLON or COMMA

2015-12-02 Thread Philippe Proulx
t install lttng-tools sudo apt-get install lttng-modules-dkms sudo apt-get install liblttng-ust-dev You might have to remove the three packages first (I'm not a Debian/Ubuntu user). Phil > > thanks, John > > > On Wed, Dec 2, 2015 at 6:02 PM, Philippe Proulx > wrote:

Re: [lttng-dev] LTTng hourly/weekly/monthly tracing

2015-12-10 Thread Philippe Proulx
I believe the closest you can get is trace file rotation. It's a rotation of trace files using a maximum size/stream file though, it's not time-based like you want. See the --tracefile-size and --tracefile-count options of lttng(1)'s create command. Philippe Proulx On Thu, Dec 1

Re: [lttng-dev] Minor doc comment

2015-12-16 Thread Philippe Proulx
On Wed, Dec 16, 2015 at 5:50 PM, Tetreault, Francois wrote: > A few people commented that it is annoying to have the coding examples all > on one line in the documentation. > > > > For example, under https://lttng.org/docs/#doc-tracepoint-provider, tp.h is > all one line. > > > > Although minor, i

Re: [lttng-dev] LTTng buffer mode

2016-02-16 Thread Philippe Proulx
No you cannot. There's no hidden global buffering scheme option for user space tracing. >From the LTTng documentation: > In the user space tracing domain, two buffering schemes are available > when creating a channel: > > Per-PID buffering: keep one ring buffer per process. > Per-UID buffering:

Re: [lttng-dev] Unable to read events using babeltrace C library

2016-02-25 Thread Philippe Proulx
stable-1.3>. Stay tuned for the release of Babeltrace 2.0, which will expose a richer and safer C API to produce, transform/filter, and consume events. BR, Philippe Proulx On Thu, Feb 25, 2016 at 12:31 PM, Alexis Martin wrote: > Hi, > > I want to use the babeltrace C library to

Re: [lttng-dev] [barectf] Support for empty payload ?

2016-03-25 Thread Philippe Proulx
On Fri, Mar 25, 2016 at 10:57 AM, Jean-François Monestier wrote: > > Le 3/25/2016 3:34 PM, Simon Marchi a écrit : >> >> On 2016-03-25 10:14, Jean-François Monestier wrote: >>> >>> Hello Tracers, >>> >>> Does anyone know whether barectf supports some sort of empty payloads >>> for events specified

Re: [lttng-dev] issues converting large amount of traces using babeltrace

2016-03-25 Thread Philippe Proulx
On Fri, Mar 25, 2016 at 10:08 PM, syed zaidi wrote: > Hey guys, > I am using babeltrace to convert the traces produced by Lttng. It works > perfectly if I have small amount of data. That is if I run the session for > small amount of time. > But if the the session is ran for a long time, while conv

Re: [lttng-dev] [PATCH] Fix: debug-info feature enable/disable

2016-05-06 Thread Philippe Proulx
On Fri, May 6, 2016 at 11:47 AM, Mathieu Desnoyers wrote: > Explicitly enabling the debug-info feature should not disable the > feature. > > Signed-off-by: Mathieu Desnoyers > --- > configure.ac | 19 ++- I guess this is for Babeltrace, but it's hard to tell without the usual [PA

Re: [lttng-dev] Which function/file allows babeltrace to print the logs?

2016-06-05 Thread Philippe Proulx
On Fri, Jun 3, 2016 at 12:29 AM, Ojas Shirekar wrote: > > In which file is the function that allows babeltrace to print the CTF logs to > STDOUT? > I am asking this because I need to modify it so that I can get JSON output, > and also because I am new to babeltrace. This will certainly be a tri

Re: [lttng-dev] CTF semantics

2016-06-14 Thread Philippe Proulx
On Tue, Jun 14, 2016 at 12:50 PM, Mathieu Desnoyers wrote: > - On Jun 14, 2016, at 12:31 PM, Milian Wolff milian.wo...@kdab.com wrote: > >> On Tuesday, June 14, 2016 4:10:46 PM CEST Mathieu Desnoyers wrote: >>> - On Jun 14, 2016, at 7:09 AM, Milian Wolff milian.wo...@kdab.com wrote: >>> >

Re: [lttng-dev] [lttng-ust GIT PULL] Doc: add a CMake example

2016-06-17 Thread Philippe Proulx
On Fri, Jun 17, 2016 at 12:09 AM, Sebastien Boisvert wrote: > Hi Mathieu, > > Please pull 7 commits for a new example in the documentation: Isn't the "standard" way to use CMake this, in terms of directories: mkdir build cd build cmake .. make ? Also, just a note: CMake 3.6 wil

Re: [lttng-dev] [lttng-ust GIT PULL] Doc: add a CMake example

2016-06-17 Thread Philippe Proulx
On Fri, Jun 17, 2016 at 10:25 AM, Philippe Proulx wrote: > On Fri, Jun 17, 2016 at 12:09 AM, Sebastien Boisvert > wrote: >> Hi Mathieu, >> >> Please pull 7 commits for a new example in the documentation: > > Isn't the "standard" way to use CMake this,

Re: [lttng-dev] [lttng-ust GIT PULL] Doc: add a CMake example

2016-06-17 Thread Philippe Proulx
On Fri, Jun 17, 2016 at 10:52 AM, Sebastien Boisvert wrote: > Hi Phil, > > On 06/17/2016 10:25 AM, Philippe Proulx wrote: >> On Fri, Jun 17, 2016 at 12:09 AM, Sebastien Boisvert >> wrote: >>> Hi Mathieu, >>> >>> Please pull 7 commits for a n

Re: [lttng-dev] [lttng-ust GIT PULL] Doc: add a CMake example

2016-06-17 Thread Philippe Proulx
On Fri, Jun 17, 2016 at 11:13 AM, Sebastien Boisvert wrote: > > > On 06/17/2016 11:00 AM, Philippe Proulx wrote: >> On Fri, Jun 17, 2016 at 10:52 AM, Sebastien Boisvert >> wrote: >>> Hi Phil, >>> >>> On 06/17/2016 10:25 AM, Philippe Proulx wrote:

Re: [lttng-dev] [PATCH lttng-tools] Fix: sessiond: ht_match_event(): check if filter is NULL

2016-06-18 Thread Philippe Proulx
Oh, Janine hijacked my workstation again! Philippe Proulx On Fri, Jun 17, 2016 at 10:36 PM, Mathieu Desnoyers < mathieu.desnoy...@efficios.com> wrote: > Received: from jsutto (cable-192.222.213.99.electronicbox.net. > > host mtl.efficios.com > mtl.efficios.com has addr

Re: [lttng-dev] [PATCH babeltrace 2/2] CTF writer: Add function to add an integer environment field value

2016-06-18 Thread Philippe Proulx
On Sat, Jun 18, 2016 at 10:54 PM, Simon Marchi wrote: > > From the Python API, it's only possible to set an environment field > value as a string (whatever you pass, it gets stringified). This patch > adds a function to the CTF writer to allow setting an integer (int64_t) > environment field, an

Re: [lttng-dev] [PATCH babeltrace 2/2] CTF writer: Add function to add an integer environment field value

2016-06-19 Thread Philippe Proulx
On Sun, Jun 19, 2016 at 9:07 AM, Simon Marchi wrote: > On 2016-06-19 01:38, Philippe Proulx wrote: >> >> Thanks for this, it's a great little addition. > > > Thanks for the feedback! > >>> Example: >>> >>> w.add_environment_field(&qu

Re: [lttng-dev] [lttng-ust GIT PULL v4] Doc: add a CMake example

2016-06-20 Thread Philippe Proulx
On Mon, Jun 20, 2016 at 9:22 PM, Sebastien Boisvert wrote: > Hi Phil, > > shortlog: > > Sebastien Boisvert (16): > Doc: add CMake example > Doc: clean up cmake example > Doc: add a trace.sh script in the cmake example > Doc: clean up cmake file > Doc: fix English issu

Re: [lttng-dev] Tracing in python application with custom tracepoints

2016-06-21 Thread Philippe Proulx
On Tue, Jun 21, 2016 at 4:25 AM, Charles Lesire-Cabaniols wrote: > Hi, > > I have written a C++ code in which I use custom tracepoints (generated from > a .tp file). > > My system now deploys a mix of my C++ app and a python script. > Is there a way to write traces in my python script using the sa

Re: [lttng-dev] [PATCH lttng-tools v2 6/6] Manpage for the regenerate statedump command

2016-07-04 Thread Philippe Proulx
On Mon, Jul 4, 2016 at 11:13 AM, Julien Desfossez wrote: > > Signed-off-by: Julien Desfossez > Reviewed-by: Mathieu Desnoyers > --- > doc/man/lttng-regenerate.1.txt | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/doc/man/lttng-regenerate.1.txt b/doc/man

Re: [lttng-dev] Babeltrace, Python3, and the Event Declarations

2016-07-20 Thread Philippe Proulx
On Wed, Jul 20, 2016 at 12:45 PM, Thibault, Daniel wrote: >I'm tinkering with the Python 3 bindings for babeltrace, and I've come > upon an odd feature: for a given trace, if I ask for the EventDeclarations > (using the TraceHandle), I end up getting the set of event declarations > duplicat

Re: [lttng-dev] Beginner question: how to inspect scheduling of multi-threaded user application?

2016-09-19 Thread Philippe Proulx
On Mon, Sep 19, 2016 at 11:38 AM, David Aldrich wrote: > > Hi Jonathan > > Thanks for your reply. What is 'comm' in 'prev_comm'? "comm" stands for "command". See this in sched.h: /* Task command name length */ #define TASK_COMM_LEN 16 Phil > > Best regards > > David >

Re: [lttng-dev] sdt.h tracepoints with unicode data and/or structs

2016-09-20 Thread Philippe Proulx
mer >> > script, I could then convert it to UTF8 offline, if needed. >> > >> > The advantage here is that I have "zero" overhead while tracing, which is >> > crucial for me to get the tracepoints accepted upstream in Qt, without >> > hiding them

Re: [lttng-dev] [PATCH lttng-tools] Cleanup: Remove fun from code base

2016-09-27 Thread Philippe Proulx
Finally this project is getting serious! Philippe Proulx On Tue, Sep 27, 2016 at 3:13 PM, Jérémie Galarneau wrote: > Fun removed from master, thanks... ;) > > Jérémie > > On 25 September 2016 at 14:32, Mathieu Desnoyers > wrote: >> It appears choosing the release

Re: [lttng-dev] sdt.h tracepoints with unicode data and/or structs

2016-10-04 Thread Philippe Proulx
>> This sounds excellent. Can you tell me how? Could you maybe add an example to >> lttng-ust. Also note how http://lttng.org/man/3/lttng-ust/v2.7 says: >> >> if (tracepoint_enabled(ust_tests_hello, tptest)) { >> /* prepare arguments */ >> do_tracepoint(ust_tests_h

Re: [lttng-dev] [lttng-ust] [babeltrace] use case question - field names in event classes

2016-10-12 Thread Philippe Proulx
On Tue, Oct 11, 2016 at 4:46 PM, Staffan Tjernstrom wrote: > We have a situation where we have a significant number (1000's) of > log-style trace messages generated by a large group of (sometime > offsite) developers. > > Unfortunately the tracepoint definitions are maintained by a small > group o

Re: [lttng-dev] A question about lttng view and babeltrace

2016-10-24 Thread Philippe Proulx
On Mon, Oct 24, 2016 at 4:08 AM, Sebastien Boisvert wrote: > Hello, > > > I am using this to generate my text trace: > > >path=`lttng list $sessionName|grep path|awk '{print $3}'` >textFile=$sessionName.txt >babeltrace --clock-seconds $path > $textFile > > > It would be eas

Re: [lttng-dev] Problem with Babeltrace

2016-10-24 Thread Philippe Proulx
On Mon, Oct 24, 2016 at 11:35 AM, Simon Marchi wrote: > On 2016-10-24 11:31, Nathan Lynch wrote: >> >> On 10/24/2016 03:30 AM, Tim Tannert wrote: >>> >>> Hey, >>> >>> everytime when I start babeltrace: >>> *babeltrace --version* >>> >>> or >>> *lttng view >>> >>> *I'll get following message: >>> b

[lttng-dev] CTF2-BASICATTRS-1.0: Basic CTF 2 user attributes

2016-10-25 Thread Philippe Proulx
HTML version: http://diamon.org/ctf/files/CTF2-BASICATTRS-1.0.html Philippe Proulx EfficiOS Inc. http://www.efficios.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = CTF2-BASICATTRS-1.0: Basic CTF{nbsp}2 user attributes Philippe Proulx v1.0, 21 October 2016

[lttng-dev] CTF2-PMETA-1.0: CTF 2 packetized metadata stream format

2016-10-25 Thread Philippe Proulx
HTML version: http://diamon.org/ctf/files/CTF2-PMETA-1.0.html Philippe Proulx EfficiOS Inc. http://www.efficios.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = CTF2-PMETA-1.0: CTF{nbsp}2 packetized metadata stream format Philippe Proulx v1.0, 21 October 2016

[lttng-dev] CTF2-FS-1.0: Layout of a CTF 2 trace stored on a file system

2016-10-25 Thread Philippe Proulx
HTML version: http://diamon.org/ctf/files/CTF2-FS-1.0.html Philippe Proulx EfficiOS Inc. http://www.efficios.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = CTF2-FS-1.0: Layout of a CTF{nbsp}2 trace stored on a file system Philippe Proulx v1.0, 21 October

[lttng-dev] CTF2-DOCID-1.0: CTF 2 document identifier format

2016-10-25 Thread Philippe Proulx
HTML version: http://diamon.org/ctf/files/CTF2-DOCID-1.0.html Philippe Proulx EfficiOS Inc. http://www.efficios.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = CTF2-DOCID-1.0: CTF{nbsp}2 document identifier format Philippe Proulx v1.0, 21 October 2016 :toc

Re: [lttng-dev] CTF2-BASICATTRS-1.0: Basic CTF 2 user attributes

2016-10-27 Thread Philippe Proulx
Philippe Proulx On Tue, Oct 25, 2016 at 2:27 PM, Philippe Proulx wrote: > > [[event-record-class-fragment-bua]] > == Event record class fragment's basic user attributes > > .Event record class fragment's basic user attributes mdt:map properties > [options=&q

Re: [lttng-dev] [tracecompass-dev] CTF2-PROP-1.0: Proposal for a major revision of the Common Trace Format, version 1.8

2016-10-27 Thread Philippe Proulx
ace Format, version 1.8 > On 16-10-25 02:26 PM, Philippe Proulx wrote: >> A few things that still annoy me: >> >> * Should a boolean field type inherit the properties of an integer field >> type instead of a simple bit array field type? In other words, should >>

Re: [lttng-dev] babeltrace API question

2016-10-29 Thread Philippe Proulx
On Sat, Oct 29, 2016 at 5:35 PM, Sebastien Boisvert wrote: > Hi, > > > I would like to add filter options to babeltrace. > > I am exploring the babeltrace API. I would strongly advise you NOT to use this API as we're about to deprecate it in a few weeks when Babeltrace 2.0 is released. A whole ne

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Philippe Proulx
On Sat, Oct 29, 2016 at 9:55 AM, Jean Spector wrote: > When trying to use the example from > http://diamon.org/babeltrace/docs/python/examples/ (pointed to via > http://lttng.org/viewers/), the code is not up-to-date. > > For instance, the first line in the example (import babeltrace.reader) fails

  1   2   >