summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/ptrace/ptrace-perf-asm.S
blob: 9aa2e58f3189b9f51e2bba17c4d7a44a9b1b2c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)