File tree Expand file tree Collapse file tree 13 files changed +45
-44
lines changed
tools/testing/selftests/powerpc Expand file tree Collapse file tree 13 files changed +45
-44
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ TEST_GEN_FILES := exec_target
4
4
5
5
TEST_FILES := settings
6
6
7
- CFLAGS += -O2
8
-
9
7
top_srcdir = ../../../../..
10
8
include ../../lib.mk
11
9
10
+ CFLAGS += -O2
11
+
12
12
$(TEST_GEN_PROGS ) : ../harness.c
13
13
14
14
$(OUTPUT ) /context_switch : ../utils.c
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
- # The loops are all 64-bit code
3
- CFLAGS += -m64
4
- CFLAGS += -I$(CURDIR )
5
- CFLAGS += -D SELFTEST
6
- CFLAGS += -maltivec
7
- CFLAGS += -mcpu=power4
8
-
9
- # Use our CFLAGS for the implicit .S rule & set the asm machine type
10
- ASFLAGS = $(CFLAGS ) -Wa,-mpower4
11
-
12
2
TEST_GEN_PROGS := copyuser_64_t0 copyuser_64_t1 copyuser_64_t2 \
13
3
copyuser_p7_t0 copyuser_p7_t1 \
14
4
memcpy_64_t0 memcpy_64_t1 memcpy_64_t2 \
@@ -21,6 +11,16 @@ EXTRA_SOURCES := validate.c ../harness.c stubs.S
21
11
top_srcdir = ../../../../..
22
12
include ../../lib.mk
23
13
14
+ # The loops are all 64-bit code
15
+ CFLAGS += -m64
16
+ CFLAGS += -I$(CURDIR )
17
+ CFLAGS += -D SELFTEST
18
+ CFLAGS += -maltivec
19
+ CFLAGS += -mcpu=power4
20
+
21
+ # Use our CFLAGS for the implicit .S rule & set the asm machine type
22
+ ASFLAGS = $(CFLAGS ) -Wa,-mpower4
23
+
24
24
$(OUTPUT ) /copyuser_64_t% : copyuser_64.S $(EXTRA_SOURCES )
25
25
$(CC ) $(CPPFLAGS ) $(CFLAGS ) \
26
26
-D COPY_LOOP=test___copy_tofrom_user_base \
Original file line number Diff line number Diff line change 1
- CFLAGS = -O3 -m64 -I./include -I../include
2
-
3
1
TEST_GEN_FILES := gzfht_test gunz_test
4
2
TEST_PROGS := nx-gzip-test.sh
5
3
6
4
include ../../lib.mk
7
5
6
+ CFLAGS = -O3 -m64 -I./include -I../include
7
+
8
8
$(TEST_GEN_FILES ) : gzip_vas.c ../utils.c
Original file line number Diff line number Diff line change @@ -4,16 +4,6 @@ include ../../../../../build/Build.include
4
4
noarg :
5
5
$(MAKE ) -C ../../
6
6
7
- # The EBB handler is 64-bit code and everything links against it
8
- CFLAGS += -m64
9
-
10
- TMPOUT = $(OUTPUT ) /TMPDIR/
11
- # Toolchains may build PIE by default which breaks the assembly
12
- no-pie-option := $(call try-run, echo 'int main() { return 0; }' | \
13
- $(CC ) -Werror $(KBUILD_CPPFLAGS ) $(CC_OPTION_CFLAGS ) -no-pie -x c - -o "$$TMP", -no-pie)
14
-
15
- LDFLAGS += $(no-pie-option )
16
-
17
7
TEST_GEN_PROGS := reg_access_test event_attributes_test cycles_test \
18
8
cycles_with_freeze_test pmc56_overflow_test \
19
9
ebb_vs_cpu_event_test cpu_event_vs_ebb_test \
@@ -29,6 +19,16 @@ TEST_GEN_PROGS := reg_access_test event_attributes_test cycles_test \
29
19
top_srcdir = ../../../../../..
30
20
include ../../../lib.mk
31
21
22
+ # The EBB handler is 64-bit code and everything links against it
23
+ CFLAGS += -m64
24
+
25
+ TMPOUT = $(OUTPUT ) /TMPDIR/
26
+ # Toolchains may build PIE by default which breaks the assembly
27
+ no-pie-option := $(call try-run, echo 'int main() { return 0; }' | \
28
+ $(CC ) -Werror $(KBUILD_CPPFLAGS ) $(CC_OPTION_CFLAGS ) -no-pie -x c - -o "$$TMP", -no-pie)
29
+
30
+ LDFLAGS += $(no-pie-option )
31
+
32
32
$(TEST_GEN_PROGS ) : ../../harness.c ../../utils.c ../event.c ../lib.c \
33
33
ebb.c ebb_handler.S trace.c busy_loop.S
34
34
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
- CFLAGS += -m64
3
-
4
2
TEST_GEN_PROGS := group_constraint_pmc56_test group_pmc56_exclude_constraints_test group_constraint_pmc_count_test \
5
3
group_constraint_repeat_test group_constraint_radix_scope_qual_test reserved_bits_mmcra_sample_elig_mode_test \
6
4
group_constraint_mmcra_sample_test invalid_event_code_test reserved_bits_mmcra_thresh_ctl_test \
@@ -12,4 +10,6 @@ TEST_GEN_PROGS := group_constraint_pmc56_test group_pmc56_exclude_constraints_te
12
10
top_srcdir = ../../../../../..
13
11
include ../../../lib.mk
14
12
13
+ CFLAGS += -m64
14
+
15
15
$(TEST_GEN_PROGS ) : ../../harness.c ../../utils.c ../event.c ../lib.c ../sampling_tests/misc.h ../sampling_tests/misc.c
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
- CFLAGS += -m64
3
-
4
2
TEST_GEN_PROGS := mmcr0_exceptionbits_test mmcr0_cc56run_test mmcr0_pmccext_test \
5
3
mmcr0_pmcjce_test mmcr0_fc56_pmc1ce_test mmcr0_fc56_pmc56_test \
6
4
mmcr1_comb_test mmcr2_l2l3_test mmcr2_fcs_fch_test \
@@ -12,4 +10,6 @@ TEST_GEN_PROGS := mmcr0_exceptionbits_test mmcr0_cc56run_test mmcr0_pmccext_test
12
10
top_srcdir = ../../../../../..
13
11
include ../../../lib.mk
14
12
13
+ CFLAGS += -m64
14
+
15
15
$(TEST_GEN_PROGS ) : ../../harness.c ../../utils.c ../event.c ../lib.c misc.c misc.h ../loop.S ../branch_loops.S
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
- CFLAGS += -I$(CURDIR )
3
-
4
2
TEST_GEN_PROGS := load_unaligned_zeropad
5
3
6
4
top_srcdir = ../../../../..
7
5
include ../../lib.mk
8
6
7
+ CFLAGS += -I$(CURDIR )
8
+
9
9
$(TEST_GEN_PROGS ) : ../harness.c
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ TEST_PROGS := mitigation-patching.sh
5
5
6
6
top_srcdir = ../../../../..
7
7
8
- CFLAGS += $(KHDR_INCLUDES )
9
-
10
8
include ../../lib.mk
11
9
10
+ CFLAGS += $(KHDR_INCLUDES )
11
+
12
12
$(TEST_GEN_PROGS ) : ../harness.c ../utils.c
13
13
14
14
$(OUTPUT ) /spectre_v2 : CFLAGS += -m64
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ TEST_GEN_PROGS := signal signal_tm sigfuz sigreturn_vdso sig_sc_double_restart
3
3
TEST_GEN_PROGS += sigreturn_kernel
4
4
TEST_GEN_PROGS += sigreturn_unaligned
5
5
6
- CFLAGS += -maltivec
7
6
$(OUTPUT ) /signal_tm : CFLAGS += -mhtm
8
7
$(OUTPUT ) /sigfuz : CFLAGS += -pthread -m64
9
8
@@ -12,4 +11,6 @@ TEST_FILES := settings
12
11
top_srcdir = ../../../../..
13
12
include ../../lib.mk
14
13
14
+ CFLAGS += -maltivec
15
+
15
16
$(TEST_GEN_PROGS ) : ../harness.c ../utils.c signal.S
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
- # The loops are all 64-bit code
3
- CFLAGS += -I$(CURDIR )
4
-
5
2
EXTRA_SOURCES := ../harness.c
6
3
7
4
build_32bit = $(shell if ($(CC ) $(CFLAGS ) -m32 -o /dev/null memcmp.c >/dev/null 2>&1) then echo "1"; fi)
@@ -27,9 +24,12 @@ $(OUTPUT)/strlen_32: CFLAGS += -m32
27
24
TEST_GEN_PROGS += strlen_32
28
25
endif
29
26
30
- ASFLAGS = $(CFLAGS )
31
-
32
27
top_srcdir = ../../../../..
33
28
include ../../lib.mk
34
29
30
+ # The loops are all 64-bit code
31
+ CFLAGS += -I$(CURDIR )
32
+
33
+ ASFLAGS = $(CFLAGS )
34
+
35
35
$(TEST_GEN_PROGS ) : $(EXTRA_SOURCES )
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0
2
2
TEST_GEN_PROGS := switch_endian_test
3
3
4
- ASFLAGS += -O2 -Wall -g -nostdlib -m64
5
-
6
4
EXTRA_CLEAN = $(OUTPUT ) /*.o $(OUTPUT ) /check-reversed.S
7
5
8
6
top_srcdir = ../../../../..
9
7
include ../../lib.mk
10
8
9
+ ASFLAGS += -O2 -Wall -g -nostdlib -m64
10
+
11
11
$(OUTPUT ) /switch_endian_test : ASFLAGS += -I $(OUTPUT )
12
12
$(OUTPUT ) /switch_endian_test : $(OUTPUT ) /check-reversed.S
13
13
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
TEST_GEN_PROGS := ipc_unmuxed rtas_filter
3
3
4
- CFLAGS += $(KHDR_INCLUDES )
5
-
6
4
top_srcdir = ../../../../..
7
5
include ../../lib.mk
8
6
7
+ CFLAGS += $(KHDR_INCLUDES )
8
+
9
9
$(TEST_GEN_PROGS ) : ../harness.c ../utils.c
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
TEST_GEN_PROGS := test-vphn
3
3
4
- CFLAGS += -m64 -I$(CURDIR )
5
-
6
4
top_srcdir = ../../../../..
7
5
include ../../lib.mk
8
6
7
+ CFLAGS += -m64 -I$(CURDIR )
8
+
9
9
$(TEST_GEN_PROGS ) : ../harness.c
10
10
You can’t perform that action at this time.
0 commit comments