Debian Patches

Status for systemtap/5.1-4

Patch Description Author Forwarded Bugs Origin Last update
debversion.diff make sure debian version is visible in e.g. "stap -V"=================================================================== Timo Juhani Lindfors <timo.lindfors@iki.fi> not-needed
suggest-readme.debian.diff suggest README.Debian if stap fails, many users don't know this even though they should=================================================================== Timo Juhani Lindfors <timo.lindfors@iki.fi> not-needed
dtrace-no-std-include-path.diff =================================================================== no
stap-prep.patch =================================================================== no
systemtap-ia64.patch =================================================================== no
symresolution-no-dangling.diff commit d11241bdd05bc4c745c8aef53a2725331e1a93b4

elaborate.cxx: gcc version compatibility hack

Suppress -Wdangling-pointer for a construct that appears valid, but
one particular GCC snapshot version complains about.

In constructor ‘symresolution_info::symresolution_info(systemtap_session&, bool)’,
inlined from ‘int semantic_pass_symbols(systemtap_session&)’ at ../systemtap/elaborate.cxx:1872:28:
../systemtap/elaborate.cxx:2659:21: error: storing the address of local variable ‘sym’ in ‘*s.systemtap_session::symbol_resolver’ [-Werror=dangling-pointer=]
2659 | s.symbol_resolver = this; // save resolver for early PR25841 function resolution
| ~~~~~~~~~~~~~~~~~~^~~~~~
../systemtap/elaborate.cxx: In function ‘int semantic_pass_symbols(systemtap_session&)’:
../systemtap/elaborate.cxx:1872:22: note: ‘sym’ declared here
1872 | symresolution_info sym (s);
| ^~~
../systemtap/elaborate.cxx:1870:43: note: ‘s’ declared here
1870 | semantic_pass_symbols (systemtap_session& s)
| ~~~~~~~~~~~~~~~~~~~^
cc1plus: all warnings being treated as errors

diff --git a/elaborate.cxx b/elaborate.cxx
index 8bf9e6c06..88505559b 100644
Frank Ch. Eigler <fche@redhat.com> no 2024-05-07
vmalloc-linux-6.10.patch [PATCH] Address changes in Linux 6.10 /include/linux/vmalloc.h
Upstream linux kernel git commit 88ae5fb755b0d contains a number of
changes in /include/linux/vmalloc.h that affect vmalloc, vmalloc_node,
and vzalloc_node definitions. These are no longer functions but
macros and cannot be found in the list of symbols exported by the
kernel. Support for vzalloc, vmalloc_node, and vzalloc_node has been
in kernels since Linux 2.6.37. Given that systemtap requires Linux
3.10 or newer there is no longer a need to check for the existence of
these functions or provide local versions of them.
William Cohen <wcohen@redhat.com> no 2024-06-04
stp_task_work-6.10.patch [PATCH] Make stp_task_work compatible with 6.11 kernels
Update systemtap runtime so that it works with kernel commit
68cbd415dd4b task_work:

s/task_work_cancel()/task_work_cancel_func()/
Martin Cermak <mcermak@redhat.com> no 2024-07-24
error-empty-body-debug-macros.patch commit da72d04303cfc3ba22b2bb58a26f8dc7868333eb

Avoid -Werror=empty-body errors from runtime/linux/debug.h macros

When attempting to run the testsuite the sanity.exp test fails
due to the following -Werror=empty-body errors:

/home/wcohen/systemtap_write/install/share/systemtap/runtime/transport/relay_v2.c: In function '__stp_relay_wakeup_timer':
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/debug.h:47:36: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
47 | #define dbug_trans(level, args...) ;
| ^
/home/wcohen/systemtap_write/install/share/systemtap/runtime/transport/relay_v2.c:195:17: note: in expansion of macro 'dbug_trans'
195 | dbug_trans(0, "relay_v2 wakeup timer expiry\n");
| ^~~~~~~~~~
/home/wcohen/systemtap_write/install/share/systemtap/runtime/transport/symbols.c: In function '_stp_set_stext':
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/debug.h:103:34: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
103 | #define dbug_sym(level, args...) ;
| ^
/home/wcohen/systemtap_write/install/share/systemtap/runtime/transport/symbols.c:44:17: note: in expansion of macro 'dbug_sym'
44 | dbug_sym(1, "found kernel _stext load address: 0x%lx\n",
| ^~~~~~~~

Changed the effectively empty macros in runtime/linux/debug.h to use
"do { } while (0)" to eliminate these errors.

diff --git a/runtime/linux/debug.h b/runtime/linux/debug.h
index d2ab9e8db..dfc834dbb 100644
William Cohen <wcohen@redhat.com> no 2024-06-03
old-style-declaration-stap-probes.patch commit de8aba9a414b497d98c489173b878058c4031b39

Avoid -Werror=old-style-declaration for stap_probes array in generated kernel modules

With newer linux kernels additional compilers checks are being done
and will get error messages like the following for the generated
module:

/tmp/stapuundLy/stap_2755fca707746de04395c85872aae4b8_1753_src.c:111:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]
111 | } static stap_probes[];
| ^
cc1: all warnings being treated as errors

Tweaked the code generation in translate.cxx to output the static
stap_probes array in a form that is agreeable to newer kernel builds.

===================================================================
William Cohen <wcohen@redhat.com> no 2024-06-03
debian-debug-system-map.patch diff --git a/session.cxx b/session.cxx
index 3a217de3e..545505195 100644
no

All known versions for source package 'systemtap'

Links