selftests/ftrace: Add new test case which checks non unique symbol
authorFrancis Laniel <flaniel@linux.microsoft.com>
Fri, 20 Oct 2023 10:42:50 +0000 (13:42 +0300)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 20 Oct 2023 13:11:49 +0000 (22:11 +0900)
commit03b80ff8023adae6780e491f66e932df8165e3a0
tree11d1458c483eea77ea3c511b52c41ac0b37ab5fa
parentb022f0c7e404887a7c5229788fc99eff9f9a80d5
selftests/ftrace: Add new test case which checks non unique symbol

If name_show() is non unique, this test will try to install a kprobe on this
function which should fail returning EADDRNOTAVAIL.
On kernel where name_show() is not unique, this test is skipped.

Link: https://lore.kernel.org/all/20231020104250.9537-3-flaniel@linux.microsoft.com/
Cc: stable@vger.kernel.org
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc [new file with mode: 0644]