Hi, Here is the 8th version of fprobe bugfix series. The previous version is here.
https://lore.kernel.org/all/177624771150.2407691.15764846647014540969.st...@mhiramat.tok.corp.google.com/ This version fixes 2 issues - fixes to check the return value of add_fprobe_hash() and break the fprobe node installing loop if insert_fprobe_node() is failed [2/8], and fixes to check fprobe_graph/ftrace_registered flags directly when registering ftrace_ops [6/8]. And this adds 2 new test cases for checking the fprobe events bahavior fixed by this series [7/8][8/8]. Thank you! Masami Hiramatsu (Google) (8): tracing/fprobe: Reject registration of a registered fprobe before init tracing/fprobe: Unregister fprobe even if memory allocation fails tracing/fprobe: Remove fprobe from hash in failure path tracing/fprobe: Avoid kcalloc() in rcu_read_lock section tracing/fprobe: Check the same type fprobe on table as the unregistered one tracing/fprobe: Fix to unregister ftrace_ops if it is empty on module unloading selftests/ftrace: Add a testcase for fprobe events on module selftests/ftrace: Add a testcase for multiple fprobe events kernel/trace/fprobe.c | 475 +++++++++++++------- .../test.d/dynevent/add_remove_fprobe_module.tc | 61 +++ .../test.d/dynevent/add_remove_multiple_fprobe.tc | 69 +++ 3 files changed, 448 insertions(+), 157 deletions(-) create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_module.tc create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_multiple_fprobe.tc base-commit: 4346be6577aaa04586167402ae87bbdbe32484a4 -- Masami Hiramatsu (Google) <[email protected]>
