Re: Kernel tracing from inside a Docker container

2024-11-07 Thread Michael Jeanson via lttng-dev
On 2024-11-07 11:00, Dirk Eibach via lttng-dev wrote: > Hi, > > I guess I found it! The kernel module files have to be present under > /lib/modules inside the container, even when they are already loaded > on the host side. > After putting them there, everything works fine and I finally can > reco

[lttng-dev] LPC2024 Tracing / Perf Events Microconference CFP

2024-07-04 Thread Michael Jeanson via lttng-dev
Hi, As there is no Tracing Summit planned for this year, we are co-organizing the Tracing / Perf Events Microconference at the Linux Plumbers Conference on September 18-20 in Vienna. The CFP is open until July 12th, if you'd like to submit a topic, the details of the CFP are available at :

Re: [lttng-dev] [PATCH urcu] fix: handle EINTR correctly in get_cpu_mask_from_sysfs

2024-05-02 Thread Michael Jeanson via lttng-dev
On 2024-05-02 09:54, Mathieu Desnoyers wrote: On 2024-05-01 19:42, Benjamin Marzinski via lttng-dev wrote: If the read() in get_cpu_mask_from_sysfs() fails with EINTR, the code is supposed to retry, but the while loop condition has (bytes_read > 0), which is false when read() fails with EINTR. T

Re: [lttng-dev] Software Heritage archival notification for git.liburcu.org

2024-04-15 Thread Michael Jeanson via lttng-dev
On 2024-04-14 20:39, Paul Wise wrote: On Thu, 2024-04-11 at 13:45 -0400, Michael Jeanson wrote: I see no issues with this, thanks for the heads-up. PS: I note that git.liburcu.org and git.lttng.org seem to have identical contents. I wonder if SWH should be archiving just one of them or if we

Re: [lttng-dev] Software Heritage archival notification for git.liburcu.org

2024-04-11 Thread Michael Jeanson via lttng-dev
On 2024-04-10 22:37, Paul Wise via lttng-dev wrote: Hello liburcu developers, The mission of Software Heritage is to collect, preserve and share all the publicly available source code: https://www.softwareheritage.org We have received a request to add the forge hosted at the URL below to the li

Re: [lttng-dev] [PATCH] Compile fixes for RHEL 9.3 kernels

2024-02-06 Thread Michael Jeanson via lttng-dev
On 2024-01-26 12:18, Martin Hicks via lttng-dev wrote: I'm not sure when some of these changes were backported, but the unmodified lttng-modules compiles vs. 5.14.0-162.23.1 This disables the kmem and compaction modules. I don't believe getting these to compile will be easy, as the required st

Re: [lttng-dev] [PATCH v7 lttng-tools] tests: add check_skip_kernel_test to check root user and lttng kernel modules

2024-01-25 Thread Michael Jeanson via lttng-dev
On 2024-01-25 10:07, Olivier Dion via lttng-dev wrote: On Thu, 25 Jan 2024, Xiangyu Chen via lttng-dev wrote: [...] Add LTTNG_TOOLS_DISABLE_KERNEL_TESTS to skip the lttng kernel features test, this flag can be set via "make": Is there a reason for this to be passed as a make flags instead o

Re: [lttng-dev] Python lttngust module import error

2024-01-08 Thread Michael Jeanson via lttng-dev
On 2023-12-26 11:19, Lakshmi Deverkonda via lttng-dev wrote: Hi, I'm observing an issue recently wrt import of python3 lttng module. Following is the error and need your help to find out what is wrong. import lttngust Exception in thread system: Traceback (most recent call last):   File "/us

Re: [lttng-dev] Building the Babeltrace-Libary for Windows?

2023-11-07 Thread Michael Jeanson via lttng-dev
On 2023-11-06 02:43, Seidl, Aron wrote: Hi Michael, Thank you a lot for your answer! I think I can work with that. I set up the msys64 environment with all the packages that I need to build, except for glibc. I ran the script and as always does the build process fail because I can't install g

Re: [lttng-dev] Building the Babeltrace-Libary for Windows?

2023-11-03 Thread Michael Jeanson via lttng-dev
On 2023-11-03 07 h 48, Seidl, Aron via lttng-dev wrote: Hello guys, after it was finally possible to debug Babeltrace properly, I step onto a next problem. I apologize in advance, but I’m new to Linux development and even more to cross compiling. Is it even possible to compile libbabeltrac

Re: [lttng-dev] BabelTrace 1.5.8 Error

2023-10-10 Thread Michael Jeanson via lttng-dev
On 2023-10-10 17:33, Smet, Jonathan A. [US-US] via lttng-dev wrote: Hello, I found this email in the README of https://github.com/efficios/babeltrace/tree/stable-1.5 I have a question regarding the usage of BabelTrace using version 1.5

Re: [lttng-dev] [EXTERNAL] Re: Status of LTTng-scope and Lttng-analyses

2023-08-01 Thread Michael Jeanson via lttng-dev
On 2023-08-01 14:37, Cook, Layne via lttng-dev wrote: Thanks for the reply Mathieu. We are going to go with Trace Compass. Could I hit you with one more question? I've been unable to find an answer on the web. When I build lttng-modules using the sources and instructions from here

Re: [lttng-dev] Fwd: lttng issue

2023-07-12 Thread Michael Jeanson via lttng-dev
On 2023-07-12 09:24, Mathieu Desnoyers via lttng-dev wrote: On 7/10/23 13:28, Bala Gundeboina via lttng-dev wrote: Hi ,       i have copied the dependencies that i have installed on TDA4 evm board and i have copied  the dependency to the TI board and i getting below error , i found the were

Re: [lttng-dev] [PATCH lttng-modules 0/1] Introduce configure script to describe changes in linux kernel interface

2023-07-07 Thread Michael Jeanson via lttng-dev
On 2023-07-06 17:10, Roxana Nicolescu wrote: Hi, I gave 2 derivatives as an example, but in fact there are more than 10. We will end up with a bigger if condition that the actual function implementation. And this is also not a sustainable solution in case there are new derivatives coming afte

Re: [lttng-dev] [PATCH lttng-modules 0/1] Introduce configure script to describe changes in linux kernel interface

2023-07-04 Thread Michael Jeanson via lttng-dev
On 2023-07-03 14:28, Roxana Nicolescu via lttng-dev wrote: This script described the changes in the linux kernel interface that affect compatibility with lttng-modules. It is introduced for a specific usecase where commit d87a7b4c77a9: "jbd2: use the correct print format" broke the interface bet

Re: [lttng-dev] I'm still getting empty ust traces using tracef

2023-05-11 Thread Michael Jeanson via lttng-dev
On 2023-05-11 12:36, Brian Hutchinson via lttng-dev wrote: ... more background. I've always used ltt in the kernel so I don't have much experience with the user side of it and especially multi-threaded, multi-core so I'm probably missing some fundamental concepts that I need to understand. Rega

Re: [lttng-dev] Seeking Assistance on LTTng for Kubernetes Performance Research

2023-04-12 Thread Michael Jeanson via lttng-dev
On 2023-04-06 15:56, Benjamin Saint-Cyr via lttng-dev wrote: Dear LTTng Developers, I am currently conducting performance research on Kubernetes for my master's thesis and am using LTTng for data collection and Trace Compass for analysis. I have a couple of questions and concerns, and I would

Re: [lttng-dev] https://lists.lttng.org/pipermail/lttng-dev/2020-May/029631.html

2023-03-27 Thread Michael Jeanson via lttng-dev
On 2023-03-27 11:52, yashvardhan kukreti wrote:  62 #ifdef LTTNG_CONFIG_PPC64_ELF_ABI_V2  63         /* Substract 4 bytes to get what we originally want */  64         addr = (unsigned long)(((char *)probe.addr) - 4);  65 #elif defined*(LTTNG_*CONFIG_PPC64_ELF_ABI_V1)   << incorrect MACRO to

Re: [lttng-dev] LTTng bugs repository - pending administrator approval

2023-02-15 Thread Michael Jeanson via lttng-dev
On 2023-02-15 09:56, Rus, Sani via lttng-dev wrote: Hi, a couple of days ago I registered at LTTng bugs repository - https://bugs.lttng.org/ , but I still can not sign in. At the login I get the "Your account was created and is now pending administrator approval." mes

Re: [lttng-dev] LTTng and containers.

2022-10-12 Thread Michael Jeanson via lttng-dev
On 2022-10-10 17:12, Maksim Khmelevskiy via lttng-dev wrote: Hi, I would like to ask regarding the hot topic - container tracing. I've seen a youtube video , have read a message fro

Re: [lttng-dev] efficios MX problems? (was: urcu 7ca7fe9c03 + _LGPL_SOURCE regression?)

2022-08-22 Thread Michael Jeanson via lttng-dev
On 2022-08-20 15:13, Eric Wong via lttng-dev wrote: I'm not sure why b.barracudacentral.org doesn't like my MTA. I got something similar in my initial message to Simon but brushed it off thinking it was a fluke, but I just got this again with Mathieu in the recipient list, as well. dcvr.yhbt.net

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-16 Thread Michael Jeanson via lttng-dev
On 2022-08-15 13 h 52, Elad Lahav wrote: /bin/sh on QNX is (by default) ksh, not bash, so perhaps that's the issue. Shouldn't block you from submitting that change. +1 from me, if that matters ;-) --Elad I'll get this merged. Thanks, Michael ___

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Michael Jeanson via lttng-dev
On 2022-08-15 12 h 56, Elad Lahav wrote: That fixes the build, thanks. I see some errors coming out of "make check", though: ERROR: test_get_cpu_mask_from_sysfs - missing test plan ERROR: test_get_cpu_mask_from_sysfs - exited with status 1 --Elad I tested on Freebsd (as a non-linux target) a

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Michael Jeanson via lttng-dev
On 2022-08-15 10 h 04, Elad Lahav wrote: The problem is the use of d_type as a member of the dirent structure. POSIX does not define such a member. I can provide the necessary code for getting the file type in a readdir() loop on QNX, but it seems unnecessary given that there is no /sys file syst

Re: [lttng-dev] Change to CPU number detection breaks QNX compilation

2022-08-15 Thread Michael Jeanson via lttng-dev
5cfe81b7ddff9543d451746de9965cac58c67182 Author: Michael Jeanson Date: Wed Jul 27 10:44:00 2022 -0400 fix: sysconf(_SC_NPROCESSORS_CONF) can be less than max cpu id --- I started working around it, but it got a bit ugly. Is the change not a Linuxism? Does it make sense on other systems? If QNX is the exception then I

Re: [lttng-dev] [PATCH] compaction: make tracepoints condtional on CONFIG_COMPACTION

2022-08-10 Thread Michael Jeanson via lttng-dev
On 2022-08-03 15 h 23, Bruce Ashfield via lttng-dev wrote: Hi all, This was found during the update of the yocto project reference kernel to 5.19. Out of all the supported architectures, only mips failed during the build of lttng-modules. Specifically, it seems like the lack of CONFIG_COMPACTIO

Re: [lttng-dev] how to create a issue about userspace rcu

2022-03-25 Thread Michael Jeanson via lttng-dev
On 2022-03-24 23 h 15, yaowenbin via lttng-dev wrote: Hello, I open the urcu webpage: https://bugs.lttng.org/projects/urcu. But I can not find where to create a issue. I just only can read the issues. How to create one. Thanks. Hi, I activated your account on bugs.lttng.org, you can now login

Re: [lttng-dev] call trace while using lttng in petalinux 2019.2 (kernel 4.19)

2022-03-16 Thread Michael Jeanson via lttng-dev
On 2022-03-16 09:25, Mathieu Desnoyers via lttng-dev wrote: > An alternative to query the lttng-modules version, if you really cannot > install modinfo, would > be: > > strings /lib/modules/$(uname -r)/extra/lttng-tracer.ko | grep "^version=" Assuming a somewhat recent version of lttng-modules, t

Re: [lttng-dev] 2.13-rc2 fails to build with buildroot crosscompiler

2021-05-20 Thread Michael Jeanson via lttng-dev
On 2021-05-20 9:52 a.m., Norbert Lange via lttng-dev wrote: > Hello, > > many tests fail to build, apparently because transitive dependencies > are not found. > I managed to patch out building the test sub-directory, at which > points the errors are gone, > I dont know how to fix it with automake,

Re: [lttng-dev] [BUG lttng-modules] lttng-module compile failed with the v5.12 kernel

2021-03-29 Thread Michael Jeanson via lttng-dev
On 2021-03-29 02 h 34, Xu, Yanfei via lttng-dev wrote: Hi experts, I found a file named lttng-statedump-impl.c in lttng-module is always compiled failed. The file use some functions which were export from kernel. But the v5.12 kernel unexport them by 'commit bc359d03c7ec ("block: add a disk_ueve

Re: [lttng-dev] LTTng Support for Mount Namespace

2021-01-18 Thread Michael Jeanson via lttng-dev
On 2021-01-12 15 h 30, Mohammad Kavousi wrote: Before, I was installing using the ppa repository. Based on your instructions, I made lttng using the source code in a totally new environment, having the mount.h under '/lib/modules/$(uname -r)/build/fs'. I removed the "ifneq" and "endif" stateme

Re: [lttng-dev] LTTng Support for Mount Namespace

2021-01-12 Thread Michael Jeanson via lttng-dev
On 2021-01-12 12 h 29, Mohammad Kavousi wrote: Thanks again for your reply, To be specific, I did exactly this: - Install linux source code, then copy the mentioned file to the folder using: cp /usr/src/linux-headers-5.4.0-59/fs/mount.h /lib/modules/$(uname -r)/build The path to the header

Re: [lttng-dev] LTTng 2.12 modules from PPA fail to install

2021-01-12 Thread Michael Jeanson via lttng-dev
On 2021-01-08 14 h 13, Michael Jeanson via lttng-dev wrote: On 2021-01-07 15 h 54, Bernd Hufmann via lttng-dev wrote: Hi LTTng experts, On my Linux Ubuntu 18.04 machine (4.15.0-129-generic kernel) the installation of the LTTng kernel modules fail using the official PPA. I found a log file

Re: [lttng-dev] LTTng Support for Mount Namespace

2021-01-12 Thread Michael Jeanson via lttng-dev
On 2021-01-09 09 h 03, Mohammad Kavousi wrote: Michael, Thank you for your swift response. However, for the first part, I'm not sure what it means by "using" the full kernel source. How would I use it with lttng-modules? As for the quick hack part, I grabbed the kernel source and copied the

Re: [lttng-dev] LTTng 2.12 modules from PPA fail to install

2021-01-08 Thread Michael Jeanson via lttng-dev
On 2021-01-07 15 h 54, Bernd Hufmann via lttng-dev wrote: Hi LTTng experts, On my Linux Ubuntu 18.04 machine (4.15.0-129-generic kernel) the installation of the LTTng kernel modules fail using the official PPA. I found a log file lttng-modules-dkms.0.crash with some details on the installatio

Re: [lttng-dev] LTTng Support for Mount Namespace

2021-01-06 Thread Michael Jeanson via lttng-dev
On 2021-01-06 10 h 50, Mohammad Kavousi via lttng-dev wrote: Dear LTTng developers, Our group at Northwestern has been using your amazing tool for the purpose of provenance tracking on Linux-based systems and we are very fond of the performance and accuracy it provides. Our analysis shows th

[lttng-dev] [PATCH urcu 3/4] Use DMB only on ARMv7

2020-12-15 Thread Michael Jeanson via lttng-dev
that possibly have this instruction but it was probably already broken since we use the 'ISH' option which doesn't seem to be valid on this ISA. This will also allow sharing headers in a multi-arch environment and reduce the build system complexity. Signed-off-by: Michael Jeanson Cc: Jas

[lttng-dev] [PATCH urcu 4/4] Don't force a target and optimization level on ARMv7

2020-12-15 Thread Michael Jeanson via lttng-dev
o an early armv7 compiler performance problem and anyway most builds will have an optimisation level flag set in the CFLAGS which will override this one. Signed-off-by: Michael Jeanson Cc: Paul E. McKenney Change-Id: I1d1bb5cc0fa0be8f8b1d6a9ad7bf063809be1aef --- configure.ac | 4 1 file

[lttng-dev] [PATCH urcu 1/4] Cleanup: Move ARM specific code to urcu/arch/arm.h

2020-12-15 Thread Michael Jeanson via lttng-dev
Change-Id: I3e17308c5ae985789a2ac8361e9c9e958ff7d656 Signed-off-by: Michael Jeanson --- include/urcu/arch/arm.h | 13 + include/urcu/compiler.h | 13 - 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/urcu/arch/arm.h b/include/urcu/arch/arm.h index

[lttng-dev] [PATCH urcu 2/4] Blacklist GCC 4.4.0, 4.4.1 and 4.4.2 on ARM

2020-12-15 Thread Michael Jeanson via lttng-dev
GCC added __sync_synchronize() in 4.4.0 but it was broken on ARM until 4.4.3, see the GCC bug report for more details : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42263 Signed-off-by: Michael Jeanson Change-Id: I629e3c8b4baaccb34b2311e220f30d0ad8b69a19 --- include/urcu/arch/arm.h | 9

[lttng-dev] [PATCH urcu] fix: bump tests thread limit to 256

2020-12-09 Thread Michael Jeanson via lttng-dev
Machines with more than 128 CPUs are becomming more common, the proper fix here would be to dynamically allocate the array which we will do, but in the meantime bump the limit to 256 to fix the problem on a 160 CPUs ppc64el system where this was reported. Signed-off-by: Michael Jeanson Cc: Paul

Re: [lttng-dev] [EXTERNAL] Re: lttng 2.12 install

2020-11-24 Thread Michael Jeanson via lttng-dev
On 2020-11-24 16 h 02, Weber, John via lttng-dev wrote: Ok, it I get what you're saying then I am modifying make on the command line while running make? Still the same problem. I don't think it is using the gcc I am specifying as it continues to look in: /usr/src/kernels/3.10.0-1127.19.1.el7.x

[lttng-dev] [PATCH urcu] Add git-review config

2020-11-19 Thread Michael Jeanson via lttng-dev
Add .gitreview for contributors wishing to use gerrit for patch reviews. Signed-off-by: Michael Jeanson Change-Id: I7868b3fc3162246298f24bd90ac1a3bcf6083eb6 --- .gitreview | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 .gitreview diff --git a/.gitreview b/.gitreview new file

[lttng-dev] [PATCH urcu] cleanup: Improve wording of CONFIG_RCU_DEBUG description

2020-11-17 Thread Michael Jeanson via lttng-dev
Signed-off-by: Michael Jeanson --- configure.ac | 4 ++-- include/urcu/config.h.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b62f587..73ab19f 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ AH_TEMPLATE

[lttng-dev] [PATCH urcu] fix: explicitly include urcu/config.h in files using CONFIG_RCU_ defines

2020-11-17 Thread Michael Jeanson via lttng-dev
Signed-off-by: Michael Jeanson --- include/urcu/debug.h | 2 ++ include/urcu/uatomic/x86.h | 1 + include/urcu/urcu-qsbr.h | 2 ++ src/urcu-bp.c | 1 + src/urcu-utils.h | 2 ++ src/urcu.c | 1 + 6 files changed, 9 insertions(+) diff --git a/include

[lttng-dev] [PATCH urcu] fix: add -lurcu-common to pkg-config libs for each flavor

2020-10-30 Thread Michael Jeanson via lttng-dev
from the transitive dependency. Since this behavior is not present in all toolchains, add '-lurcu-common' to the 'Libs' field of each flavors pkg-config file so that executables using symbols from urcu-common can be reliably linked using pkg-config. Signed-off-by: Michael Jeans

Re: [lttng-dev] lttng-tool for configure for `liburcu` doesn't use PKG_CONFIG

2020-10-21 Thread Michael Jeanson via lttng-dev
On 2020-10-20 19 h 16, Applencourt, Thomas wrote: I just saw the fixe (https://bugs.lttng.org/projects/lttng-ust/repository/lttng-ust/revisions/ff1ee9bccaa84dd4b062387989c107eb1dafc136/diff

Re: [lttng-dev] lttng-tool for configure for `liburcu` doesn't use PKG_CONFIG

2020-10-20 Thread Michael Jeanson via lttng-dev
On 2020-10-20 11 h 01, Michael Jeanson via lttng-dev wrote: On 2020-10-19 18 h 22, Applencourt, Thomas via lttng-dev wrote: Hi, When having `lurcu-cds` in the PKG_CONFIG_PATH but not in the LD_LIBRARY or CPATH it's not picket up by the configure script. Regards, Thomas For which ve

Re: [lttng-dev] lttng-tool for configure for `liburcu` doesn't use PKG_CONFIG

2020-10-20 Thread Michael Jeanson via lttng-dev
On 2020-10-19 18 h 22, Applencourt, Thomas via lttng-dev wrote: Hi, When having `lurcu-cds` in the PKG_CONFIG_PATH but not in the LD_LIBRARY or CPATH it's not picket up by the configure script. Regards, Thomas For which version of babeltrace? From git or a release tarball? _

Re: [lttng-dev] [PATCH] Fix: tracepoint.h: define SDT_USE_VARIADIC in pkg-config CFLAGS

2020-06-29 Thread Michael Jeanson via lttng-dev
- On 29 Jun, 2020, at 12:26, Stefan Hajnoczi stefa...@redhat.com wrote: > On Fri, Jun 26, 2020 at 05:02:00PM -0400, Michael Jeanson wrote: >> I proposed a patch here[1] that addresses this problem in a generic way by >> duplicating the macro and namespacing it under LTTNG_. H

Re: [lttng-dev] [PATCH] Fix: tracepoint.h: define SDT_USE_VARIADIC in pkg-config CFLAGS

2020-06-26 Thread Michael Jeanson via lttng-dev
Hi Stefan, I proposed a patch here[1] that addresses this problem in a generic way by duplicating the macro and namespacing it under LTTNG_. Honestly this is more of an sdt bug, the STAP_PROBEV should be in it's own include guard outside of _SYS_SDT_H or in it's own header file but we have to work

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

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

[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

[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 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: 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] 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: 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: 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] 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-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-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 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-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 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-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

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-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

[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] 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-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-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-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] 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-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-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-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

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-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] 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 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

[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-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 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-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-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-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 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 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 urcu] Fix: typo CPPLAGS in examples Makefile

2019-04-22 Thread Michael Jeanson
Overriding CPPFLAGS throught the environment was ignored for the examples. Signed-off-by: Michael Jeanson --- doc/examples/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 3c3d152..edf00eb 100644 --- a/doc

[lttng-dev] [PATCH lttng-tools 5/5] Harmonize pprint macro across projects

2019-04-16 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- m4/pprint.m4 | 50 +- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/m4/pprint.m4 b/m4/pprint.m4 index c7024c34..a7cfd94c 100644 --- a/m4/pprint.m4 +++ b/m4/pprint.m4 @@ -2,6 +2,8 @@ # # Author

[lttng-dev] [PATCH lttng-tools 4/5] Update the ac_define_dir macro from the autoconf archive

2019-04-16 Thread Michael Jeanson
This macro was removed many years ago from the archive because it crosses the boundary between configure and make time variables. For the moment update it to the latest released version. Signed-off-by: Michael Jeanson --- configure.ac| 2 +- m4/ac_define_dir.m4 | 34

[lttng-dev] [PATCH lttng-tools 3/5] Harmonize rw_prog_cxx_works macro across projects

2019-04-16 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac| 2 +- m4/rw_prog_cxx_works.m4 | 69 - 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/configure.ac b/configure.ac index f95ccb7e..f0a4d975 100644 --- a/configure.ac +++ b

[lttng-dev] [PATCH lttng-tools 1/5] Update macros from the autoconf archive

2019-04-16 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- m4/ax_c___attribute__.m4 | 6 +- m4/ax_check_class.m4 | 75 +--- m4/ax_check_classpath.m4 | 6 +- m4/ax_check_link_flag.m4 | 31 +- m4/ax_check_rqrd_class.m4

[lttng-dev] [PATCH lttng-tools 2/5] Namespace check_sdt_works custom macro

2019-04-16 Thread Michael Jeanson
The ax_ prefix is for macros that are copied from the Autoconf archive project. Signed-off-by: Michael Jeanson --- configure.ac| 4 ++-- m4/ax_check_sdt_works.m4| 20 m4/lttng_check_sdt_works.m4 | 46 + 3 files changed

[lttng-dev] [PATCH urcu] Harmonize pprint macro across projects

2019-04-16 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- m4/pprint.m4 | 50 +- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/m4/pprint.m4 b/m4/pprint.m4 index c7024c3..a7cfd94 100644 --- a/m4/pprint.m4 +++ b/m4/pprint.m4 @@ -2,6 +2,8 @@ # # Author

[lttng-dev] [PATCH lttng-ust 2/2] Harmonize rw_prog_cxx_works macro across projects

2019-04-16 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- configure.ac| 2 +- m4/rw_prog_cxx_works.m4 | 26 -- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 3e443132..52fc3f68 100644 --- a/configure.ac +++ b/configure.ac @@ -55,7

[lttng-dev] [PATCH lttng-ust 1/2] Update macros from the autoconf archive

2019-04-16 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- m4/ax_c___attribute__.m4 | 6 ++-- m4/ax_check_class.m4 | 75 +++ m4/ax_check_classpath.m4 | 6 ++-- m4/ax_check_rqrd_class.m4 | 6 ++-- m4/ax_java_options.m4 | 4 +-- m4/ax_jni_include_dir.m4 | 57

  1   2   3   4   5   6   >