From: Frank Ch. Eigler Date: Tue, 13 Jul 2021 23:34:50 +0000 (-0400) Subject: runtime: linux 5.14 compat: X-Git-Tag: release-4.6~105 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=968173f7fb97675de94c8ca47e6b6898b1117a1d;p=systemtap.git runtime: linux 5.14 compat: Linux commit f39650de687e3 moved some kernel decls around. --- diff --git a/buildrun.cxx b/buildrun.cxx index 0c244db72..a1332a687 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -383,7 +383,8 @@ compile_pass (systemtap_session& s) output_exportconf(s, o2, "cpu_khz", "STAPCONF_CPU_KHZ"); output_exportconf(s, o2, "__module_text_address", "STAPCONF_MODULE_TEXT_ADDRESS"); output_exportconf(s, o2, "add_timer_on", "STAPCONF_ADD_TIMER_ON"); - + output_autoconf(s, o, cs, "autoconf-514-panic.c", "STAPCONF_514_PANIC", NULL); + output_dual_exportconf(s, o2, "probe_kernel_read", "probe_kernel_write", "STAPCONF_PROBE_KERNEL"); output_autoconf(s, o, cs, "autoconf-hw_breakpoint_context.c", "STAPCONF_HW_BREAKPOINT_CONTEXT", NULL); diff --git a/runtime/linux/autoconf-514-panic.c b/runtime/linux/autoconf-514-panic.c new file mode 100644 index 000000000..57b1a0026 --- /dev/null +++ b/runtime/linux/autoconf-514-panic.c @@ -0,0 +1,3 @@ +#include + +void* c = & panic_notifier_list; diff --git a/runtime/transport/transport.c b/runtime/transport/transport.c index 32ef99da6..9b9d6cbe2 100644 --- a/runtime/transport/transport.c +++ b/runtime/transport/transport.c @@ -24,6 +24,9 @@ #ifdef STAPCONF_LOCKDOWN_DEBUGFS #include #endif +#ifdef STAPCONF_514_PANIC +#include +#endif #include "../uidgid_compatibility.h" static int _stp_exit_flag = 0;