[lttng-dev] [PATCH lttng-modules 2/5] fix: mm/vmscan: drop may_writepage and classzone_idx from direct reclaim begin template (v5.2)

2019-05-21 Thread Michael Jeanson
igned-off-by: Michael Jeanson --- .../events/lttng-module/mm_vmscan.h | 37 ++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/mm_vmscan.h b/instrumentation/events/lttng-module/mm_vmscan.h index cc7a275..db4a906 100644

[lttng-dev] [PATCH lttng-modules 1/5] fix: timer/trace: Improve timer tracing (v5.2)

2019-05-21 Thread Michael Jeanson
value to the timer_expire_entry trace point, to be able to calculate the index the timer base is located at during collecting expired timers. Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/timer.h | 22 + 1 file changed, 22 insertions(+) dif

[lttng-dev] [PATCH lttng-modules 3/5] fix: mm/vmscan: simplify trace_reclaim_flags and trace_shrink_flags (v5.2)

2019-05-21 Thread Michael Jeanson
to avoid redundant code. Signed-off-by: Michael Jeanson --- .../events/lttng-module/mm_vmscan.h | 52 +-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/instrumentation/events/lttng-module/mm_vmscan.h b/instrumentation/events/lttng-module/mm_vmscan.h

[lttng-dev] [PATCH lttng-modules 4/5] fix: mm: move recent_rotated pages calculation to shrink_inactive_list() (v5.2)

2019-05-21 Thread Michael Jeanson
s an array. Previously we used nr_activate to account PGACTIVATE events, but now we account them into pgactivate variable (since they are about number of pages in general, not about sum of hpage_nr_pages). Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/mm_vm

[lttng-dev] [PATCH lttng-modules 5/5] fix: random: only read from /dev/random after its pool has received 128 bits (v5.2)

2019-05-21 Thread Michael Jeanson
rpose, nor do we use the entropy_total field any more. Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/random.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/instrumentation/events/lttng-module/random.h b/instrumentation/events/lttng-modul

[lttng-dev] [PATCH lttng-ust] Fix: get tid not pid in vtid context

2019-06-03 Thread Michael Jeanson
Looks like an over enthusiastic copy/paste error in commit 98357ffd0125c23387d42d4b706c56077392326d. Signed-off-by: Michael Jeanson --- liblttng-ust/lttng-context-vtid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust/lttng-context-vtid.c b/liblttng-ust/lttng

[lttng-dev] [PATCH lttng-ust] Fix: namespace our gettid wrapper

2019-06-03 Thread Michael Jeanson
Since glibc 2.30, a gettid wrapper was added that conflicts with our static declaration. Namespace our wrapper so there is no conflict, we'll add support for the glibc provided wrapper in a further commit. Signed-off-by: Michael Jeanson --- include/lttng/ust-tid.h

[lttng-dev] [PATCH lttng-tools] Fix: namespace our gettid wrapper

2019-06-03 Thread Michael Jeanson
Since glibc 2.30, a gettid wrapper was added that conflicts with our static declaration. Namespace our wrapper so there is no conflict, we'll add support for the glibc provided wrapper in a further commit. Signed-off-by: Michael Jeanson --- src/common/compat/tid.h | 12 +++- src/c

[lttng-dev] [PATCH urcu] Fix: SONAME bump to 6.1.0

2019-06-03 Thread Michael Jeanson
rop-in replacement, but programs using the new version may use APIs not present in the previous one. In other words, a program linking against the new version may fail with “unresolved symbols” if linking against the old version at runtime: set revision to 0, bump current and age. Signed-of

[lttng-dev] [PATCH lttng-modules v2] Fix: update sched prev_state instrumentation for upstream kernel

2019-09-16 Thread Michael Jeanson
-off-by: Michael Jeanson --- instrumentation/events/lttng-module/sched.h | 58 - 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/sched.h b/instrumentation/events/lttng-module/sched.h index 77d77b2..a845c5f 100644 --- a

Re: [lttng-dev] Test pid_ns in local build

2019-09-17 Thread Michael Jeanson
On 2019-09-17 4:03 a.m., Polzer, Franz wrote: > Hello, > > I wanted to give the pid_ns context tracing a try and built LTTng from > master, but I get the following error when applying this command: > > lttng add-context -k -t procname -t pid -t vpid -t tid -t vtid -t pid_ns > > Error: Unknown co

[lttng-dev] [PATCH lttng-modules] fix: btrfs: move basic block_group definitions to their own header (v5.4)

2019-09-30 Thread Michael Jeanson
commit aac0023c2106952538414254960c51dcf0dc39e9 Author: Josef Bacik Date: Thu Jun 20 15:37:44 2019 -0400 btrfs: move basic block_group definitions to their own header This is prep work for moving all of the block group cache code into its own file. Signed-off-by: Michael

Re: [lttng-dev] Statically compiling LTTNG

2019-10-03 Thread Michael Jeanson
On 2019-10-01 7:19 p.m., Eddie Kong via lttng-dev wrote: > Hello, > > Thank you for all the good work with LTTNG! We’d love to use LTTNG to do > analysis in our systems 😊 We are running with a very stripped down > version of linux (no package manager, a lot of basic functionalities > removed etc).

[lttng-dev] [PATCH lttng-tools] Fix typo 'Attemp' -> 'Attempt'

2019-10-18 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/common/trace-chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index afba60b38..20dbd0a5e 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -1269,7 +1269,7

[lttng-dev] [PATCH lttng-tools] Typo: occured -> occurred

2019-10-18 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- include/lttng/session.h | 2 +- src/bin/lttng-sessiond/cmd.c | 2 +- src/bin/lttng-sessiond/rotation-thread.c | 4 ++-- src/bin/lttng-sessiond/session.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a

[lttng-dev] [PATCH lttng-ust] fix: Add missing files to distribution

2019-10-21 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- Makefile.am | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 810761ca..73b51909 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,9 +34,18 @@ SUBDIRS += tests doc pkgconfigdir = $(libdir

[lttng-dev] [PATCH lttng-ust] fix: document proper liburcu version dependency

2019-10-21 Thread Michael Jeanson
--- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff491701..fc2cc6c0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ user space tracing helpers for any application. Prerequisites - -LTTng-UST depends on [liburcu](

[lttng-dev] [PATCH lttng-tools stable-2.11] fix: check for lttng-ust >= 2.11 at configure

2019-10-23 Thread Michael Jeanson
We don't support building lttng-tools against an older version of lttng-ust, make this check explicitly at configure. Signed-off-by: Michael Jeanson --- configure.ac | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 5c4073ef8..357e

[lttng-dev] [PATCH lttng-ust] Add pkgconfig support for liblttng-ust-ctl

2019-10-23 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- Makefile.am | 2 +- configure.ac| 1 + lttng-ust-ctl.pc.in | 12 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lttng-ust-ctl.pc.in diff --git a/Makefile.am b/Makefile.am index 73b51909..cc923c1d 100644

[lttng-dev] [PATCH lttng-ust] Set version to 2.12-pre

2019-10-23 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 580e0ee3..319cb401 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,10 @@ dnl Version infos m4_define([V_MAJOR], [2]) -m4_define

[lttng-dev] [PATCH lttng-tools] Use pkgconfig to detect and configure liblttng-ust

2019-10-24 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac | 25 +-- src/bin/lttng-consumerd/Makefile.am | 2 +- src/bin/lttng-sessiond/Makefile.am| 2 +- src/common/ust-consumer/Makefile.am | 2 +- tests/regression/tools

[lttng-dev] [PATCH lttng-tools] Replace libuuid with internal implementation

2019-10-24 Thread Michael Jeanson
with a minimal internal implementation that respects RFC4122. Signed-off-by: Michael Jeanson --- .gitignore | 1 + configure.ac | 42 src/bin/lttng-relayd/cmd-2-11.h | 2 +- src/bin/lttng-relayd/main.c

[lttng-dev] [PATCH lttng-tools] fix: Use DL_LIBS variable in ust multi-lib test

2019-10-24 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- tests/regression/ust/multi-lib/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/ust/multi-lib/Makefile.am b/tests/regression/ust/multi-lib/Makefile.am index 0ce46a7ff..52a1635c2 100644 --- a/tests/regression

Re: [lttng-dev] [PATCH lttng-ust] Docs: LTTNG-UST(3): missing references to some namespace man pages

2019-10-24 Thread Michael Jeanson
On 2019-10-24 3:08 p.m., Jérémie Galarneau wrote: > The LTTNG-UST(3) manual page is missing references to the mount, > network, ipc, and uts namespace man pages. > > Signed-off-by: Jérémie Galarneau > --- > doc/man/lttng-ust.3.txt | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-

[lttng-dev] [PATCH lttng-modules] Add missing include for kernels between 3.8 and 3.15

2019-10-28 Thread Michael Jeanson
This is required at least for: v3.13.x v3.11.x v3.9.x v3.8.x Signed-off-by: Michael Jeanson --- lttng-context-mnt-ns.c | 1 + lttng-context-net-ns.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lttng-context-mnt-ns.c b/lttng-context-mnt-ns.c index 98d5b8e..b5bb955 100644 --- a

[lttng-dev] [PATCH lttng-tools] fix: check for dtrace and sdt.h before enabling SDT uprobe tests

2019-10-31 Thread Michael Jeanson
onment variable. Signed-off-by: Michael Jeanson --- configure.ac | 37 +-- tests/utils/testapp/Makefile.am | 4 +- .../userspace-probe-sdt-binary/Makefile.am| 8 +++- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git

[lttng-dev] [PATCH lttng-tools] fix: Re-add link to urcu-bp for _LGPL_SOURCE tests

2019-11-05 Thread Michael Jeanson
Tests with tracepoints defined with _LGPL_SOURCE require to be explicitly linked against urcu-bp. Signed-off-by: Michael Jeanson --- tests/regression/ust/multi-session/Makefile.am | 2 +- tests/utils/testapp/gen-ust-events/Makefile.am | 2 +- tests/utils/testapp/gen-ust-nevents-str

[lttng-dev] [PATCH urcu] Require automake >= 1.12

2019-11-07 Thread Michael Jeanson
The test suite LOG_DRIVER statement requires that automake >= 1.12 be used during bootstrap. Signed-off-by: Michael Jeanson --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1d13ea3..df3fb7c 100644 --- a/configure.ac ++

[lttng-dev] [PATCH lttng-ust] Require automake >= 1.12

2019-11-07 Thread Michael Jeanson
The test suite LOG_DRIVER statement requires that automake >= 1.12 be used during bootstrap. Signed-off-by: Michael Jeanson --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 319cb401..001c4428 100644 --- a/configure.ac ++

[lttng-dev] [PATCH lttng-tools] Require automake >= 1.12

2019-11-07 Thread Michael Jeanson
The test suite LOG_DRIVER statement requires that automake >= 1.12 be used during bootstrap. Signed-off-by: Michael Jeanson --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d8ab1e0ac..10b338420 100644 --- a/configure.ac ++

[lttng-dev] [PATCH lttng-modules] Update .gitignore from upstream

2019-12-10 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- .gitignore | 110 +++-- 1 file changed, 89 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 38e1684..4af69a2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,30 +7,45 @@ # command after

[lttng-dev] [PATCH lttng-modules] fix: y2038: itimer: change implementation to timespec64 (v5.5)

2019-12-10 Thread Michael Jeanson
n work the same way, and to keep the range check working after the conversion. Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/timer.h | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/

[lttng-dev] [PATCH lttng-modules] fix: btrfs: tracepoints: constify all pointers (v5.5)

2019-12-10 Thread Michael Jeanson
o the rest. Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/btrfs.h | 39 +++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/instrumentation/events/lttng-module/btrfs.h b/instrumentation/events/lttng-module/btrfs.h index c548cf2..59b668c 1

[lttng-dev] [PATCH lttng-modules] fix: ext4: Reserve revoke credits for freed blocks (v5.5)

2019-12-10 Thread Michael Jeanson
the amount of blocks that need to be revoked when removing blocks from the inode due to truncate or hole punching and otherwise reserve just a small amount of revoke credits for each transaction to accommodate freeing of xattrs block or so. Signed-off-by: Michael Jeanson

[lttng-dev] [PATCH lttng-modules] fix: btrfs block group struct refactor (v5.5)

2019-12-10 Thread Michael Jeanson
re writing it to the tree. The item is still being used for flags and chunk_objectid, there's some duplication until the item is removed in following patches. Signed-off-by: Michael Jeanson --- instrumentation/events/lttng-module/btrfs.h | 125 +++- 1 file changed,

[lttng-dev] [PATCH lttng-modules stable-2.10] fix: missing 'lttng_fs_info_fsid' wrapper in btrfs backport

2019-12-11 Thread Michael Jeanson
The following backported patch was missing the use of the 'lttng_fs_info_fsid' wrapper to enable compatibility with upstream stable kernels. commit 065436fd07d58a9a17427ad386ffcc8d29e25a9d Author: Michael Jeanson Date: Mon Jun 18 14:53:18 2018 -0400 Fix: btrfs: use f

[lttng-dev] [PATCH lttng-modules] fix: function prototype in wrapper/mm.h

2019-12-17 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- wrapper/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/mm.h b/wrapper/mm.h index 672855b..405248a 100644 --- a/wrapper/mm.h +++ b/wrapper/mm.h @@ -62,7 +62,7 @@ void wrapper_set_current_oom_origin(void) } static inline

[lttng-dev] [PATCH lttng-modules] fix: use user ns wrapper code in new id trackers

2019-12-17 Thread Michael Jeanson
These wrappers are required to translate kuid on kernels prior to v3.5. Signed-off-by: Michael Jeanson --- probes/lttng-tracepoint-event-impl.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/probes/lttng-tracepoint-event-impl.h b/probes/lttng-tracepoint

Re: [lttng-dev] Fwd: [PATCH lttng-modules] Add UDP and ICMP packet header information to the tracepoint:

2019-12-17 Thread Michael Jeanson
On 2019-12-17 9:39 a.m., Mathieu Desnoyers wrote: > I was expecting review from Geneviève and Julien on this patch, but > never heard back from > them. > > Geneviève, Julien, Michael, can you review this patch please ? > > Thanks, > > Mathieu It builds on all the latest tags of the stable kerne

Re: [lttng-dev] liblttng-ust and lttng-tools fail to compile with -fno-common

2020-01-16 Thread Michael Jeanson
On 2020-01-16 10:26 a.m., Norbert Lange wrote: > Hello, > > The flag -fno-common will cause multiple duplicate symbols, gcc 10 > will use this as default, so it will only be a matter of time till you > get some more FTB reports ;) > > Norbert Thanks for the heads-up, I've submitted these patche

[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

  1   2   3   4   5   6   >