You need to sign in or sign up before continuing.
提交 e7bb66f7 编写于 作者: J Jianlin Lv 提交者: Steven Rostedt (Google)

tracepoint: Allow livepatch module add trace event

In the case of keeping the system running, the preferred method for
tracing the kernel is dynamic tracing (kprobe), but the drawback of
this method is that events are lost, especially when tracing packages
in the network stack.

Livepatching provides a potential solution, which is to reimplement the
function you want to replace and insert a static tracepoint.
In such a way, custom stable static tracepoints can be expanded without
rebooting the system.

Link: https://lkml.kernel.org/r/20221102160236.11696-1-iecedge@gmail.comSigned-off-by: NJianlin Lv <iecedge@gmail.com>
Signed-off-by: NSteven Rostedt (Google) <rostedt@goodmis.org>
上级 2455f0e1
...@@ -571,8 +571,8 @@ static void for_each_tracepoint_range( ...@@ -571,8 +571,8 @@ static void for_each_tracepoint_range(
bool trace_module_has_bad_taint(struct module *mod) bool trace_module_has_bad_taint(struct module *mod)
{ {
return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) | return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) |
(1 << TAINT_UNSIGNED_MODULE) | (1 << TAINT_UNSIGNED_MODULE) | (1 << TAINT_TEST) |
(1 << TAINT_TEST)); (1 << TAINT_LIVEPATCH));
} }
static BLOCKING_NOTIFIER_HEAD(tracepoint_notify_list); static BLOCKING_NOTIFIER_HEAD(tracepoint_notify_list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册