summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/breakpoints/Makefile
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2016-11-14 19:32:46 +0530
committerWill Deacon <will.deacon@arm.com>2016-11-18 17:26:15 +0000
commitf43365ee17f8d22b1f887d2b26faa0837ca85138 (patch)
tree52c02382ec335df4ab0cbac7206f3919c754b106 /tools/testing/selftests/breakpoints/Makefile
parent0ddb8e0b784ba034f3096d5a54684d0d73155e2a (diff)
downloadblackbird-op-linux-f43365ee17f8d22b1f887d2b26faa0837ca85138.tar.gz
blackbird-op-linux-f43365ee17f8d22b1f887d2b26faa0837ca85138.zip
selftests: arm64: add test for unaligned/inexact watchpoint handling
ARM64 hardware expects 64bit aligned address for watchpoint invocation. However, it provides byte selection method to select any number of consecutive byte set within the range of 1-8. This patch adds support to test all such byte selection option for different memory write sizes. Patch also adds a test for handling the case when the cpu does not report an address which exactly matches one of the regions we have been watching (which is a situation permitted by the spec if an instruction accesses both watched and unwatched regions). The test was failing on a MSM8996pro before this patch series and is passing now. Signed-off-by: Pavel Labath <labath@google.com> Signed-off-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'tools/testing/selftests/breakpoints/Makefile')
-rw-r--r--tools/testing/selftests/breakpoints/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile
index 74e533fd4bc5..61b79e8df1f4 100644
--- a/tools/testing/selftests/breakpoints/Makefile
+++ b/tools/testing/selftests/breakpoints/Makefile
@@ -5,6 +5,9 @@ ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
ifeq ($(ARCH),x86)
TEST_PROGS := breakpoint_test
endif
+ifeq ($(ARCH),aarch64)
+TEST_PROGS := breakpoint_test_arm64
+endif
TEST_PROGS += step_after_suspend_test
@@ -13,4 +16,4 @@ all: $(TEST_PROGS)
include ../lib.mk
clean:
- rm -fr breakpoint_test step_after_suspend_test
+ rm -fr breakpoint_test breakpoint_test_arm64 step_after_suspend_test
OpenPOWER on IntegriCloud