Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf build: Add build-test for debug-frame on arm/arm64

Debug-frame for remote platforms is not related to the host platform, so
we should test each platform separately.

Signed-off-by: He Kuang <hekuang@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ekaterina Tumanova <tumanova@linux.vnet.ibm.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1462866037-30382-5-git-send-email-hekuang@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

He Kuang and committed by
Arnaldo Carvalho de Melo
f9be7eef b1d96000

+42 -1
+3 -1
tools/build/Makefile.feature
··· 73 73 libbabeltrace \ 74 74 liberty \ 75 75 liberty-z \ 76 - libunwind-debug-frame 76 + libunwind-debug-frame \ 77 + libunwind-debug-frame-arm \ 78 + libunwind-debug-frame-aarch64 77 79 78 80 FEATURE_TESTS ?= $(FEATURE_TESTS_BASIC) 79 81
+7
tools/build/feature/Makefile
··· 31 31 test-libunwind-x86_64.bin \ 32 32 test-libunwind-arm.bin \ 33 33 test-libunwind-aarch64.bin \ 34 + test-libunwind-debug-frame-arm.bin \ 35 + test-libunwind-debug-frame-aarch64.bin \ 34 36 test-pthread-attr-setaffinity-np.bin \ 35 37 test-stackprotector-all.bin \ 36 38 test-timerfd.bin \ ··· 121 119 $(OUTPUT)test-libunwind-aarch64.bin: 122 120 $(BUILD) -lelf -lunwind-aarch64 123 121 122 + $(OUTPUT)test-libunwind-debug-frame-arm.bin: 123 + $(BUILD) -lelf -lunwind-arm 124 + 125 + $(OUTPUT)test-libunwind-debug-frame-aarch64.bin: 126 + $(BUILD) -lelf -lunwind-aarch64 124 127 125 128 $(OUTPUT)test-libaudit.bin: 126 129 $(BUILD) -laudit
+16
tools/build/feature/test-libunwind-debug-frame-aarch64.c
··· 1 + #include <libunwind-aarch64.h> 2 + #include <stdlib.h> 3 + 4 + extern int 5 + UNW_OBJ(dwarf_find_debug_frame) (int found, unw_dyn_info_t *di_debug, 6 + unw_word_t ip, unw_word_t segbase, 7 + const char *obj_name, unw_word_t start, 8 + unw_word_t end); 9 + 10 + #define dwarf_find_debug_frame UNW_OBJ(dwarf_find_debug_frame) 11 + 12 + int main(void) 13 + { 14 + dwarf_find_debug_frame(0, NULL, 0, 0, NULL, 0, 0); 15 + return 0; 16 + }
+16
tools/build/feature/test-libunwind-debug-frame-arm.c
··· 1 + #include <libunwind-arm.h> 2 + #include <stdlib.h> 3 + 4 + extern int 5 + UNW_OBJ(dwarf_find_debug_frame) (int found, unw_dyn_info_t *di_debug, 6 + unw_word_t ip, unw_word_t segbase, 7 + const char *obj_name, unw_word_t start, 8 + unw_word_t end); 9 + 10 + #define dwarf_find_debug_frame UNW_OBJ(dwarf_find_debug_frame) 11 + 12 + int main(void) 13 + { 14 + dwarf_find_debug_frame(0, NULL, 0, 0, NULL, 0, 0); 15 + return 0; 16 + }