-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selftests/powerpc/ptrace: Update ptrace-perf watchpoint selftest
Now that ptrace and perf are no longer exclusive, update the test to exercise interesting interactions. An assembly file is used for the children to allow precise instruction choice and addresses, while avoiding any compiler quirks. Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230801011744.153973-7-bgray@linux.ibm.com
- Loading branch information
Benjamin Gray
authored and
Michael Ellerman
committed
Aug 16, 2023
1 parent
bd29813
commit 58709f6
Showing
3 changed files
with
368 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
|
||
#include <ppc-asm.h> | ||
|
||
.global same_watch_addr_load | ||
.global same_watch_addr_trap | ||
|
||
FUNC_START(same_watch_addr_child) | ||
nop | ||
same_watch_addr_load: | ||
ld 0,0(3) | ||
nop | ||
same_watch_addr_trap: | ||
trap | ||
blr | ||
FUNC_END(same_watch_addr_child) | ||
|
||
|
||
.global perf_then_ptrace_load1 | ||
.global perf_then_ptrace_load2 | ||
.global perf_then_ptrace_trap | ||
|
||
FUNC_START(perf_then_ptrace_child) | ||
nop | ||
perf_then_ptrace_load1: | ||
ld 0,0(3) | ||
perf_then_ptrace_load2: | ||
ld 0,0(4) | ||
nop | ||
perf_then_ptrace_trap: | ||
trap | ||
blr | ||
FUNC_END(perf_then_ptrace_child) |
Oops, something went wrong.