Skip to content

Commit 9855c46

Browse files
rnavShuah Khan (Samsung OSG)
authored andcommitted
selftests/ftrace: Add ppc support for kprobe args tests
Add powerpc support for the recently added kprobe args tests. Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
1 parent fa32156 commit 9855c46

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ arm*)
2424
ARG2=%r1
2525
OFFS=4
2626
;;
27+
ppc64*)
28+
ARG2=%r4
29+
OFFS=8
30+
;;
31+
ppc*)
32+
ARG2=%r4
33+
OFFS=4
34+
;;
2735
*)
2836
echo "Please implement other architecture here"
2937
exit_untested

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_syntax.tc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ arm*)
3434
GOODREG=%r0
3535
BADREG=%ax
3636
;;
37+
ppc*)
38+
GOODREG=%r3
39+
BADREG=%msr
40+
;;
41+
*)
42+
echo "Please implement other architecture here"
43+
exit_untested
3744
esac
3845

3946
test_goodarg() # Good-args

0 commit comments

Comments
 (0)