Masami Hiramatsu (Google)
2fd3ef1b92
selftests/ftrace: Fix BTFARG testcase to check fprobe is enabled correctly
...
Since the dynevent/add_remove_btfarg.tc test case forgets to ensure that
fprobe is enabled for some structure field access tests which uses the
fprobe, it fails if CONFIG_FPROBE=n or CONFIG_FPROBE_EVENTS=n.
Fixes it to ensure the fprobe events are supported.
Fixes: d892d3d3d8 ("selftests/ftrace: Add BTF fields access testcases")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2024-05-08 16:49:14 -06:00
Masami Hiramatsu (Google)
d892d3d3d8
selftests/ftrace: Add BTF fields access testcases
...
Add test cases for accessing the data structure fields using BTF info.
This includes the field access from parameters and retval, and accessing
string information.
Link: https://lore.kernel.org/all/169272161265.160970.14048619786574971276.stgit@devnote2/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
Reviewed-by: Alan Maguire <alan.maguire@oracle.com >
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org >
2023-08-23 09:41:55 +09:00
Masami Hiramatsu (Google)
02ab7234fc
selftests/ftrace: Fix to check fprobe event eneblement
...
Fix to check the availability of fprobe and kprobes for
add_remove_btfarg.tc.
Only if both kprobe and fprobe are not supported, it should return
"unsupported".
Link: https://lore.kernel.org/all/169024904889.395371.17998733386857387118.stgit@devnote2/
Fixes: 4231f30fcc ("selftests/ftrace: Add BTF arguments test cases")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org >
2023-07-26 12:54:17 +09:00
Masami Hiramatsu (Google)
4231f30fcc
selftests/ftrace: Add BTF arguments test cases
...
Add test cases to check the BTF arguments correctly supported.
Link: https://lore.kernel.org/all/168507478292.913472.25631899274942311.stgit@mhiramat.roam.corp.google.com/
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
2023-06-06 21:39:56 +09:00