[lttng-dev] [PATCH lttng-modules] Fix: version checks for kernel 4.0

2015-06-17 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- probes/Makefile | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/probes/Makefile b/probes/Makefile index 4de157b..f0325c8 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -61,10 +61,12 @@ obj-m += $(shell

[lttng-dev] [PATCH lttng-ust] Add aarch64 support to configure

2015-06-18 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index f84f426..971cf54 100644 --- a/configure.ac +++ b/configure.ac @@ -238,6 +238,7 @@ changequote([,])dnl s390) NO_UNALIGNED_ACCESS=1 ;; s390x

[lttng-dev] [PATCH lttng-ust] Fix: build log4j example when enabled

2015-06-25 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- .gitignore | 2 +- doc/examples/Makefile.am| 26 +++--- doc/examples/java-jul/run | 3 ++- doc/examples/java-log4j/.intree | 0 doc/examples/java-log4j/run | 5 +++-- 5 files changed, 29 insertions

[lttng-dev] [PATCH lttng-ust] Fix: Use env CLASSPATH when building log4j example

2015-06-25 Thread Michael Jeanson
The location of the log4j jar file is specified during configure with the CLASSPATH envvar, reuse it when building the example. Signed-off-by: Michael Jeanson --- doc/examples/java-log4j/Makefile | 10 +++--- doc/examples/java-log4j/run | 10 +++--- 2 files changed, 14 insertions

[lttng-dev] [PATCH lttng-ust] Fix: out of tree build of java agents

2015-06-25 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- liblttng-ust-java-agent/jni/jul/Makefile.am | 2 +- liblttng-ust-java-agent/jni/log4j/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/liblttng-ust-java-agent/jni/jul/Makefile.am b/liblttng-ust-java-agent/jni/jul/Makefile.am

[lttng-dev] [PATCH lttng-ust] Default to no unaligned access on unsupported archs

2015-06-30 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 03483a7..5901dfb 100644 --- a/configure.ac +++ b/configure.ac @@ -241,7 +241,10 @@ changequote([,])dnl aarch64

[lttng-dev] [PATCH lttng-ust] Fix: java class check when uudecode is not present

2015-06-30 Thread Michael Jeanson
the behavior of the test consistant whether 'uudecode' is present or not. Signed-off-by: Michael Jeanson --- config/ax_check_class.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ax_check_class.m4 b/config/ax_check_class.m4 index 098aa77..42b51d7 100644 -

[lttng-dev] [PATCH lttng-ust] Fix: running java examples out of tree

2015-06-30 Thread Michael Jeanson
--- doc/examples/java-jul/run | 7 ++- doc/examples/java-log4j/run | 7 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/examples/java-jul/run b/doc/examples/java-jul/run index 37a3cfd..6deb6fd 100755 --- a/doc/examples/java-jul/run +++ b/doc/examples/java-jul/run

[lttng-dev] [PATCH lttng-tools] Doc: Update liburcu URL in README.md

2015-07-02 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 716fb66..9a95e33 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ components: that, the kernel version may probably be older, but we can&#

[lttng-dev] [PATCH lttng-ust] Fix: Use $enableval with AC_ARG_ENABLE

2015-07-08 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8bbf7b9..cb4bb21 100644 --- a/configure.ac +++ b/configure.ac @@ -255,7 +255,7 @@ fi # Check for JNI header files if requested AC_ARG_ENABLE

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

2015-08-04 Thread Michael Jeanson
asses are found in the CLASSPATH during configure. Signed-off-by: Michael Jeanson --- .gitignore | 2 + config/ax_check_class.m4| 2 +- configure.ac| 80 + tests/regression/ust

[lttng-dev] [PATCH lttng-tools] Tests: Java agent: Add configure switches to enable tests

2015-08-06 Thread Michael Jeanson
This patch adds the switches --enable-test-java-agent-(jul|log4j|all) to the configure script, the tests now need to be explicitly enabled and their dependencies are only checked if so. Signed-off-by: Michael Jeanson --- configure.ac| 94

[lttng-dev] [PATCH lttng-tools] Fix: Improve the error reporting of the track/untrack command

2015-08-12 Thread Michael Jeanson
: Michael Jeanson --- include/lttng/lttng-error.h| 2 ++ src/bin/lttng-sessiond/trace-ust.c | 4 ++-- src/bin/lttng/commands/track-untrack.c | 23 +-- src/common/error.c | 2 ++ 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a

[lttng-dev] [PATCH lttng-modules] Fix: mm_page_alloc_extfrag instrumentation for kernel 3.18.10

2015-08-14 Thread Michael Jeanson
mm: when stealing freepages, also take pages created by splitting buddy page commit 99592d598eca62bdbbf62b59941c189176dfc614 upstream. This patch adds the proper version check to allow building on 3.18.y. Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/kmem.h | 1

[lttng-dev] [PATCH] Fix: 32bit values index_major/minor used as 64bit

2015-08-18 Thread Michael Jeanson
This patch fixes compiler warnings on big endian architectures where be64toh() is a nop and returns the original type. Signed-off-by: Michael Jeanson --- formats/ctf/ctf.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index

[lttng-dev] [PATCH lttng-modules] Fix: writeback instrumentation for 4.2 kernels

2015-08-20 Thread Michael Jeanson
Bandwidth related fields were moved by this commit: commit a88a341a73be4ef035ca26170c849f002797da27 Author: Tejun Heo Date: Fri, 22 May 2015 17:13:28 -0400 writeback: move bandwidth related fields from backing_dev_info into bdi_writeback Signed-off-by: Michael Jeanson

[lttng-dev] [PATCH lttng-modules 2.6] Fix: writeback instrumentation for 4.2 kernels

2015-08-21 Thread Michael Jeanson
Bandwidth related fields were moved by this commit: commit a88a341a73be4ef035ca26170c849f002797da27 Author: Tejun Heo Date: Fri, 22 May 2015 17:13:28 -0400 writeback: move bandwidth related fields from backing_dev_info into bdi_writeback Signed-off-by: Michael Jeanson

[lttng-dev] [PATCH lttng-modules] Fix: build failure on 2.6.36

2015-08-29 Thread Michael Jeanson
Fixes build failure on the 2.6.36 kernel branch which misses the vzalloc() function. Signed-off-by: Michael Jeanson --- lttng-events.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lttng-events.c b/lttng-events.c index b49851b..422a2dd 100644 --- a/lttng-events.c +++ b/lttng

[lttng-dev] [PATCH lttng-modules v2] Fix: build failure on 2.6.36

2015-08-29 Thread Michael Jeanson
Fixes build failure on the 2.6.36 kernel branch which misses the vzalloc() function. Signed-off-by: Michael Jeanson --- lttng-events.c| 5 +++-- wrapper/vzalloc.h | 46 ++ 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644

[lttng-dev] [PATCH lttng-modules v3] Fix: build failure on 2.6.36

2015-08-31 Thread Michael Jeanson
Fixes build failure on the 2.6.36 kernel branch which misses the vzalloc() function. Signed-off-by: Michael Jeanson --- lttng-events.c| 5 +++-- wrapper/vzalloc.h | 47 +++ 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644

[lttng-dev] [PATCH babeltrace] Fix: make check in out of tree build

2015-09-03 Thread Michael Jeanson
Use the tracefiles from the source dir when running make check in an out of tree builddir. Signed-off-by: Michael Jeanson --- .gitignore | 2 ++ tests/bin/Makefile.am| 22 ++-- tests/bin/test_trace_read| 48

[lttng-dev] [PATCH lttng-ust] Fix: make check in out of tree build

2015-09-03 Thread Michael Jeanson
Use the elf data files from the source dir when running make check in an out of tree builddir. Signed-off-by: Michael Jeanson --- tests/ust-elf/Makefile.am | 22 ++ tests/ust-elf/test_ust_elf| 4 tests/ust-elf/test_ust_elf.in | 4 3 files changed, 10

[lttng-dev] [PATCH lttng-ust v2] Fix: make check in out of tree build

2015-09-03 Thread Michael Jeanson
Use the elf data files from the source dir when running make check in an out of tree builddir. Signed-off-by: Michael Jeanson --- .gitignore| 1 + tests/ust-elf/Makefile.am | 22 ++ tests/ust-elf/test_ust_elf| 4 tests/ust-elf

[lttng-dev] [PATCH lttng-ust] Fix: add missing ust-elf.h header to dist

2015-09-03 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- include/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/Makefile.am b/include/Makefile.am index 44102ef..3c9cf24 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -24,7 +24,8 @@ nobase_include_HEADERS

[lttng-dev] [PATCH lttng-ust v3] Fix: make check in out of tree build

2015-09-03 Thread Michael Jeanson
Use the elf data files from the source dir when running make check in an out of tree builddir and add the data files to dist. Signed-off-by: Michael Jeanson --- .gitignore| 1 + tests/ust-elf/Makefile.am | 22 ++ tests/ust-elf/test_ust_elf| 4

[lttng-dev] [PATCH babeltrace] Fix: make check in OOT build with absolute path

2015-09-04 Thread Michael Jeanson
The previous patch fixed the out of tree build when the configure script was called with a path relative to the builddir but still failed when the path was absolute. This works with both. Signed-off-by: Michael Jeanson --- tests/bin/Makefile.am| 2 +- tests/bin/test_trace_read.in | 2

[lttng-dev] [PATCH lttng-ust] Fix: make check in OOT build with absolute path

2015-09-04 Thread Michael Jeanson
The previous patch fixed the out of tree build when the configure script was called with a path relative to the builddir but still failed when the path was absolute. This works with both. Signed-off-by: Michael Jeanson --- tests/ust-elf/Makefile.am | 2 +- tests/ust-elf/test_ust_elf.in | 2

[lttng-dev] [PATCH RFC lttng-modules] Fix: lttng-test build failure for kernels < 3.0

2015-09-10 Thread Michael Jeanson
Fixes an undefined reference to kstrtouint_from_user. The provided wrapper is just an example and should be carefully reviewed and probably reimplemented from scratch considering my proficiency in kernel c. Signed-off-by: Michael Jeanson --- probes/lttng-test.c | 3 ++- wrapper/kstrtox.h

[lttng-dev] [PATCH lttng-modules v2] Fix: lttng-test build failure for kernels < 3.0

2015-09-11 Thread Michael Jeanson
Fixes an undefined reference to kstrtouint_from_user. Signed-off-by: Michael Jeanson --- probes/lttng-test.c | 3 ++- wrapper/kstrtox.h | 58 + 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 wrapper/kstrtox.h diff

[lttng-dev] [PATCH lttng-tools] Fix: add missing test file to EXTRA_DIST

2015-09-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- tests/regression/tools/save-load/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/regression/tools/save-load/Makefile.am b/tests/regression/tools/save-load/Makefile.am index 6b496be..d6a6ae3 100644 --- a/tests/regression

[lttng-dev] [PATCH lttng-tools] Fix: int printed as uint

2015-09-21 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/common/ust-consumer/ust-consumer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 08e6ee0..481bbeb 100644 --- a/src/common/ust-consumer/ust

[lttng-dev] [PATCH lttng-tools] Fix: Possible dereference of null pointers

2015-09-21 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/common/sessiond-comm/unix.c | 6 ++ src/lib/lttng-ctl/filter/filter-visitor-set-parent.c | 4 2 files changed, 10 insertions(+) diff --git a/src/common/sessiond-comm/unix.c b/src/common/sessiond-comm/unix.c index 4b64161

[lttng-dev] [PATCH babeltrace] Fix: glib >= 2.32 required for g_hash_table_contains() in lib/values.c

2015-09-21 Thread Michael Jeanson
--- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dc23daa..a815274 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,7 @@ if test ! -f "$srcdir/formats/ctf/metadata/ctf-lexer.c"; then fi -AM_PATH_GLIB_2_0(2.22.0, ,AC

[lttng-dev] [PATCH babeltrace] Fix: add compat for glib < 2.32

2015-09-22 Thread Michael Jeanson
der. Signed-off-by: Michael Jeanson --- include/Makefile.am | 1 + include/babeltrace/compat/glib.h | 80 lib/values.c | 6 +-- 3 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 include/babeltrace/com

[lttng-dev] [PATCH lttng-tools] Fix: tests: support systems where PAGE_SIZE is not 4096

2015-09-22 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- tests/regression/tools/snapshots/ust_test | 5 ++- .../tools/tracefile-limits/test_tracefile_size | 51 +- 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/tests/regression/tools/snapshots/ust_test b/tests

[lttng-dev] [PATCH lttng-tools v2] Fix: tests: support systems where PAGE_SIZE is not 4096

2015-09-22 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- tests/regression/tools/snapshots/ust_test | 5 +- .../tools/tracefile-limits/test_tracefile_size | 56 +- 2 files changed, 58 insertions(+), 3 deletions(-) diff --git a/tests/regression/tools/snapshots/ust_test b/tests

[lttng-dev] [urcu][GIT PULL] Add support for Solaris 10 and 11

2015-10-06 Thread Michael Jeanson
Hi, This pull request adds support for Solaris 10 and 11, on Solaris 10 it requires the OpenCSW open source software distribution for build and runtime dependencies. https://github.com/urcu/userspace-rcu/pull/5 Port: make bootstrap script work on most shell c8d0f0f Port:

[lttng-dev] [PATCH babeltrace] Fix: posix_fallocate() returns int > 0 on errors

2015-10-13 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- formats/ctf/ctf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 74fcb5b..19f61b5 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -906,7 +906,7 @@ void ctf_packet_seek(struct

[lttng-dev] [PATCH babeltrace] Fix: memstream compat layer requires use of babeltrace_close_memstream

2015-10-15 Thread Michael Jeanson
From: Mathieu Desnoyers In compatibility mode, the babeltrace compat layer around memstream copies the file content into the buffer only at close. Signed-off-by: Mathieu Desnoyers --- formats/lttng-live/lttng-live-comm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/

[lttng-dev] [PATCH babeltrace] Fix: check for socket lib before function checks

2015-10-15 Thread Michael Jeanson
On platforms that require extra libraries to link socket apps, running this macro before the function checks will lead to socket functions being correctly detected. Signed-off-by: Michael Jeanson --- configure.ac | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a

[lttng-dev] [PATCH babeltrace] Cleanup: remove unused label 'end'

2015-10-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- include/babeltrace/compat/send.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/babeltrace/compat/send.h b/include/babeltrace/compat/send.h index 3c6d01a..3998694 100644 --- a/include/babeltrace/compat/send.h +++ b/include

[lttng-dev] [PATCH babeltrace 3/3] Port: Add OSX libuuid compat

2015-11-05 Thread Michael Jeanson
OSX has the libuuid symbols built in the system libraries. Signed-off-by: Michael Jeanson --- configure.ac | 48 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/configure.ac b/configure.ac index f23e460..9c42017 100644 --- a

[lttng-dev] [PATCH babeltrace 1/3] Port: Add OSX endian.h compat

2015-11-05 Thread Michael Jeanson
From: Alexis Martin Signed-off-by: Michael Jeanson --- include/babeltrace/endian.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/include/babeltrace/endian.h b/include/babeltrace/endian.h index f0299ad..c5e5d70 100644 --- a/include/babeltrace

[lttng-dev] [PATCH babeltrace 2/3] Port: Add OSX mman.h compat

2015-11-05 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- formats/lttng-live/lttng-live-comm.c | 2 +- include/babeltrace/compat/mman.h | 36 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 include/babeltrace/compat/mman.h diff --git a/formats/lttng-live

[lttng-dev] [PATCH babeltrace] Fix: BABELTRACE_HAVE_LIBC_UUID misspelled as BT_HAVE_LIBC_UUID

2015-11-05 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- include/babeltrace/compat/uuid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/babeltrace/compat/uuid.h b/include/babeltrace/compat/uuid.h index 369e478..4237eb5 100644 --- a/include/babeltrace/compat/uuid.h +++ b/include

[lttng-dev] [PATCH lttng-tools] Use --without-lttng-ust in error message

2015-11-11 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a46bfd3..6020596 100644 --- a/configure.ac +++ b/configure.ac @@ -321,7 +321,7 @@ AS_IF([test "x$lttng_ust_support&quo

[lttng-dev] [PATCH lttng-tools] Tests: fix tracefile count when page_size is > 4k

2015-11-27 Thread Michael Jeanson
Set the tracefile size according to the platform page_size and increase the number of iterations to properly test the rotation. Signed-off-by: Michael Jeanson --- tests/regression/tools/tracefile-limits/test_tracefile_count | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[lttng-dev] [PATCH lttng-tools] Tests: fix make targets using objcopy

2015-12-02 Thread Michael Jeanson
Add detection for objcopy using AC_CHECK_TOOL and use dedicated make targets for each file. Signed-off-by: Michael Jeanson --- .gitignore | 2 ++ configure.ac| 6 ++ tests/regression/ust/baddr-statedump

[lttng-dev] [RFC PATCH babeltrace] Fix: Check return value of fpathconf

2015-12-04 Thread Michael Jeanson
y for dirent and then overflow on the readdir_r call. This patch is an RFC, I'm not sure what is the best way to handle the failure, should we instead fallback on using the global "NAME_MAX"? Signed-off-by: Michael Jeanson --- formats/ctf/ctf.c | 12 ++-- 1 file changed,

[lttng-dev] [RFC PATCH v2 babeltrace] Fix: Check return value of fpathconf

2015-12-04 Thread Michael Jeanson
y for dirent and then overflow on the readdir_r call. This patch is an RFC, I'm not sure what is the best way to handle the failure, should we instead fallback on using the global "NAME_MAX"? Signed-off-by: Michael Jeanson --- formats/ctf/ctf.c | 12 ++-- 1 file changed,

[lttng-dev] [PATCH lttng-modules] Fix: Use generic irqs_disabled_flags

2015-12-09 Thread Michael Jeanson
instead of arch_irqs_disabled_flags, this fixes the build for kernel < 2.6.37 See linux commit df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 for more details. Signed-off-by: Michael Jeanson --- wrapper/irqflags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/irqflag

[lttng-dev] [PATCH lttng-modules v2] Fix: Use generic raw_irqs_disabled_flags

2015-12-10 Thread Michael Jeanson
instead of arch_irqs_disabled_flags, this fixes the build for kernel < 2.6.37 See linux commit df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 for more details. Signed-off-by: Michael Jeanson --- wrapper/irqflags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/irqflag

[lttng-dev] [RFC PATCH lttng-modules] Add support for builtin kernel build

2015-12-10 Thread Michael Jeanson
d voila! This is an early implementation with a single configuration that enable or disable everything, if it's useful we could add fine grained config options for each modules or group of modules. Signed-off-by: Michael Jeanson --- Kconfig

[lttng-dev] [PATCH lttng-tools] Fix: missing $ in SED variable

2016-01-06 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5537c15..f851be8 100644 --- a/configure.ac +++ b/configure.ac @@ -90,7 +90,7 @@ AS_IF([test "x$libtool_fixup&quo

Re: [lttng-dev] Suggestions concerning lttng analyses

2016-01-13 Thread Michael Jeanson
- On Jan 6, 2016, at 3:09 PM, Tetreault, Francois ftetr...@ciena.com wrote: > Some comments concerning lttng analyses. > > 1- How to figure which version of the lttng analyses package is installed? > 1.1- Version is "0-unknown" when using "pip3 show lttnganalyses". > Would be nice to g

[lttng-dev] [PATCH lttng-modules 1/2] Fix: RHEL 7.2 kvm instrumentation

2016-01-14 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/kvm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h index 87d605c..cb73011 100644 --- a/instrumentation/events

[lttng-dev] [PATCH lttng-modules 2/2] Fix: RHEL 7.2 scsi instrumentation

2016-01-14 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/scsi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/scsi.h b/instrumentation/events/lttng-module/scsi.h index c23c4f2..c0088c6 100644 --- a/instrumentation/events

[lttng-dev] [PATCH babeltrace] Tests: Fix test plans and do not skip on fail

2016-01-25 Thread Michael Jeanson
Use fixed count test plans in all tests and make sure we do not skip some tests on initialisation failures. Signed-off-by: Michael Jeanson --- .gitignore | 1 + tests/lib/test_bt_values.c | 4 +++- tests/lib/test_ctf_ir_ref.c | 6 +- tests/lib/test_ctf_writer.c | 4

[lttng-dev] [PATCH lttng-modules 1/2] Fix: Ubuntu kernel range for mm_page_alloc_extfrag

2016-01-29 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/kmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/kmem.h b/instrumentation/events/lttng-module/kmem.h index 25e58cb..cce8da4 100644 --- a/instrumentation/events

[lttng-dev] [PATCH lttng-modules 2/2] Fix: Ubuntu kernel range for block_rq_complete

2016-01-29 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/block.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/block.h b/instrumentation/events/lttng-module/block.h index 1a2ba6b..6b0c788 100644 --- a/instrumentation/events

[lttng-dev] [PATCH lttng-modules 1/2] Add RT patch version macros

2016-02-05 Thread Michael Jeanson
--- Makefile.ABI.workarounds | 8 +++- lttng-kernel-version.h | 17 + rt-patch-version.sh | 25 + 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100755 rt-patch-version.sh diff --git a/Makefile.ABI.workarounds b/Makefile.ABI.worka

[lttng-dev] [PATCH lttng-modules 2/2] Fix: sched instrumentation for 4.1-rt11

2016-02-05 Thread Michael Jeanson
--- instrumentation/events/lttng-module/sched.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/instrumentation/events/lttng-module/sched.h b/instrumentation/events/lttng-module/sched.h index 4f3676b..116d65e 100644 --- a/instrumentation/events/lttng-module/sched.h +++ b

[lttng-dev] [PATCH lttng-modules] Fix: Use kbuild env instead of a custom var KERNELDIR

2016-02-08 Thread Michael Jeanson
We currently use the custom variables KERNELDIR and LTTNG_KERNELDIR to pass the kernel source tree directory to helper scripts. We should instead use the built-in Kbuild variable CURDIR which is available in all sub makefiles and always points to the kernel sources. Signed-off-by: Michael Jeanson

[lttng-dev] [PATCH lttng-modules] Fix: Add CONFIG_LTTNG to modules_install target

2016-02-09 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6a8c5c7..5d6be94 100644 --- a/Makefile +++ b/Makefile @@ -103,12 +103,12 @@ default: $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m modules

[lttng-dev] [PATCH lttng-modules] Fix: Define lttng-tracer metadata only once

2016-02-10 Thread Michael Jeanson
Fixes sysfs trying to create the lttng-tracer module version node multiple times. Signed-off-by: Michael Jeanson --- Makefile| 8 lttng-context-cpu-id.c | 8 lttng-context-hostname.c| 8 lttng-context-interruptible.c | 8

[lttng-dev] [PATCH lttng-modules] Cleanup: Remove unused lttng-types module

2016-02-12 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- lttng-events.h | 2 -- probes/Kbuild| 1 - probes/lttng-type-list.h | 33 probes/lttng-types.c | 66 4 files changed, 102 deletions(-) delete mode 100644

[lttng-dev] [RFC PATCH lttng-tools 2/5] Move libkmod ifdef to beginning of file

2016-02-12 Thread Michael Jeanson
This will be useful to add the libkmod implementation of the modprobe_remove_lttng() function in a single ifdef. Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/modprobe.c | 150 +++--- 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/src

[lttng-dev] [RFC PATCH lttng-tools 1/5] Drop optionnal control modules load and unload

2016-02-12 Thread Michael Jeanson
The optionnal control modules are loaded and unloaded trought modules dependencies by modprobe or libkmod. Trying to load them manually leads to spurious log messages and slows down the sessiond startup. Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/modprobe.c | 18

[lttng-dev] [RFC PATCH lttng-tools 3/5] Add libkmod rmmod support

2016-02-12 Thread Michael Jeanson
-off-by: Michael Jeanson --- src/bin/lttng-sessiond/modprobe.c | 104 ++ 1 file changed, 95 insertions(+), 9 deletions(-) diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index 6f9a997..90fec71 100644 --- a/src/bin/lttng-sessiond

[lttng-dev] [RFC PATCH lttng-tools 4/5] Add comments to kmod functions

2016-02-12 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/modprobe.c | 52 +++ 1 file changed, 52 insertions(+) diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index 90fec71..3e41f5c 100644 --- a/src/bin/lttng-sessiond

[lttng-dev] [RFC PATCH lttng-tools 5/5] Add builtin modules support to kmod modprobe

2016-02-12 Thread Michael Jeanson
Report success when loading a module that is builtin the kernel. Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/modprobe.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index 3e41f5c

Re: [lttng-dev] [RFC PATCH lttng-tools 1/5] Drop optionnal control modules load and unload

2016-02-12 Thread Michael Jeanson
Fixed in git, I'll wait for more feedback on the patchset before sending a V2. Thanks, Michael - On Feb 12, 2016, at 4:40 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > > optionnal -> optional > trough -> through > > Thanks, > > Mathieu ___

[lttng-dev] [PATCH lttng-ust] Fix: Use Java 6 syntax in JUL examples

2016-02-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- doc/examples/java-jul/ApplicationContextExample.java | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/examples/java-jul/ApplicationContextExample.java b/doc/examples/java-jul/ApplicationContextExample.java index 3da3ac8..52cef3f

[lttng-dev] [PATCH lttng-tools] Fix: Use ipv6 loopback adress in test_uri

2016-02-18 Thread Michael Jeanson
ad of localhost. Signed-off-by: Michael Jeanson --- tests/unit/test_uri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index 432e2b3..cd95753 100644 --- a/tests/unit/test_uri.c +++ b/tests/unit/test_uri.c @@ -108,7 +108,7 @@

Re: [lttng-dev] Crash on first run of target using liblttng-ust-cyg-profile.so, but subsequent runs succeed

2016-03-02 Thread Michael Jeanson
Hi Sean, As mentioned by Mathieu this is caused by the docker default seccomp profile blocking the "restart_syscall" syscall. This problem only happens on host systems where docker 0.10.2 and up was built against libseccomp 2.2.1 and up. Hopefully docker will add this syscall to their default whi

Re: [lttng-dev] [PATCH lttng-tools] Test: prevent the spawning of a daemonized sessiond

2016-03-08 Thread Michael Jeanson
Hi, A comment explaining why LTTNG_SESSIOND_PATH is set to "/bin/true" would be quite helpful to anybody re-reading this file. Michael - On Mar 8, 2016, at 5:11 PM, Jonathan Rajotte jonathan.rajotte-jul...@efficios.com wrote: > Signed-off-by: Jonathan Rajotte > --- > tests/utils/utils.sh

[lttng-dev] [PATCH lttng-tools stable-2.6 1/3] Tests: Introduce conf_proc_count()

2016-03-15 Thread Michael Jeanson
From: Jérémie Galarneau Tests are using the nproc utility which return the number of _available_ CPUs. The distinction between online, available and configured CPUs is subtle, but important. The number of "online" CPUs can change at runtime as CPUs are hot-plugged. This could happen during a tes

[lttng-dev] [PATCH lttng-tools stable-2.6 3/3] Tests: use configured processor count in tracefile count test

2016-03-15 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- tests/regression/tools/tracefile-limits/test_tracefile_count | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/tools/tracefile-limits/test_tracefile_count b/tests/regression/tools/tracefile-limits/test_tracefile_count

[lttng-dev] [PATCH lttng-tools stable-2.6 2/3] Tests: use configured processor count in snapshot tests

2016-03-15 Thread Michael Jeanson
From: Jérémie Galarneau Signed-off-by: Jérémie Galarneau --- tests/regression/tools/snapshots/ust_test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test index e839b84..0b8bb24 100755 --- a/t

[lttng-dev] [PATCH lttng-modules] Fix: Add granularity to RHEL kernel version checks

2016-03-29 Thread Michael Jeanson
Our RHEL kernel version macros were based on the major and minor version of the distribution version like "7.2" instead of the full kernel version like "327.4.4". This prevented us from adding compatibility changes with sufficient granularity. Signed-off

[lttng-dev] [PATCH lttng-modules] Fix: Add gfpflags.h wrapper for kernel >= 4.6.0

2016-04-05 Thread Michael Jeanson
-off-by: Michael Jeanson --- instrumentation/events/lttng-module/btrfs.h | 2 +- instrumentation/events/lttng-module/compaction.h | 2 +- wrapper/gfpflags.h | 32 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644

Re: [lttng-dev] [PATCH lttng-modules] Fix: Add gfpflags.h wrapper for kernel >= 4.6.0

2016-04-05 Thread Michael Jeanson
umentation/events/lttng-module/btrfs.h:9:35: fatal error: trace/events/gfpflags.h: No such file or directory compilation terminated. - On Apr 5, 2016, at 3:13 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 5, 2016, at 3:07 PM, Michael Jeanson mjean...@effic

[lttng-dev] [PATCH lttng-tools] Typo: catched -> caught

2016-04-19 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/bin/lttng-consumerd/lttng-consumerd.c | 2 +- src/common/consumer/consumer.c| 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/lttng-consumerd/lttng-consumerd.c b/src/bin/lttng-consumerd/lttng-consumerd.c index

[lttng-dev] [PATCH lttng-modules] Fix: RHEL kernel 3.10.0-327.13.1 compat

2016-04-20 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- lttng-statedump-impl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index 4c1a99d..a252043 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -403,7 +403,8 @@ void

[lttng-dev] [PATCH lttng-modules] Fix: writeback probe on RHEL >= 3.10.0-327.10.1

2016-04-21 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/writeback.h | 37 ++--- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/instrumentation/events/lttng-module/writeback.h b/instrumentation/events/lttng-module/writeback.h index a215f55

[lttng-dev] [PATCH lttng-modules v2] Fix: writeback probe on RHEL >= 3.10.0-327.10.1

2016-04-21 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/writeback.h | 37 ++--- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/instrumentation/events/lttng-module/writeback.h b/instrumentation/events/lttng-module/writeback.h index a215f55

[lttng-dev] [PATCH lttng-ust] Add missing line continuation and fix indentation

2016-04-25 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- liblttng-ust-java-agent/jni/jul/Makefile.am | 10 +- liblttng-ust-java-agent/jni/log4j/Makefile.am | 10 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/liblttng-ust-java-agent/jni/jul/Makefile.am b/liblttng-ust-java-agent

[lttng-dev] [PATCH lttng-ust] Doc: Update README

2016-04-25 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- README.md | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a2d9e63..728c103 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ compile the Git repository tree: ### Optional dependencies

Re: [lttng-dev] [PATCH lttng-ust] Doc: Update README

2016-04-25 Thread Michael Jeanson
- On Apr 25, 2016, at 3:53 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 25, 2016, at 3:08 PM, Michael Jeanson mjean...@efficios.com > wrote: > >> Signed-off-by: Michael Jeanson >> --- >> README.md | 14 +- >> 1

Re: [lttng-dev] [PATCH 1/3] tests/lib/Makefile.am: Remove test_seek_empty_packet and test_seek_big_trace from SCRIPT_LIST

2016-04-28 Thread Michael Jeanson
- On Apr 27, 2016, at 11:04 PM, Simon Marchi simon.mar...@polymtl.ca wrote: > On 2016-04-27 22:52, Simon Marchi wrote: >> Since these files are generated by autoconf, they shouldn't be included >> in SCRIPT_LIST, which is the list of scripts to copy from the source >> directory to the build di

Re: [lttng-dev] [PATCH 1/3] tests/lib/Makefile.am: Remove test_seek_empty_packet and test_seek_big_trace from SCRIPT_LIST

2016-04-28 Thread Michael Jeanson
- On Apr 28, 2016, at 12:44 PM, Simon Marchi simon.mar...@polymtl.ca wrote: > > Ok thanks. > > Just an idea: I find it quite cumbersome to add a new entry in > configure.ac for each test script that we want autoconf to process (such > as in patch 3/3). I think it could be easier to have a si

[lttng-dev] [PATCH babeltrace] Fix: PATH_MAX requires limits.h on some platforms

2016-05-03 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- tests/lib/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lib/common.c b/tests/lib/common.c index d137cb3..0b8ebdf 100644 --- a/tests/lib/common.c +++ b/tests/lib/common.c @@ -22,6 +22,7 @@ #include #include #include +#include

[lttng-dev] [PATCH babeltrace] Fix: Static build on OS X

2016-05-04 Thread Michael Jeanson
The OS X linker fails to resolve common symbols in a static library for some unexplained reason. Initializing the variables to zero makes the symbol become uninitialized data and fixes the linking. Signed-off-by: Michael Jeanson --- lib/babeltrace.c | 2 +- 1 file changed, 1 insertion(+), 1

[lttng-dev] [PATCH babeltrace] Add missing generated tests to gitignore

2016-05-04 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 7aa1896..527d195 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,9 @@ /tests/lib/test_seek_empty_packet /tests/lib/test_dwarf /tests/lib/test_bin_info

[lttng-dev] [PATCH babeltrace] Fix: warnings on Solaris10

2016-05-04 Thread Michael Jeanson
eof(connect)); Signed-off-by: Michael Jeanson --- formats/lttng-live/lttng-live-comm.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/formats/lttng-live/lttng-live-comm.c b/formats/lttng-live/lttng-live-comm.c index bfcef69..1912b57 100644 --- a/formats/lttng-l

Re: [lttng-dev] [PATCH babeltrace] Fix: Static build on OS X

2016-05-04 Thread Michael Jeanson
- On May 4, 2016, at 11:57 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On May 4, 2016, at 10:54 AM, Michael Jeanson mjean...@efficios.com > wrote: > >> The OS X linker fails to resolve common symbols in a static >> library for some unexplained

Re: [lttng-dev] [PATCH babeltrace] Don't use the .so extension on test assets

2016-05-04 Thread Michael Jeanson
- On May 4, 2016, at 1:12 PM, Simon Marchi sim...@simark.ca wrote: > On 2016-05-04 12:25, Michael Jeanson wrote: >> Some packaging system like dpkg-source in native mode >> used by our daily build system will filter out files >> considered unclean prior to the build. Thi

[lttng-dev] [PATCH lttng-modules] Fix: mm_page_alloc_extfrag instrumentation for kernel 3.16.35

2016-05-05 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/kmem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumentation/events/lttng-module/kmem.h b/instrumentation/events/lttng-module/kmem.h index 9ee3aa2..ad7bf77 100644 --- a/instrumentation/events/lttng-module

[lttng-dev] [PATCH lttng-modules stable-2.6 2/2] Fix: Ubuntu kernel range for mm_page_alloc_extfrag

2016-05-05 Thread Michael Jeanson
Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/kmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/kmem.h b/instrumentation/events/lttng-module/kmem.h index 171fcb9..0115afe

[lttng-dev] [PATCH lttng-modules stable-2.6 0/2] Fix Ubuntu kernels

2016-05-05 Thread Michael Jeanson
Here are 2 patches backported from master to stable-2.6 to fix the build on Ubuntu kernels. Mathieu Desnoyers (1): Fix: update sched instrumentation for kernel 4.4.0 Michael Jeanson (1): Fix: Ubuntu kernel range for mm_page_alloc_extfrag instrumentation/events/lttng-module/kmem.h | 2

  1   2   3   4   5   6   >