lttng-modules:stable-2.13

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

Branch merges

Branch information

Name:
stable-2.13
Repository:
lp:lttng-modules

Recent commits

b813aed... by Mathieu Desnoyers

Version 2.13.13

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

86d39f4... by Mathieu Desnoyers

splice wrapper: Fix missing declaration

Include the splice wrapper header within the splice.c implementation to
prevent missing declaration warnings.

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

5b46505... 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

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

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

05d69af... 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

57e629f... 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

80dfce3... 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

4c673b5... 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

ae35b5b... by Mathieu Desnoyers

lttng-clock: Add missing lttng/events-internal.h include

Needed for lttng_clock_ref and lttng_clock_unref declarations.

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