Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412746
| From | He Kuang <hekuang@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v9 12/14] perf tools: Introduce flag to separate local/remote unwind compilation |
| Date | 2016-06-03 05:40 +0200 |
| Message-ID | <rFO7L-6nc-21@gated-at.bofh.it> (permalink) |
| References | <rFO7L-6nc-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This is a preparation for including unwind-libunwind-local.c in other
files for remote libunwind.
Signed-off-by: He Kuang <hekuang@huawei.com>
---
tools/perf/util/unwind-libunwind-local.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/perf/util/unwind-libunwind-local.c b/tools/perf/util/unwind-libunwind-local.c
index 631b40d..01c2e86 100644
--- a/tools/perf/util/unwind-libunwind-local.c
+++ b/tools/perf/util/unwind-libunwind-local.c
@@ -22,8 +22,10 @@
#include <unistd.h>
#include <sys/mman.h>
#include <linux/list.h>
+#ifndef REMOTE_UNWIND_LIBUNWIND
#include <libunwind.h>
#include <libunwind-ptrace.h>
+#endif
#include "callchain.h"
#include "thread.h"
#include "session.h"
@@ -689,5 +691,7 @@ _unwind_libunwind_ops = {
.get_entries = _unwind__get_entries,
};
+#ifndef REMOTE_UNWIND_LIBUNWIND
struct unwind_libunwind_ops *
local_unwind_libunwind_ops = &_unwind_libunwind_ops;
+#endif
--
1.8.5.2
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v9 12/14] perf tools: Introduce flag to separate local/remote unwind compilation He Kuang <hekuang@huawei.com> - 2016-06-03 05:40 +0200 [tip:perf/core] perf unwind: Introduce flag to separate local/remote unwind compilation tip-bot for He Kuang <tipbot@zytor.com> - 2016-06-08 11:00 +0200
csiph-web