lttng-modules:master

Last commit made on 2024-05-13
Get this branch:
git clone -b master https://git.launchpad.net/lttng-modules

Branch merges

Branch information

Name:
master
Repository:
lp:lttng-modules

Recent commits

92dd699... by Michael Jeanson <email address hidden>

fix: Add missing 'pselect6_time32' and 'ppoll_time32' syscall overrides

The instrumentation currently has overrides to the generated syscall
tracepoints of 'ppoll' and 'pselect6' to extract additional information
from the parameters.

On arm-32 and x86-32 these 2 syscalls were renamed to 'ppoll_time32' and
'pselect6_time32' and new syscalls using 64-bit time_t were introduced
with the old names. This results in missing overrides on these
architectures for the 32-bit variants that were renamed.

Add the '_time32' overrides to restore the previous behavior.

Change-Id: I81e3a3ddc3f3cea58d86edcdf4a1fc9b600637c2
Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>

d16e08f... by Mathieu Desnoyers

page alloc wrapper: Fix get_pfnblock_flags_mask prototype

The canary __canary__get_pfnblock_flags_mask has never done its job of
detecting changes to the prototype of get_pfnblock_flags_mask because
it was actually calling the wrapper, because the wrapper/page_alloc.h
header maps get_pfnblock_flags_mask to wrapper_get_pfnblock_flags_mask.

Unfortunately, this wrapper is included by page_alloc.c only _after_ the
linux/pageblock-flags.h header is included, which means the
get_pfnblock_flags_mask prototype does _not_ have the wrapper prefix,
which prevents it from being useful for any kind of type validation.

This has been detected by a compiler warning stating that
wrapper_get_pfnblock_flags_mask() does not have a prior declaration.

Move the wrapper/page_alloc.h include _before_ including
pageblock-flags.h. This ensures the declaration has the wrapper_ prefix,
and therefore the compiler compares the declaration with the definition
of wrapper_get_pfnblock_flags_mask within page_alloc.c. The canary
function can be removed because it is redundant with this type check.

With this proper type check in place, we notice the following two
changes upstream:

commit 535b81e209219 ("mm/page_alloc.c: remove unnecessary end_bitidx for [set|get]_pfnblock_flags_mask()")
introduced in v5.9 removes the end_bitidx argument.

commit ca891f41c4c79 ("mm: constify get_pfnblock_flags_mask and get_pfnblock_migratetype")
introduced in v5.14 adds a const qualifier to the struct page pointer.

Adapt the code to match the evolution of this prototype.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I51b7871edfbff0f74ba1cf4d0ad988eb8d642b4e

7562455... by Mathieu Desnoyers

lttng probe: include events-internal.h

Include events-internal.h for the declarations of lttng_logger_init and
lttng_logger_exit.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I14968060c309083f90a282f186f3c635f1ebfd8d

e0d3451... by Mathieu Desnoyers

uprobes: Remove dead code

lttng_uprobes_destroy_event_notifier_private is now unused. Remove it.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Ia995c60691f68090b6853b2deb0d265b1d4a047e

f88cb8f... by Mathieu Desnoyers

syscalls: Remove unused duplicated code

lttng_abi_syscall_list() was moved to src/lttng-abi.c within the 2.13
refactoring. Remove this unused copy.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Iabbab3b576e3d85bc5ac9831729a5786b5c5f224

0f7e730... by Mathieu Desnoyers

statedump: Add missing events-internal.h include

Include events-internal.h for the declaration of
lttng_statedump_start().

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Ieda391aa0d780113efe1d517d8bc5aedb2095a2c

cac5a77... by Mathieu Desnoyers

lttng-events: Remove dead code

Functions lttng_event_notifier_enabler_enable and
lttng_event_notifier_enabler_disable are unused since the 2.13
refactoring, remove them.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I18d0d483bf54cbc7d158413f27111271c68ac37d

435454a... by Mathieu Desnoyers

lttng-events: Add missing static

get_tracker() and lttng_metadata_printf() are only used within the
compile unit, mark them as static.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Ie454c85cc29a30d964922fcfe1f88f3fb91bbc8f

11a1e5f... by Mathieu Desnoyers

event notifier: Add missing static

Mark capture_sequence() static because it is only used within the
compile unit.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I003e5cf016fbf2f2df24f4550a6c285e020956d0

c88dc73... by Mathieu Desnoyers

context callstack: Add missing static

lttng_cs_event_fields() is only used within the compile unit, mark it
static.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I3435c6de411a0671de86ecdbcb3e1ea019d908e6