Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1408458

[PATCH v6 07/11] perf tools: Export normalize_arch() function

From He Kuang <hekuang@huawei.com>
Newsgroups linux.kernel
Subject [PATCH v6 07/11] perf tools: Export normalize_arch() function
Date 2016-05-28 14:10 +0200
Message-ID <rDLe4-kx-67@gated-at.bofh.it> (permalink)
References <rDLe1-kx-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Export normalize_arch() function, so other part of perf can get
normalized form of arch string.

Signed-off-by: He Kuang <hekuang@huawei.com>
---
 tools/perf/arch/common.c | 2 +-
 tools/perf/arch/common.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c
index e83c8ce..fa090a9 100644
--- a/tools/perf/arch/common.c
+++ b/tools/perf/arch/common.c
@@ -102,7 +102,7 @@ static int lookup_triplets(const char *const *triplets, const char *name)
  * Return architecture name in a normalized form.
  * The conversion logic comes from the Makefile.
  */
-static const char *normalize_arch(char *arch)
+const char *normalize_arch(char *arch)
 {
 	if (!strcmp(arch, "x86_64"))
 		return "x86";
diff --git a/tools/perf/arch/common.h b/tools/perf/arch/common.h
index 7529cfb..6b01c73 100644
--- a/tools/perf/arch/common.h
+++ b/tools/perf/arch/common.h
@@ -6,5 +6,6 @@
 extern const char *objdump_path;
 
 int perf_env__lookup_objdump(struct perf_env *env);
+const char *normalize_arch(char *arch);
 
 #endif /* ARCH_PERF_COMMON_H */
-- 
1.8.5.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 00/11] Add support for remote unwind He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
  [PATCH v6 11/11] perf callchain: Support aarch64 cross-platform He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
  [PATCH v6 04/11] perf tools: Move unwind__prepare_access from thread_new into thread__insert_map He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
    Re: [PATCH v6 04/11] perf tools: Move unwind__prepare_access from  thread_new into thread__insert_map Jiri Olsa <jolsa@redhat.com> - 2016-05-30 11:00 +0200
  [PATCH v6 03/11] perf tools: Introducing struct unwind_libunwind_ops for local unwind He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
    Re: [PATCH v6 03/11] perf tools: Introducing struct  unwind_libunwind_ops for local unwind Jiri Olsa <jolsa@redhat.com> - 2016-05-30 11:00 +0200
  [PATCH v6 08/11] perf tools: Show warnings for unsupported cross-platform unwind He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
    Re: [PATCH v6 08/11] perf tools: Show warnings for unsupported  cross-platform unwind Jiri Olsa <jolsa@redhat.com> - 2016-05-30 11:00 +0200
  [PATCH v6 01/11] perf tools: Use LIBUNWIND_DIR for remote libunwind feature check He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
  [PATCH v6 06/11] perf tools: Extract local libunwind code out of unwind-libunwind.c He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
    Re: [PATCH v6 06/11] perf tools: Extract local libunwind code out of  unwind-libunwind.c "Wangnan (F)" <wangnan0@huawei.com> - 2016-05-28 14:20 +0200
      [PATCH v6 06/11 1 update 1/2] perf tools: Rename unwind-libunwind.c to unwind-libunwind-local.c He Kuang <hekuang@huawei.com> - 2016-05-30 05:30 +0200
        [PATCH v6 06/11 1 update 2/2] perf tools: Extract common API out of unwind-libunwind-local.c He Kuang <hekuang@huawei.com> - 2016-05-30 05:30 +0200
      Re: [PATCH v6 06/11] perf tools: Extract local libunwind code out of  unwind-libunwind.c Hekuang <hekuang@huawei.com> - 2016-05-30 05:30 +0200
  [PATCH v6 02/11] perf tools: Decouple thread->address_space on libunwind He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
  [PATCH v6 07/11] perf tools: Export normalize_arch() function He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200
  [PATCH v6 09/11] perf tools: Change fixed name of libunwind__arch_reg_id to macro He Kuang <hekuang@huawei.com> - 2016-05-28 14:10 +0200

csiph-web