tracepoint: Allow livepatch module add trace event
authorJianlin Lv <iecedge@gmail.com>
Wed, 2 Nov 2022 16:02:36 +0000 (16:02 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 18 Feb 2023 19:34:36 +0000 (14:34 -0500)
commite7bb66f79a7b19a47b3eff745ea9f7ba1ae76032
tree53d19c415d584471bf0686596a270cac22c2314f
parent2455f0e124d317dd08d337a7550a78a224d4ba41
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.com
Signed-off-by: Jianlin Lv <iecedge@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/tracepoint.c