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.

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

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

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

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

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

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

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

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

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

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.

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

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

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.

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)

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

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

2022-08-15 Thread Michael Jeanson via lttng-dev
On 2022-08-13 19 h 10, Elad Lahav via lttng-dev wrote: Hello, I have just downloaded and built the library for QNX/aarch64 and noticed that the code in compat-smp.h breaks the build. This file appears to be a (very) recent addition, from this commit: --- commit

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,

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

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

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"

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

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

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

2020-12-15 Thread Michael Jeanson via lttng-dev
Remove the configure time CONFIG_RCU_ARM_HAVE_DMB option and replace it by compile time detection based on the ARM ISA version. This makes sure we unconditionnaly use the DMB instruction only on ARMv7 where it's part of the baseline ISA. This will change the behavior on ARMv6 platform that

[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
We shouldn't force a specific target cpu for the compiler on ARMv7 but let the system or the user choose it. If some of our code depends on a specific target CPU features, it should be compile tested. Also remove the default optimisation level of O1, it's potentially a workaround to an early

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

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

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

2020-10-30 Thread Michael Jeanson via lttng-dev
The urcu-common library contains common code like the write-free queue and compat code, each urcu flavor library is dynamicly linked with it. Most but not all toolchains will automatically link an executable with a transitive depency of an explicitly linked library if said binary uses a symbol

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 version

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_. Honestly this is

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