Skip to content

Commit e7bb66f

Browse files
iecedgerostedt
authored andcommitted
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/[email protected] Signed-off-by: Jianlin Lv <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 2455f0e commit e7bb66f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/tracepoint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ static void for_each_tracepoint_range(
571571
bool trace_module_has_bad_taint(struct module *mod)
572572
{
573573
return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) |
574-
(1 << TAINT_UNSIGNED_MODULE) |
575-
(1 << TAINT_TEST));
574+
(1 << TAINT_UNSIGNED_MODULE) | (1 << TAINT_TEST) |
575+
(1 << TAINT_LIVEPATCH));
576576
}
577577

578578
static BLOCKING_NOTIFIER_HEAD(tracepoint_notify_list);

0 commit comments

Comments
 (0)