summaryrefslogtreecommitdiff
path: root/SOURCE
diff options
context:
space:
mode:
authorWen Yang <[email protected]>2021-10-22 00:13:55 +0800
committerBaoyou Xie <[email protected]>2021-10-22 00:15:26 +0800
commit0677dfab19d539b23aebd118beb2f7fd01872ed2 (patch)
treeed3aeff8543cc37d20c9d5609255feddcf8da905 /SOURCE
parentd82e7b89061d3fa297e37a927c036bda1371679f (diff)
diagnose-tools: 适配4.19内核
Diffstat (limited to 'SOURCE')
-rw-r--r--SOURCE/module/pub/stack.c2
-rw-r--r--SOURCE/module/pub/trace_point.c2
-rwxr-xr-xSOURCE/module/symbol.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/SOURCE/module/pub/stack.c b/SOURCE/module/pub/stack.c
index 3aea59a..98cdfc6 100644
--- a/SOURCE/module/pub/stack.c
+++ b/SOURCE/module/pub/stack.c
@@ -44,7 +44,7 @@
#include "pub/trace_file.h"
#include "pub/stack.h"
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,19,0)
#include <asm/msr.h>
#endif
diff --git a/SOURCE/module/pub/trace_point.c b/SOURCE/module/pub/trace_point.c
index 4d2e3c6..a87a060 100644
--- a/SOURCE/module/pub/trace_point.c
+++ b/SOURCE/module/pub/trace_point.c
@@ -155,7 +155,7 @@ static void probe_tracepoint(struct tracepoint *tp, void *priv)
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)
void orig_for_each_tracepoint_range(struct tracepoint * const *begin,
struct tracepoint * const *end,
void (*fct)(struct tracepoint *tp, void *priv),
diff --git a/SOURCE/module/symbol.c b/SOURCE/module/symbol.c
index a566c1f..7e929e4 100755
--- a/SOURCE/module/symbol.c
+++ b/SOURCE/module/symbol.c
@@ -132,9 +132,9 @@ static int lookup_syms(void)
LOOKUP_SYMS(stack_trace_save_user);
#endif
#else
- LOOKUP_SYMS(save_stack_trace_user);
-#ifdef CONFIG_USER_STACKTRACE_SUPPORT
LOOKUP_SYMS(save_stack_trace_tsk);
+#ifdef CONFIG_USER_STACKTRACE_SUPPORT
+ LOOKUP_SYMS(save_stack_trace_user);
#endif
#endif
#else