Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Acked-by: Jean Pihet <jean.pihet@linaro.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jean Pihet <jean.pihet@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1389098853-14466-5-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
12 lines
352 B
Makefile
12 lines
352 B
Makefile
ifndef NO_DWARF
|
|
PERF_HAVE_DWARF_REGS := 1
|
|
LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o
|
|
endif
|
|
ifndef NO_LIBUNWIND
|
|
LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/unwind.o
|
|
LIB_OBJS += $(OUTPUT)arch/$(ARCH)/tests/regs_load.o
|
|
endif
|
|
LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/header.o
|
|
LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/tsc.o
|
|
LIB_H += arch/$(ARCH)/util/tsc.h
|