File tree Expand file tree Collapse file tree 6 files changed +20
-1
lines changed Expand file tree Collapse file tree 6 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1075,6 +1075,11 @@ ifndef NO_AUXTRACE
1075
1075
endif
1076
1076
endif
1077
1077
1078
+ ifdef EXTRA_TESTS
1079
+ $(call detected,CONFIG_EXTRA_TESTS)
1080
+ CFLAGS += -DHAVE_EXTRA_TESTS
1081
+ endif
1082
+
1078
1083
ifndef NO_JVMTI
1079
1084
ifneq (,$(wildcard /usr/sbin/update-java-alternatives))
1080
1085
JDIR=$(shell /usr/sbin/update-java-alternatives -l | head -1 | awk '{print $$3}')
Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ include ../scripts/utilities.mak
128
128
#
129
129
# Define BUILD_NONDISTRO to enable building an linking against libbfd and
130
130
# libiberty distribution license incompatible libraries.
131
+ #
132
+ # Define EXTRA_TESTS to enable building extra tests useful mainly to perf
133
+ # developers, such as:
134
+ # x86 instruction decoder - new instructions test
131
135
132
136
# As per kernel Makefile, avoid funny character set dependencies
133
137
unexport LC_ALL
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ struct test_suite;
6
6
7
7
/* Tests */
8
8
int test__rdpmc (struct test_suite * test , int subtest );
9
+ #ifdef HAVE_EXTRA_TESTS
9
10
int test__insn_x86 (struct test_suite * test , int subtest );
11
+ #endif
10
12
int test__intel_pt_pkt_decoder (struct test_suite * test , int subtest );
11
13
int test__intel_pt_hybrid_compat (struct test_suite * test , int subtest );
12
14
int test__bp_modify (struct test_suite * test , int subtest );
Original file line number Diff line number Diff line change @@ -4,5 +4,8 @@ perf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
4
4
perf-y += arch-tests.o
5
5
perf-y += sample-parsing.o
6
6
perf-y += hybrid.o
7
- perf-$(CONFIG_AUXTRACE) += insn-x86.o intel-pt-test.o
7
+ perf-$(CONFIG_AUXTRACE) += intel-pt-test.o
8
+ ifeq ($(CONFIG_EXTRA_TESTS),y)
9
+ perf-$(CONFIG_AUXTRACE) += insn-x86.o
10
+ endif
8
11
perf-$(CONFIG_X86_64) += bp-modify.o
Original file line number Diff line number Diff line change 4
4
#include "arch-tests.h"
5
5
6
6
#ifdef HAVE_AUXTRACE_SUPPORT
7
+ #ifdef HAVE_EXTRA_TESTS
7
8
DEFINE_SUITE ("x86 instruction decoder - new instructions" , insn_x86 );
9
+ #endif
8
10
9
11
static struct test_case intel_pt_tests [] = {
10
12
TEST_CASE ("Intel PT packet decoder" , intel_pt_pkt_decoder ),
@@ -37,7 +39,9 @@ struct test_suite *arch_tests[] = {
37
39
& suite__dwarf_unwind ,
38
40
#endif
39
41
#ifdef HAVE_AUXTRACE_SUPPORT
42
+ #ifdef HAVE_EXTRA_TESTS
40
43
& suite__insn_x86 ,
44
+ #endif
41
45
& suite__intel_pt ,
42
46
#endif
43
47
#if defined(__x86_64__ )
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ make_clean_all := clean all
69
69
make_python_perf_so := $(python_perf_so)
70
70
make_debug := DEBUG=1
71
71
make_nondistro := BUILD_NONDISTRO=1
72
+ make_extra_tests := EXTRA_TESTS=1
72
73
make_no_libperl := NO_LIBPERL=1
73
74
make_no_libpython := NO_LIBPYTHON=1
74
75
make_no_scripts := NO_LIBPYTHON=1 NO_LIBPERL=1
You can’t perform that action at this time.
0 commit comments