]> sourceware.org Git - systemtap.git/commitdiff
runtime: linux 5.14 compat: <linux/panic_notifier.h>
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 13 Jul 2021 23:34:50 +0000 (19:34 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 13 Jul 2021 23:34:50 +0000 (19:34 -0400)
Linux commit f39650de687e3 moved some kernel decls around.

buildrun.cxx
runtime/linux/autoconf-514-panic.c [new file with mode: 0644]
runtime/transport/transport.c

index 0c244db721c29e2b27f79345987adeec58e86258..a1332a687bb1d1f991ef0b11d434613ec0f2f6cd 100644 (file)
@@ -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 (file)
index 0000000..57b1a00
--- /dev/null
@@ -0,0 +1,3 @@
+#include <linux/panic_notifier.h>
+
+void* c = & panic_notifier_list;
index 32ef99da6667a368ed5a2b5c8f4cd88f9e4fde3f..9b9d6cbe249183a8c5a7593170ca3121becc7efe 100644 (file)
@@ -24,6 +24,9 @@
 #ifdef STAPCONF_LOCKDOWN_DEBUGFS
 #include <linux/security.h>
 #endif
+#ifdef STAPCONF_514_PANIC
+#include <linux/panic_notifier.h>
+#endif
 #include "../uidgid_compatibility.h"
 
 static int _stp_exit_flag = 0;
This page took 0.032674 seconds and 5 git commands to generate.