diff options
| -rw-r--r-- | tools/build/Makefile.feature | 6 | ||||
| -rw-r--r-- | tools/build/feature/test-all.c | 5 | ||||
| -rw-r--r-- | tools/perf/Makefile.config | 9 |
3 files changed, 18 insertions, 2 deletions
diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index 61e46d54a67c..8d3864b061f3 100644 --- a/tools/build/Makefile.feature +++ b/tools/build/Makefile.feature | |||
| @@ -66,7 +66,8 @@ FEATURE_TESTS_BASIC := \ | |||
| 66 | sched_getcpu \ | 66 | sched_getcpu \ |
| 67 | sdt \ | 67 | sdt \ |
| 68 | setns \ | 68 | setns \ |
| 69 | libaio | 69 | libaio \ |
| 70 | disassembler-four-args | ||
| 70 | 71 | ||
| 71 | # FEATURE_TESTS_BASIC + FEATURE_TESTS_EXTRA is the complete list | 72 | # FEATURE_TESTS_BASIC + FEATURE_TESTS_EXTRA is the complete list |
| 72 | # of all feature tests | 73 | # of all feature tests |
| @@ -118,7 +119,8 @@ FEATURE_DISPLAY ?= \ | |||
| 118 | lzma \ | 119 | lzma \ |
| 119 | get_cpuid \ | 120 | get_cpuid \ |
| 120 | bpf \ | 121 | bpf \ |
| 121 | libaio | 122 | libaio \ |
| 123 | disassembler-four-args | ||
| 122 | 124 | ||
| 123 | # Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features. | 125 | # Set FEATURE_CHECK_(C|LD)FLAGS-all for all FEATURE_TESTS features. |
| 124 | # If in the future we need per-feature checks/flags for features not | 126 | # If in the future we need per-feature checks/flags for features not |
diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c index e903b86b742f..7853e6d91090 100644 --- a/tools/build/feature/test-all.c +++ b/tools/build/feature/test-all.c | |||
| @@ -178,6 +178,10 @@ | |||
| 178 | # include "test-reallocarray.c" | 178 | # include "test-reallocarray.c" |
| 179 | #undef main | 179 | #undef main |
| 180 | 180 | ||
| 181 | #define main main_test_disassembler_four_args | ||
| 182 | # include "test-disassembler-four-args.c" | ||
| 183 | #undef main | ||
| 184 | |||
| 181 | int main(int argc, char *argv[]) | 185 | int main(int argc, char *argv[]) |
| 182 | { | 186 | { |
| 183 | main_test_libpython(); | 187 | main_test_libpython(); |
| @@ -219,6 +223,7 @@ int main(int argc, char *argv[]) | |||
| 219 | main_test_setns(); | 223 | main_test_setns(); |
| 220 | main_test_libaio(); | 224 | main_test_libaio(); |
| 221 | main_test_reallocarray(); | 225 | main_test_reallocarray(); |
| 226 | main_test_disassembler_four_args(); | ||
| 222 | 227 | ||
| 223 | return 0; | 228 | return 0; |
| 224 | } | 229 | } |
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index df4ad45599ca..fe3f97e342fa 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config | |||
| @@ -227,6 +227,8 @@ FEATURE_CHECK_LDFLAGS-libpython-version := $(PYTHON_EMBED_LDOPTS) | |||
| 227 | 227 | ||
| 228 | FEATURE_CHECK_LDFLAGS-libaio = -lrt | 228 | FEATURE_CHECK_LDFLAGS-libaio = -lrt |
| 229 | 229 | ||
| 230 | FEATURE_CHECK_LDFLAGS-disassembler-four-args = -lbfd -lopcodes | ||
| 231 | |||
| 230 | CFLAGS += -fno-omit-frame-pointer | 232 | CFLAGS += -fno-omit-frame-pointer |
| 231 | CFLAGS += -ggdb3 | 233 | CFLAGS += -ggdb3 |
| 232 | CFLAGS += -funwind-tables | 234 | CFLAGS += -funwind-tables |
| @@ -725,11 +727,14 @@ else | |||
| 725 | 727 | ||
| 726 | ifeq ($(feature-libbfd-liberty), 1) | 728 | ifeq ($(feature-libbfd-liberty), 1) |
| 727 | EXTLIBS += -lbfd -lopcodes -liberty | 729 | EXTLIBS += -lbfd -lopcodes -liberty |
| 730 | FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -ldl | ||
| 728 | else | 731 | else |
| 729 | ifeq ($(feature-libbfd-liberty-z), 1) | 732 | ifeq ($(feature-libbfd-liberty-z), 1) |
| 730 | EXTLIBS += -lbfd -lopcodes -liberty -lz | 733 | EXTLIBS += -lbfd -lopcodes -liberty -lz |
| 734 | FEATURE_CHECK_LDFLAGS-disassembler-four-args += -liberty -lz -ldl | ||
| 731 | endif | 735 | endif |
| 732 | endif | 736 | endif |
| 737 | $(call feature_check,disassembler-four-args) | ||
| 733 | endif | 738 | endif |
| 734 | 739 | ||
| 735 | ifdef NO_DEMANGLE | 740 | ifdef NO_DEMANGLE |
| @@ -808,6 +813,10 @@ ifdef HAVE_KVM_STAT_SUPPORT | |||
| 808 | CFLAGS += -DHAVE_KVM_STAT_SUPPORT | 813 | CFLAGS += -DHAVE_KVM_STAT_SUPPORT |
| 809 | endif | 814 | endif |
| 810 | 815 | ||
| 816 | ifeq ($(feature-disassembler-four-args), 1) | ||
| 817 | CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE | ||
| 818 | endif | ||
| 819 | |||
| 811 | ifeq (${IS_64_BIT}, 1) | 820 | ifeq (${IS_64_BIT}, 1) |
| 812 | ifndef NO_PERF_READ_VDSO32 | 821 | ifndef NO_PERF_READ_VDSO32 |
| 813 | $(call feature_check,compile-32) | 822 | $(call feature_check,compile-32) |
