Commit da7446d3 authored by Kaitao Cheng's avatar Kaitao Cheng Committed by Wenyu Huang
Browse files

kernel/trace: Fix do not unregister tracepoints when register sched_migrate_task fail

stable inclusion
from stable-v4.19.297
commit 50f9ad60
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BAW8

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=50f9ad607ea891a9308e67b81f774c71736d109

--------------------------------

In the function, if register_trace_sched_migrate_task() returns error,
sched_switch/sched_wakeup_new/sched_wakeup won't unregister. That is
why fail_deprobe_sched_switch was added.

Link: http://lkml.kernel.org/r/20191231133530.2794-1-pilgrimtao@gmail.com



Cc: stable@vger.kernel.org
Fixes: 478142c3 ("tracing: do not grab lock in wakeup latency function tracing")
Signed-off-by: default avatarKaitao Cheng <pilgrimtao@gmail.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarWenyu Huang <huangwenyu4@huawei.com>
parent 713c5508
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment