linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/ftrace: update kprobe syntax error test for ppc64le
@ 2024-11-01 19:19 Hari Bathini
  2024-11-01 20:59 ` Segher Boessenkool
  2024-11-03  4:57 ` Masami Hiramatsu
  0 siblings, 2 replies; 15+ messages in thread
From: Hari Bathini @ 2024-11-01 19:19 UTC (permalink / raw)
  To: Shuah Khan, linux-kselftest
  Cc: Steven Rostedt, Masami Hiramatsu, Michael Ellerman,
	Madhavan Srinivasan, Naveen N. Rao, lkml, linux-trace-kernel,
	linuxppc-dev

For ppc64le, depending on the kernel configuration used, offset 16
from function start address can also be considered function entry.
Update the test case to accommodate such configurations.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
---
 .../selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc
index a16c6a6f6055..c03b94cc5784 100644
--- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc
+++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc
@@ -111,7 +111,11 @@ check_error 'p vfs_read $arg* ^$arg*'		# DOUBLE_ARGS
 if !grep -q 'kernel return probes support:' README; then
 check_error 'r vfs_read ^$arg*'			# NOFENTRY_ARGS
 fi
+if [ "$(uname -m)" = "ppc64le" ]; then
+check_error 'p vfs_read+20 ^$arg*'		# NOFENTRY_ARGS
+else
 check_error 'p vfs_read+8 ^$arg*'		# NOFENTRY_ARGS
+fi
 check_error 'p vfs_read ^hoge'			# NO_BTFARG
 check_error 'p kfree ^$arg10'			# NO_BTFARG (exceed the number of parameters)
 check_error 'r kfree ^$retval'			# NO_RETVAL
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-11-06  6:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 19:19 [PATCH] selftests/ftrace: update kprobe syntax error test for ppc64le Hari Bathini
2024-11-01 20:59 ` Segher Boessenkool
2024-11-04  9:21   ` Hari Bathini
2024-11-04  9:44     ` Segher Boessenkool
2024-11-04 10:10       ` Hari Bathini
2024-11-04 10:36         ` Segher Boessenkool
2024-11-04 15:27           ` Steven Rostedt
2024-11-04 17:36           ` Hari Bathini
2024-11-05  8:20             ` Segher Boessenkool
2024-11-05  9:17               ` Masami Hiramatsu
2024-11-05 19:52                 ` Segher Boessenkool
2024-11-06  5:54                   ` Hari Bathini
2024-11-03  4:57 ` Masami Hiramatsu
2024-11-04  9:32   ` Hari Bathini
2024-11-05  8:37     ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).