[lttng-dev] [PATCH] configure.ac: Remove duplicated CMD_DESCR_ROTATE definition

2019-05-27 Thread Simon Marchi
; redefined [-Werror] #define CONFIG_CMD_DESCR_ROTATE "Archive a tracing session’s current trace chunk" conftest.c:154: note: this is the location of the previous definition #define CONFIG_CMD_DESCR_ROTATE "Archive a tracing session's current trace chunk" cc1: all warn

[lttng-dev] [PATCH] Fix: fix compilation errors when using --disable-epoll

2019-05-27 Thread Simon Marchi
". I'll tackle this issue separately. I only built-tested the proposed change, and I don't know anything about this code, so please check carefully that it is right. Signed-off-by: Simon Marchi --- src/common/compat/compat-poll.c | 2 +- tests/unit/test_utils_compat_poll.c | 1

Re: [lttng-dev] [PATCH lttng-tools] configure.ac: Remove duplicated CMD_DESCR_ROTATE definition

2019-08-19 Thread Simon Marchi
On 2019-05-27 11:52 a.m., Simon Marchi wrote: > CMD_DESCR_ROTATE is defined twice by configure. This breaks configuring > with "-Werror -Wall", as some test programs don't compile due to: > > configure:16990: gcc -o conftest -Wall -Werror conftest.c &g

Re: [lttng-dev] [PATCH lttng-tools] Fix: fix compilation errors when using --disable-epoll

2019-08-19 Thread Simon Marchi
On 2019-05-27 12:28 p.m., Simon Marchi wrote: > I get this error: > > CC compat-poll.lo > /home/smarchi/src/lttng-tools/src/common/compat/compat-poll.c: In > function ‘compat_poll_wait’: > /home/smarchi/src/lttng-tools/src/common/compat/compat-poll.c:353:

[lttng-dev] [PATCH lttng-ust] Make bitfield.h C++-friendly

2019-08-19 Thread Simon Marchi
This patch changes bitfield.h to be usable in C++11. It will probably never be compiled as C++ in the context of lttng-ust, but this is just to keep things sync'ed across projects. Signed-off-by: Simon Marchi --- include/lttng/bitfield.h | 6 +- 1 file changed, 5 insertions(+), 1 del

[lttng-dev] [PATCH lttng-modules] Make bitfield.h C++-friendly

2019-08-19 Thread Simon Marchi
This patch changes bitfield.h to be usable in C++11. It will probably never be compiled as C++ in the context of lttng-modules, but this is just to keep things sync'ed across projects. Signed-off-by: Simon Marchi --- lib/bitfield.h | 6 +- 1 file changed, 5 insertions(+), 1 del

Re: [lttng-dev] Wrong "ar" used when cross-building lttng

2019-11-14 Thread Simon Marchi
/examples/hello-static-lib/Makefile is not directly influenced by the configure checks. It will not pick up the right tools if you run "make" directly in doc/examples/hello-static-lib, but only if you run it from a directory above. Simon From cb819ba1e9dbba612dd22d143c4fb57185b6a

Re: [lttng-dev] Wrong "ar" used when cross-building lttng

2019-11-14 Thread Simon Marchi
On 2019-11-14 11:24 a.m., Rolf Eike Beer wrote: > Works for me. Thanks. > I have not checked latest git, but maybe you may want to fix this warning, > too? > > With 2.11.0 release tarball: > > -./configure: line 24663: test: -eq: unary operator expected > > Greetings, > > Eike Hmm I don't r

Re: [lttng-dev] Wrong "ar" used when cross-building lttng

2019-11-15 Thread Simon Marchi
On 2019-11-15 3:18 a.m., Rolf Eike Beer wrote: > Simon Marchi wrote: >> On 2019-11-14 11:24 a.m., Rolf Eike Beer wrote: > >>> I have not checked latest git, but maybe you may want to fix this warning, >>> too? >>> >>> With 2.11.0 release tarball: &g

[lttng-dev] [PATCH 1/2] doc: pass AR when building examples

2019-11-18 Thread Simon Marchi
doesn't hurt to have it there. [1] https://lists.lttng.org/pipermail/lttng-dev/2019-November/029388.html Reported-by: Rolf Eike Beer Signed-off-by: Simon Marchi --- configure.ac | 1 + doc/examples/Makefile.am | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --

[lttng-dev] [PATCH 2/2] doc: reformat long lines in doc/examples/Makefile.am

2019-11-18 Thread Simon Marchi
t a new subshell, so it's unnecessary to do "cd .." before the subshell exits. I'm not too sure what's the best way to indent it, feel free to modify it before changing the patch. Signed-off-by: Simon Marchi --- doc/examples/Makefile.am | 56 ++

Re: [lttng-dev] [PATCH 1/2] doc: pass AR when building examples

2019-11-18 Thread Simon Marchi
On 2019-11-18 12:15 p.m., Mathieu Desnoyers wrote: > Both patches merged into lttng-ust master branch (only). > > If you need those backported, please submit separate patches for stable > branches, as those do not apply cleanly because the following commit is > in master but not in stable branches

[lttng-dev] [PATCH lttng-ust] doc: fix build failure due to wrong whitespace character

2019-11-18 Thread Simon Marchi
local' failed make: *** [all-local] Error 1 I inadvertently inserted a character that looks like a space, but that is not a space. make tries to interpret it as a target name, which obviously fails. Replace it with a proper space. Signed-off-by: Simon Marchi --- doc/examples/Makefile.am

Re: [lttng-dev] [PATCH lttng-tools] configure.ac: Remove duplicated CMD_DESCR_ROTATE definition

2019-11-25 Thread Simon Marchi
On 2019-08-19 9:47 p.m., Simon Marchi wrote: > On 2019-05-27 11:52 a.m., Simon Marchi wrote: >> CMD_DESCR_ROTATE is defined twice by configure. This breaks configuring >> with "-Werror -Wall", as some test programs don't compile due to: >> >> conf

Re: [lttng-dev] lttng-tools - 2.11 failed: checking for _cds_lfht_new in -lurcu-cds... no configure: error: Userspace RCU (liburcu) >= 0.9.0 is needed

2020-01-13 Thread Simon Marchi
On 2020-01-13 5:47 p.m., bhanu kiran chaluvadi wrote: > Hi, > > I am trying to cross compile lttng-tools to host: i686-pc-linux-gnu(dedian 8 > - jessie )  from build: x86_64-pc-linux-gnu (ubuntu - 18.04). > > > export PATH=/opt/x-tools/bin:$PATH > export SYSROOT=/opt/x-tools/i686-pc-linux-gnu/s

Re: [lttng-dev] [PATCH] Introduce vtracef

2020-01-31 Thread Simon Marchi
Hi Maxime, Tip for next time: this mailing is used for many projects, so it helps to include the project name in the patch prefix. You can do so by using --subject-prefix="PATCH lttng-ust" on you git-send-email command line. On 2020-01-31 4:55 p.m., Maxime Roussin-Belanger wrote: > vtracef a

Re: [lttng-dev] [PATCH] Introduce vtracef

2020-01-31 Thread Simon Marchi
On 2020-01-31 6:17 p.m., Maxime Roussin-Bélanger wrote: >> On 2020-01-31 4:55 p.m., Maxime Roussin-Belanger wrote: >> > vtracef accepts a va_list argument to simplify tracing >> > functions which use a va_list >> > >> > Here's an example from wpa_supplicant that I wanted to >> > trace: >> > >> > vo

Re: [lttng-dev] [PATCH v2 lttng-ust] Introduce vtracef

2020-02-05 Thread Simon Marchi
On 2020-02-05 6:36 p.m., Maxime Roussin-Belanger wrote: > vtracef accepts a va_list argument to simplify tracing > functions which use a va_list > > Here's an example from wpa_supplicant that I wanted to > trace: > > void wpa_debug(int level, const char* fmt, ...) { > > va_list ap; > va_

Re: [lttng-dev] [PATCH v2 lttng-ust] Introduce vtracef

2020-02-05 Thread Simon Marchi
On 2020-02-05 8:17 p.m., Simon Marchi wrote: > On 2020-02-05 6:36 p.m., Maxime Roussin-Belanger wrote: >> vtracef accepts a va_list argument to simplify tracing >> functions which use a va_list >> >> Here's an example from wpa_supplicant that I wanted to >>

[lttng-dev] [PATCH lttng-ust] Fix: generation of man pages with multiple refnames

2020-02-06 Thread Simon Marchi
1] https://lists.lttng.org/pipermail/lttng-dev/2020-February/029524.html Signed-off-by: Simon Marchi Signed-off-by: Philippe Proulx --- doc/man/Makefile.am | 6 -- doc/man/asciidoc.conf | 20 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/doc/man/Makef

Re: [lttng-dev] [PATCH v2 lttng-ust] Introduce vtracef

2020-02-06 Thread Simon Marchi
On 2020-02-05 9:55 p.m., Simon Marchi wrote: > Ok, so I poked Phil the doc guy about this, and he spotted that the problem > is actually in the > asciidoc -> docbook conversion. He provided the patch provided below. I'll > try to clean up > that patch and send it formal

Re: [lttng-dev] [babeltrace][PATCH] fs.c: initialize the other_entry variable

2020-03-11 Thread Simon Marchi
On 2020-03-11 9:39 a.m., mingli...@windriver.com wrote: > From: Mingli Yu > > Initialize the pointer other_entry to fix the below error: > | ../../../../../git/src/plugins/ctf/fs-src/fs.c: In function > 'ds_index_insert_ds_index_entry_sorted': > | ../../../../../git/src/plugins/ctf/fs-src/fs.c:7

[lttng-dev] [PATCH] Add --list-options to each command

2012-01-23 Thread Simon Marchi
Add a '--list-options' option to each command. This is intended to be used for programmable Bash completion. I sent a similar patch at the end of last summer, but it seems that it has never been merged. Signed-off-by: Simon Marchi --- src/bin/lttng/commands/add_context.c

[lttng-dev] Bash completion v0.00001

2012-01-23 Thread Simon Marchi
Hi, This is my first or so version of the programmable bash completion (tab completion) for the LTTng 2.0 command line tool: http://git.dorsal.polymtl.ca/~smarchi?p=lttng-bash-completion.git;a=blob;f=lttng;hb=HEAD Currently, it is able to complete general options (before the command), the comman

[lttng-dev] [PATCH] Add a '--list-options' option to each command.

2012-01-24 Thread Simon Marchi
This is intended to be used for programmable Bash completion. Modified from previous version: - Changed '\0' to 0 to match current coding style. Signed-off-by: Simon Marchi --- src/bin/lttng/commands/add_context.c |6 ++ src/bin/lttng/commands/calibrate.c|6 +

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread Simon Marchi
nice but for the second level, not working :(. >> >> Is it possible to add the automatic print of all available options? >> >> Thanks >> David >> >> On 12-01-23 11:17 PM, Simon Marchi wrote: >>> Hi, >> >>> This is my first or so ver

[lttng-dev] [PATCH] Fix comment of cmd_create

2012-01-24 Thread Simon Marchi
Another victim of copy paste. Signed-off-by: Simon Marchi --- src/bin/lttng/commands/create.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index a791fbd..0765c82 100644 --- a/src/bin/lttng/commands

[lttng-dev] Integration of the state history system in LTTv

2012-01-26 Thread Simon Marchi
Hi, For those who don't know, we recently started working on the integration of the state history system designed by Alexandre Montplaisir in LTTv. This will include a C++ rewrite and a bit of design work to keep the code as modular as possible. For example, we want to make sure it is possible to

[lttng-dev] lttng-tools: enable-event, undefined comment

2012-02-03 Thread Simon Marchi
Hello, I just tried the 2.0-pre12 bundle, and I got "Undefined command" when trying the enable-event command. http://pastebin.com/raw.php?i=KjN3FLdi Help ? Simon ___ lttng-dev mailing list lttng-dev@lists.lttng.org http://lists.lttng.org/cgi-bin/mail

[lttng-dev] [PATCH] Add --simple option to the list command

2012-06-21 Thread simon . marchi
From: Simon Marchi The --simple option makes "list" print one item per line, a nice format to be parsed by scripts. For example, the bash completion script could benefit from this feature. For now, only session listing is affected, but it would be useful to have other kind of listing

[lttng-dev] [PATCH] Check if interrupt action name is not null in statedump.

2012-11-08 Thread Simon Marchi
Protection against poorly written drivers who give a null name to their irq handlers. Signed-off-by: Simon Marchi --- .../events/lttng-module/lttng-statedump.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/events/lttng-module/lttng

[lttng-dev] [PATCH 1/3] Add default subbuf sizes getter functions.

2012-11-08 Thread Simon Marchi
This patch adds src/common/defaults.c file. It contains functions to retrieve defaults subbuf sizes based on the architecture page size. Signed-off-by: Simon Marchi --- src/common/Makefile.am |2 +- src/common/defaults.c | 86 src/common

[lttng-dev] [PATCH 2/3] Use the new functions for default subbuf sizes.

2012-11-08 Thread Simon Marchi
Use the functions added by the previous commit. All the occurences of the previous defines were replaced. Signed-off-by: Simon Marchi --- src/bin/lttng-sessiond/channel.c |4 ++-- src/bin/lttng-sessiond/trace-kernel.c|2 +- src/bin/lttng-sessiond/trace-ust.c |2

[lttng-dev] [PATCH 3/3] Remove previous default subbuf sizes definitions.

2012-11-08 Thread Simon Marchi
This commit removes defines that are now unused. Signed-off-by: Simon Marchi --- src/common/defaults.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/common/defaults.h b/src/common/defaults.h index efff43e..7319b35 100644 --- a/src/common/defaults.h +++ b/src

[lttng-dev] [PATCH urcu] Add compilation support for the TileGX architecture.

2012-11-08 Thread Simon Marchi
Signed-off-by: Simon Marchi --- configure.ac |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 1d04062..a4ef8c9 100644 --- a/configure.ac +++ b/configure.ac @@ -77,6 +77,7 @@ AS_CASE([$host_cpu], [ia64], [ARCHTYPE=&quo

[lttng-dev] [PATCH lttng-ust] Add compilation support for the TileGX architecture.

2012-11-08 Thread Simon Marchi
Signed-off-by: Simon Marchi --- configure.ac |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 7f12f23..97a9f65 100644 --- a/configure.ac +++ b/configure.ac @@ -213,6 +213,7 @@ changequote([,])dnl armv5) LIBFORMAT="elf32-litt

[lttng-dev] [PATCH 2/2] Use the new functions for default subbuf sizes.

2012-11-11 Thread Simon Marchi
Use the functions added by the previous commit. All the occurences of the previous defines were replaced. Signed-off-by: Simon Marchi --- src/bin/lttng-sessiond/channel.c |4 ++-- src/bin/lttng-sessiond/trace-kernel.c|2 +- src/bin/lttng-sessiond/trace-ust.c |2

[lttng-dev] [PATCH 1/2] Add default subbuf sizes getter functions

2012-11-11 Thread Simon Marchi
This patch adds src/common/defaults.c file. It contains functions to retrieve defaults subbuf sizes. It uses the DEFAULT_*_SUBBUF_SIZE defines from defaults.h but also make sure that the values are at least as big as the page size. Signed-off-by: Simon Marchi --- src/common/Makefile.am |2

Re: [lttng-dev] [PATCH 1/3] Add default subbuf sizes getter functions.

2012-11-11 Thread Simon Marchi
in slow paths. Simon > Hi Simon, > > Can you please rename the get_default_* function family to default_get_* > in order to respect the name spacing of files. > > Comment below: > > Simon Marchi: >> This patch adds src/common/defaults.c file. It contains functions to >

Re: [lttng-dev] [PATCH 2/2] Use the new functions for default subbuf sizes.

2012-11-11 Thread Simon Marchi
Forgot to remove the dot at the end of the title... On Sun, Nov 11, 2012 at 8:28 PM, Simon Marchi wrote: > Use the functions added by the previous commit. All the occurences of > the previous defines were replaced. > > Signed-off-by: Simon Marchi > --- > src/bin/lttng-

[lttng-dev] [PATCH v3 1/2] Add default subbuf sizes getter functions

2012-11-12 Thread Simon Marchi
This patch adds functions to retrieve defaults subbuf sizes. It uses the DEFAULT_*_SUBBUF_SIZE defines from defaults.h but also make sure that the values are at least as big as the page size. The functions are defined as static inline in defaults.h. Signed-off-by: Simon Marchi --- src/common

[lttng-dev] [PATCH v3 2/2] Use the new functions for default subbuf sizes

2012-11-12 Thread Simon Marchi
Use the functions added by the previous commit. All the occurences of the previous defines were replaced. Signed-off-by: Simon Marchi --- src/bin/lttng-sessiond/channel.c |4 ++-- src/bin/lttng-sessiond/trace-kernel.c|2 +- src/bin/lttng-sessiond/trace-ust.c |2

[lttng-dev] [PATCH 1/3] Add max() and min() macro in common

2012-11-13 Thread Simon Marchi
Signed-off-by: Simon Marchi --- src/common/macros.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/common/macros.h b/src/common/macros.h index 8185c85..81f901c 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -52,4 +52,12 @@ #define ARRAY_SIZE

[lttng-dev] [PATCH 2/3] Add default subbuf sizes getter functions

2012-11-13 Thread Simon Marchi
This patch adds functions to retrieve defaults subbuf sizes. It uses the DEFAULT_*_SUBBUF_SIZE defines from defaults.h but also make sure that the values are at least as big as the page size. The functions are defined as static inline in defaults.h. Signed-off-by: Simon Marchi --- src/common

[lttng-dev] [PATCH 3/3] Use the new functions for default subbuf sizes

2012-11-13 Thread Simon Marchi
Use the functions added by the previous commit. All the occurences of the previous defines were replaced. Signed-off-by: Simon Marchi --- src/bin/lttng-sessiond/channel.c |4 ++-- src/bin/lttng-sessiond/trace-kernel.c|2 +- src/bin/lttng-sessiond/trace-ust.c |2

[lttng-dev] [PATCH lttng-tools 1/3] Add max() and min() macro in common

2012-11-13 Thread Simon Marchi
Signed-off-by: Simon Marchi --- src/common/macros.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/common/macros.h b/src/common/macros.h index 8185c85..81f901c 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -52,4 +52,12 @@ #define ARRAY_SIZE

[lttng-dev] [PATCH lttng-tools 2/3] Add default subbuf sizes getter functions

2012-11-13 Thread Simon Marchi
This patch adds functions to retrieve defaults subbuf sizes. It uses the DEFAULT_*_SUBBUF_SIZE defines from defaults.h but also make sure that the values are at least as big as the page size. The functions are defined as static inline in defaults.h. Signed-off-by: Simon Marchi --- src/common

[lttng-dev] [PATCH lttng-tools 3/3] Use the new functions for default subbuf sizes

2012-11-13 Thread Simon Marchi
Use the functions added by the previous commit. All the occurences of the previous defines were replaced. Signed-off-by: Simon Marchi --- src/bin/lttng-sessiond/channel.c |5 +++-- src/bin/lttng-sessiond/trace-kernel.c|2 +- src/bin/lttng-sessiond/trace-ust.c |2

[lttng-dev] [PATCH urcu] runtests: check for existence of /usr/bin/time

2012-11-14 Thread Simon Marchi
Otherwise, if /usr/bin/time does not exist, the tests won't run at all. Signed-off-by: Simon Marchi --- tests/runtests-batch.sh |8 +++- tests/runtests.sh |8 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/runtests-batch.sh b/tests/run

[lttng-dev] [PATCH] runtests: Make path of time binary configurable

2012-11-14 Thread Simon Marchi
common location. If it is not there, the tests are ran without timing info. Signed-off-by: Simon Marchi --- tests/common.sh | 13 + tests/runtests-batch.sh | 15 +-- tests/runtests.sh | 15 +-- 3 files changed, 39 insertions(+), 4 deletions

Re: [lttng-dev] [PATCH] runtests: Make path of time binary configurable

2012-11-14 Thread Simon Marchi
On Thu, Nov 15, 2012 at 12:00 AM, Mathieu Desnoyers wrote: > * Simon Marchi (simon.mar...@polymtl.ca) wrote: >> I work on a platform that does not come with a time program. This patch >> makes it possible to specify the path of the time binary or not use it >> if none is av

[lttng-dev] [PATCH urcu v2] runtests: Make path of time binary configurable

2012-11-15 Thread Simon Marchi
common location. If it is not there, the tests are ran without timing info. Signed-off-by: Simon Marchi --- New in v2: removed #!/bin/sh at top of common.sh. tests/common.sh | 12 tests/runtests-batch.sh | 15 +-- tests/runtests.sh | 15

[lttng-dev] [PATCH lttng-modules] Add file: lttng-kernel-version.h

2012-11-23 Thread Simon Marchi
It contains a macro to help checking for kernel version ranges. Signed-off-by: Simon Marchi --- lttng-kernel-version.h | 36 1 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 lttng-kernel-version.h diff --git a/lttng-kernel-version.h b

[lttng-dev] [PATCH lttng-modules] Fix compilation for 3.0 kernels that are named 2.6.40

2012-11-23 Thread Simon Marchi
Since some distro released the 3.0 kernel as 2.6.40, it might be useful to adjust some checks to treat 2.6.40 kernels as 3.0. Signed-off-by: Simon Marchi --- instrumentation/events/lttng-module/net.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation

[lttng-dev] [PATCH lttng-modules 2/2] Fix compilation for 3.0 kernels that are named 2.6.40

2012-11-23 Thread Simon Marchi
Since some distro released the 3.0 kernel as 2.6.40, it might be useful to adjust some checks to treat 2.6.40 kernels as 3.0. Signed-off-by: Simon Marchi --- instrumentation/events/lttng-module/net.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation

[lttng-dev] [PATCH lttng-modules 1/2] Fix compilation for 3.0 branch (>= 3.0.39).

2012-11-23 Thread Simon Marchi
The isolate_mode_t type that appeared in 3.2 was backported to 3.0.39 so the version check must be fixed. It was not backported to the 3.1 branch though, so it must be excluded. Signed-off-by: Simon Marchi --- probes/lttng-probe-vmscan.c |5 - 1 files changed, 4 insertions(+), 1

Re: [lttng-dev] [PATCH lttng-modules] Fix compilation for 3.0 kernels that are named 2.6.40

2012-11-23 Thread Simon Marchi
Please ignore, I sent only this one patch instead of the two I intended. On Fri, Nov 23, 2012 at 5:54 PM, Simon Marchi wrote: > Since some distro released the 3.0 kernel as 2.6.40, it might be useful > to adjust some checks to treat 2.6.40 kernels as 3.0. > > Signed-off-by:

[lttng-dev] [PATCH babeltrace] Fix erroneous warning/error messages

2012-12-06 Thread Simon Marchi
This led to user confusion. Signed-off-by: Simon Marchi --- lib/context.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/context.c b/lib/context.c index 9c11598..5516e49 100644 --- a/lib/context.c +++ b/lib/context.c @@ -90,16 +90,16 @@ int

[lttng-dev] [PATCH ust] Remove LIBFORMAT output in configure.

2013-01-09 Thread Simon Marchi
Signed-off-by: Simon Marchi --- configure.ac |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index c4377a5..a67e8f9 100644 --- a/configure.ac +++ b/configure.ac @@ -309,7 +309,6 @@ AS_ECHO("$version_description") # Report on the con

[lttng-dev] [PATCH lttng-modules] Fix compilation of ext4 and btrfs tracepoints on 2.6.40 kernels

2013-01-10 Thread Simon Marchi
See f95480cf62e9acb42b74fce162544694b76c9704. The new btrfs and ext4 tracepoints used 3.0.0 in the compilation logic. Signed-off-by: Simon Marchi --- instrumentation/events/lttng-module/btrfs.h |4 ++-- instrumentation/events/lttng-module/ext4.h | 14 +++--- 2 files changed, 9

[lttng-dev] [PATCH 2/4] tile: Add definition of NR_syscalls

2013-01-21 Thread Simon Marchi
It is required by the syscall tracepoint mechanism. Signed-off-by: Simon Marchi --- arch/tile/include/uapi/asm/unistd.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/tile/include/uapi/asm/unistd.h b/arch/tile/include/uapi/asm/unistd.h index cd7b6dd..c763c86

[lttng-dev] [PATCH 1/4] tile: move declaration of sys_call_table to

2013-01-21 Thread Simon Marchi
When activating syscall tracing, kernel/trace/trace_syscalls.c doesn't find sys_call_table because it includes , not . Also, looking at the other architectures, that is probably where it should be. Signed-off-by: Simon Marchi --- arch/tile/include/asm/syscall.h |6 ++ arch/tile/in

[lttng-dev] [PATCH 3/4] tile: Add support for TIF_SYSCALL_TRACEPOINT

2013-01-21 Thread Simon Marchi
This patch adds support for the TIF_SYSCALL_TRACEPOINT on the tile architecture. Basically, it calls the appropriate tracepoints on syscall entry and exit. Signed-off-by: Simon Marchi --- arch/tile/include/asm/thread_info.h |8 arch/tile/kernel/intvec_64.S| 14

[lttng-dev] [PATCH 4/4] tile: select HAVE_SYSCALL_TRACEPOINTS

2013-01-21 Thread Simon Marchi
Signed-off-by: Simon Marchi --- arch/tile/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index 8cab409..1adb853 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig @@ -22,6 +22,7 @@ config TILE select

[lttng-dev] [PATCH v2 urcu] Add compilation support for the TileGX architecture

2013-01-24 Thread Simon Marchi
This patch adds compilation support for the TileGx architecture. Since the tests were not ran on other architectures of the Tile family (Tile64, TIlepro), errors are triggered during compilation if the architecture is another Tile arch. Signed-off-by: Simon Marchi --- configure.ac|1

[lttng-dev] [PATCH v2 ust] Add compilation support for Tile architectures

2013-01-24 Thread Simon Marchi
Also add missing space on the mips line for OCD purposes. Signed-off-by: Simon Marchi --- configure.ac |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index c4377a5..919b742 100644 --- a/configure.ac +++ b/configure.ac @@ -189,7 +189,8

[lttng-dev] [PATCH lttng-modules] Fix check in lttng_strlen_user_inatomic

2013-02-06 Thread Simon Marchi
__copy_from_user_inatomic returns the number of bytes that could not be copied, not an error code. This fixes the test accordingly. Signed-off-by: Simon Marchi --- probes/lttng-probe-user.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/probes/lttng-probe-user.c b

[lttng-dev] [PATCH urcu] Fix configure checks for Tile

2013-02-11 Thread Simon Marchi
previous partial install or something. The check is now done earlier, during the configure step and should not cause any trouble. Signed-off-by: Simon Marchi --- configure.ac| 17 - urcu/arch/tile.h| 30 -- urcu/uatomic/tile.h | 28

[lttng-dev] Installation of LTTng on the TILEncore-Gx card (TILE-Gx processor)

2013-02-11 Thread Simon Marchi
Now that the support for the TileGx architecture is integrated in the various tools of the LTTng chain, I thought I could reduce the bus factor and post the installation steps to get LTTng up and running on this platform. The steps assume that the TILERA_ROOT variable is set correctly. The version

[lttng-dev] Stream trace data over PCIe (or anything else)

2013-02-21 Thread Simon Marchi
Hello LTTng cyborgs, As some of you might know, I am trying to port and adapt LTTng to the Tilera TILEncore-Gx card (and later the Intel Xeon Phi). The main constraint with these platforms is the non existent disk space, which means the trace will have to be streamed. I am thinking of using the PC

Re: [lttng-dev] Stream trace data over PCIe (or anything else)

2013-02-21 Thread Simon Marchi
wrote: > * Simon Marchi (simon.mar...@polymtl.ca) wrote: >> Hello LTTng cyborgs, >> >> As some of you might know, I am trying to port and adapt LTTng to the >> Tilera TILEncore-Gx card (and later the Intel Xeon Phi). The main >> constraint with these platforms is the n

[lttng-dev] Babeltrace stable 1.0 branch

2013-02-22 Thread Simon Marchi
This is a reminder of what we discussed on IRC a few days ago. It would be interesting to have a stable 1.0 branch of babeltrace so we can setup automatic builds of bt stable on launchpad. Thanks ! Simon ___ lttng-dev mailing list lttng-dev@lists.lttng

[lttng-dev] [PATCH lttng-tools] Add with-sessiond-bin configure option

2013-02-28 Thread Simon Marchi
I also cleaned up the little check_sessiond function. The check using access(2) was only done for the command line option, but I think it is a good idea to do it wherever the path comes from. closes #441 Signed-off-by: Simon Marchi --- configure.ac | 17 + src/bin

[lttng-dev] [PATCH lttng-tools] Fix consumer_allocate_channel function signature

2013-03-19 Thread Simon Marchi
Signed-off-by: Simon Marchi --- src/common/consumer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/consumer.c b/src/common/consumer.c index 300fd2a..8730e39 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -820,7 +820,7 @@ error: * * On

Re: [lttng-dev] [PATCH lttng-tools] Add with-sessiond-bin configure option

2013-03-19 Thread Simon Marchi
Bump. On 28 February 2013 18:42, Simon Marchi wrote: > I also cleaned up the little check_sessiond function. The check using > access(2) was only done for the command line option, but I think it is a > good idea to do it wherever the path comes from. > > closes #441 > >

Re: [lttng-dev] On git and mail requests

2013-03-28 Thread Simon Marchi
I think the point is that having patches in emails is not very convenient. Given the quality of web based tools available today, I think it would be relevant that the LTTng project adopt one of them. With the current system: - it is hard to see what the resulting code is. You juste have a blob of

Re: [lttng-dev] On git and mail requests

2013-03-28 Thread Simon Marchi
often ? Is this really important ? On 28 March 2013 12:06, Yannick Brosseau wrote: > On 2013-03-28 12:03, Simon Marchi wrote: >> I think the point is that having patches in emails is not very >> convenient. Given the quality of web based tools available today, I >> think it w

Re: [lttng-dev] lttng-tools 2.2.0-rc1 build error, librt no symbols

2013-03-31 Thread Simon Marchi
Hi Yin, I get the same error. Try putting -lrt after the other arguments of the LDADD. Since libconsumer.la uses timer_settime from librt, -lrt has to be after it on the command line. Simon On 31 March 2013 13:14, yin sun wrote: > I am trying the latest git 2.2.0-rc1. seems the the librt is not

[lttng-dev] [PATCH lttng-tools] Fix link: move -lrt at the end of the link line

2013-03-31 Thread Simon Marchi
It has to be after libconsumer.la. Signed-off-by: Simon Marchi --- src/bin/lttng-consumerd/Makefile.am |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-consumerd/Makefile.am b/src/bin/lttng-consumerd/Makefile.am index a418eb4..d340c68 100644 --- a/src

[lttng-dev] [PATCH lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-02 Thread Simon Marchi
to add some unit tests for parse_human_size, but the current test system does not make it easy. They will come later. Signed-off-by: Simon Marchi --- src/bin/lttng/commands/enable_channels.c | 18 +- src/bin/lttng/utils.c| 96 +- src/bin/l

Re: [lttng-dev] [PATCH lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-02 Thread Simon Marchi
On 2 April 2013 22:39, Christian Babeux wrote: > Hi Simon, > >> I wanted to add some unit tests for parse_human_size, but the current >> test system does not make it easy. They will come later. > > Could you describe the issues you had on a separate thread so we can > further discuss it? Will do.

Re: [lttng-dev] [PATCH lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-02 Thread Simon Marchi
On 2 April 2013 22:52, Raphaël Beamonte wrote: > On 2013-04-02 16:45, Simon Marchi wrote: >> --subbuf-size accepts sizes such as: >> >> - 123 -> 123 >> - 123k or 123K -> 123 * 1024 >> - 123m or 123M -> 123 * 1024 * 1024 >> - 123g or 123G -> 123

[lttng-dev] lttng-tools test suite problem

2013-04-03 Thread Simon Marchi
Hello LTTng protagonists, Here is a more detailled description of the problem I have with the lttng-tools test suite. Suppose I want to write a unit test for the list_cmd_options function that is found in src/bin/lttng/utils.c. Based on existing tests, I would create the file tests/unit/test_list

Re: [lttng-dev] lttng-tools test suite problem

2013-04-03 Thread Simon Marchi
On 3 April 2013 12:49, Christian Babeux wrote: > I would advocate for this option. Could you describe the issues you > encountered using subdirs-objects? Let's try to add AUTOMAKE_OPTIONS = subdir-objects at the top of tests/unit/Makefile.am. ./bootstrap and ./configure go fine. When "making",

Re: [lttng-dev] lttng-tools test suite problem

2013-04-03 Thread Simon Marchi
On 3 April 2013 14:28, Simon Marchi wrote: > Finally, an idea just like that: instead of specifying the source > file, would it be possible to specify directly the object file (e.g. > $(top_srcdir)/src/bin/lttng/utils.o or ../../src/bin/lttng/utils.o) in > LDADD ? So the unit test Ma

Re: [lttng-dev] [PATCH lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-03 Thread Simon Marchi
>Normally I'd be the first to advocate k, M, G as powers of 10 and Ki, Mi, > Gi as powers of two (ISO/IEC 8-13:2008) but the kernel parameters use > exclusively K, M, and G in the powers of two sense, and I believe just about > every other part of Linux does also. We should thus, somewh

[lttng-dev] [PATCH v2 lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-03 Thread Simon Marchi
it tests for parse_human_size, but the current test system does not make it easy. They will come later. Signed-off-by: Simon Marchi --- src/bin/lttng/commands/enable_channels.c | 21 - src/bin/lttng/utils.c| 129 +- src/bin/lttng/utils.h

Re: [lttng-dev] [PATCH v2 lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-03 Thread Simon Marchi
3 April 2013 21:30, Simon Marchi wrote: > --subbuf-size accepts sizes such as: > > - 123 -> 123 > - 123k -> 123 * 1024 > - 123M -> 123 * 1024 * 1024 > - 123G -> 123 * 1024 * 1024 * 1024 > > It uses the new parse_human_size function, which could probably be used

Re: [lttng-dev] [PATCH v2 lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-08 Thread Simon Marchi
>> #define _GNU_SOURCE >> -#include >> +#include >> #include >> #include >> +#include >> +#include > > any reason why stdlib is moved here ? I put them in alphabetical order instead of random order. Thanks for the comments, I will make the changes. __

[lttng-dev] [RFC PATCH lttng-tools] Unit tests: don't rebuild units under test

2013-04-08 Thread Simon Marchi
Only the tests themselves are built in the unit test folder. They reuse the object files that are already built during the main compilation pass. This would fix the conflicts between object names. Signed-off-by: Simon Marchi --- tests/unit/Makefile.am | 55

[lttng-dev] [RFC PATCH lttng-tools v3] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-08 Thread Simon Marchi
e_size_suffix_SOURCES = test_parse_size_suffix.c +test_parse_size_suffix_LDADD = $(LIBTAP) +test_parse_size_suffix_LDADD += $(PARSE_SIZE_SUFFIX) diff --git a/tests/unit/test_parse_size_suffix.c b/tests/unit/test_parse_size_suffix.c new file mode 100644 index 000..70ccb76 --- /dev/null +++ b/test

Re: [lttng-dev] [PATCH lttng-tools] Fix link: move -lrt at the end of the link line

2013-04-10 Thread Simon Marchi
/lttng-dev/2013-March/019929.html [2] https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition [3] http://pastebin.com/G2pSkseF On 10 April 2013 10:22, Mathieu Desnoyers wrote: > * Simon Marchi (simon.mar...@polymtl.ca) wrote: >> It has to be after libconsumer.la. >> > &

Re: [lttng-dev] [RFC PATCH lttng-tools v3] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-10 Thread Simon Marchi
On 9 April 2013 12:56, David Goulet wrote: >> @@ -77,3 +79,122 @@ void list_cmd_options(FILE *ofp, struct poptOption >> *options) >> } >> } >> } >> + >> +/** >> + * Prints the error message corresponding to a regex error code. >> + * >> + * @param errcodeThe error code. >

[lttng-dev] [RFC PATCH lttng-tools v4] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-10 Thread Simon Marchi
+# parse_size_suffix unit test +PARSE_SIZE_SUFFIX=$(top_srcdir)/src/common/utils.o \ + $(top_srcdir)/src/common/runas.o + +test_parse_size_suffix_SOURCES = test_parse_size_suffix.c +test_parse_size_suffix_LDADD = $(LIBTAP) $(LIBHASHTABLE) $(LIBCOMMON) +test_parse_size_suffix_LDADD += $(PARSE_SIZE_SU

[lttng-dev] [PATCH v5 lttng-tools] lttng cli: Accept human readable sizes for --subbuf-size

2013-04-12 Thread Simon Marchi
--subbuf-size accepts sizes such as: - 123 -> 123 - 123k -> 123 * 1024 - 123M -> 123 * 1024^2 - 123G -> 123 * 1024^3 It uses the new parse_size_suffix function, which could probably be used at other places, such as tracefile size. Unit tests are included. Signed-off-by: Simon Mar

Re: [lttng-dev] LTTNG UST configure error (lttng-ust-2.1.2)

2013-04-17 Thread Simon Marchi
Hi Hari, libuuid is indeed required in order to build LTTng-UST for every platform. The usual way to install it is through a package manager (package uuid-dev on debian/ubuntu, for example). If this is not an option, you will have to build it from source. It is part of the util-linux package [1][2

[lttng-dev] UST tracepoints, same provider, different files

2013-04-29 Thread Simon Marchi
Hello ! I am trying to add two tracepoints to a simple test application. If I put both tracepoints in different compilation units (two .c files), UST crashes when the application starts with the following message: test: /usr/local/include/lttng/ust-tracepoint-event.h:685: __lttng_events_init__my_

Re: [lttng-dev] UST tracepoints, same provider, different files

2013-04-29 Thread Simon Marchi
Just to add a precision, it happens only when both tracepoints use the same provider. On 29 April 2013 09:58, Simon Marchi wrote: > Hello ! > > I am trying to add two tracepoints to a simple test application. If I > put both tracepoints in different compilation units (two .c f

Re: [lttng-dev] UST tracepoints, same provider, different files

2013-04-29 Thread Simon Marchi
ertion is there to check just that. > > * Simon Marchi (simon.mar...@polymtl.ca) wrote: >> Hello ! >> >> I am trying to add two tracepoints to a simple test application. If I >> put both tracepoints in different compilation units (two .c files), >> UST crashes when

Re: [lttng-dev] [PATCH] Fix linker library order

2013-05-14 Thread Simon Marchi
On 14 May 2013 08:37, Mathieu Desnoyers wrote: > > * Mathieu Desnoyers (mathieu.desnoy...@efficios.com) wrote: > > * Alexandre Montplaisir (alexmon...@voxpopuli.im) wrote: > > > On 13-05-11 10:59 PM, Mathieu Desnoyers wrote: > > > > * Francis Giraldeau (francis.girald...@gmail.com) wrote: > > > >>

  1   2   3   >