* [PATCH 1/3] perf: sort command-list.txt by alphabet order
@ 2013-02-26 4:12 liguang
2013-02-26 4:12 ` [PATCH 2/3] perf: correct a build error liguang
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: liguang @ 2013-02-26 4:12 UTC (permalink / raw)
To: a.p.zijlstra, paulus, mingo, acme, namhyung, jolsa, penberg,
linux-kernel
Cc: liguang
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
tools/perf/command-list.txt | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt
index 3e86bbd..a28e31b 100644
--- a/tools/perf/command-list.txt
+++ b/tools/perf/command-list.txt
@@ -10,17 +10,17 @@ perf-buildid-list mainporcelain common
perf-diff mainporcelain common
perf-evlist mainporcelain common
perf-inject mainporcelain common
+perf-kmem mainporcelain common
+perf-kvm mainporcelain common
perf-list mainporcelain common
-perf-sched mainporcelain common
+perf-lock mainporcelain common
+perf-probe mainporcelain full
perf-record mainporcelain common
perf-report mainporcelain common
+perf-sched mainporcelain common
+perf-script mainporcelain common
perf-stat mainporcelain common
+perf-test mainporcelain common
perf-timechart mainporcelain common
perf-top mainporcelain common
perf-trace mainporcelain common
-perf-script mainporcelain common
-perf-probe mainporcelain full
-perf-kmem mainporcelain common
-perf-lock mainporcelain common
-perf-kvm mainporcelain common
-perf-test mainporcelain common
--
1.7.2.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] perf: correct a build error
2013-02-26 4:12 [PATCH 1/3] perf: sort command-list.txt by alphabet order liguang
@ 2013-02-26 4:12 ` liguang
2013-02-26 9:06 ` Namhyung Kim
2013-02-26 4:12 ` [PATCH 3/3] perf: add dwarf regs map for mips liguang
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: liguang @ 2013-02-26 4:12 UTC (permalink / raw)
To: a.p.zijlstra, paulus, mingo, acme, namhyung, jolsa, penberg,
linux-kernel
Cc: liguang
builtin-annotate.c: In function 'hists__find_annotations':
builtin-annotate.c:161:4: error: duplicate case value
builtin-annotate.c:154:4: error: previously used here
it happened when no newt installed
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
tools/perf/util/hist.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 3862468..b4436e9 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -208,8 +208,8 @@ static inline int script_browse(const char *script_opt __maybe_unused)
return 0;
}
-#define K_LEFT -1
-#define K_RIGHT -2
+#define K_LEFT -2
+#define K_RIGHT -3
#endif
#ifdef GTK2_SUPPORT
--
1.7.2.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] perf: add dwarf regs map for mips
2013-02-26 4:12 [PATCH 1/3] perf: sort command-list.txt by alphabet order liguang
2013-02-26 4:12 ` [PATCH 2/3] perf: correct a build error liguang
@ 2013-02-26 4:12 ` liguang
2013-03-01 0:37 ` [PATCH 1/3] perf: sort command-list.txt by alphabet order li guang
2013-03-21 10:52 ` [tip:perf/core] perf tools: Sort command-list.txt alphabetically tip-bot for liguang
3 siblings, 0 replies; 6+ messages in thread
From: liguang @ 2013-02-26 4:12 UTC (permalink / raw)
To: a.p.zijlstra, paulus, mingo, acme, namhyung, jolsa, penberg,
linux-kernel
Cc: liguang
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
tools/perf/arch/mips/Makefile | 4 +++
tools/perf/arch/mips/util/dwarf-regs.c | 33 ++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)
create mode 100644 tools/perf/arch/mips/Makefile
create mode 100644 tools/perf/arch/mips/util/dwarf-regs.c
diff --git a/tools/perf/arch/mips/Makefile b/tools/perf/arch/mips/Makefile
new file mode 100644
index 0000000..15130b5
--- /dev/null
+++ b/tools/perf/arch/mips/Makefile
@@ -0,0 +1,4 @@
+ifndef NO_DWARF
+PERF_HAVE_DWARF_REGS := 1
+LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o
+endif
diff --git a/tools/perf/arch/mips/util/dwarf-regs.c b/tools/perf/arch/mips/util/dwarf-regs.c
new file mode 100644
index 0000000..4871489
--- /dev/null
+++ b/tools/perf/arch/mips/util/dwarf-regs.c
@@ -0,0 +1,33 @@
+/*
+ * Mapping of DWARF debug register numbers into register names.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#include <libio.h>
+#include <dwarf-regs.h>
+
+#define MIPS_MAX_REGS 32
+
+const char *mips_regs_table[MIPS_MAX_REGS] = {
+ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
+ "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7",
+ "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
+ "t8", "t9", "k0", "k1", "gp", "sp", "fp", "ra",
+};
+
+/**
+ * get_arch_regstr() - lookup register name from it's DWARF register number
+ * @n: the DWARF register number
+ *
+ * get_arch_regstr() returns the name of the register in struct
+ * regdwarfnum_table from it's DWARF register number. If the register is not
+ * found in the table, this returns NULL;
+ */
+const char *get_arch_regstr(unsigned int n)
+{
+ return (n <= MIPS_MAX_REGS) ? mips_regs_table[n] : NULL;
+}
--
1.7.2.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/3] perf: correct a build error
2013-02-26 4:12 ` [PATCH 2/3] perf: correct a build error liguang
@ 2013-02-26 9:06 ` Namhyung Kim
0 siblings, 0 replies; 6+ messages in thread
From: Namhyung Kim @ 2013-02-26 9:06 UTC (permalink / raw)
To: liguang; +Cc: a.p.zijlstra, paulus, mingo, acme, jolsa, penberg, linux-kernel
Hi liguang,
On Tue, 26 Feb 2013 12:12:53 +0800, liguang wrote:
> builtin-annotate.c: In function 'hists__find_annotations':
> builtin-annotate.c:161:4: error: duplicate case value
> builtin-annotate.c:154:4: error: previously used here
>
> it happened when no newt installed
Thanks for fixing this. Please see my other post on the same problem
reported by Michael Ellerman.
Thanks,
Namhyung
>
> Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
> ---
> tools/perf/util/hist.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
> index 3862468..b4436e9 100644
> --- a/tools/perf/util/hist.h
> +++ b/tools/perf/util/hist.h
> @@ -208,8 +208,8 @@ static inline int script_browse(const char *script_opt __maybe_unused)
> return 0;
> }
>
> -#define K_LEFT -1
> -#define K_RIGHT -2
> +#define K_LEFT -2
> +#define K_RIGHT -3
> #endif
>
> #ifdef GTK2_SUPPORT
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] perf: sort command-list.txt by alphabet order
2013-02-26 4:12 [PATCH 1/3] perf: sort command-list.txt by alphabet order liguang
2013-02-26 4:12 ` [PATCH 2/3] perf: correct a build error liguang
2013-02-26 4:12 ` [PATCH 3/3] perf: add dwarf regs map for mips liguang
@ 2013-03-01 0:37 ` li guang
2013-03-21 10:52 ` [tip:perf/core] perf tools: Sort command-list.txt alphabetically tip-bot for liguang
3 siblings, 0 replies; 6+ messages in thread
From: li guang @ 2013-03-01 0:37 UTC (permalink / raw)
To: a.p.zijlstra; +Cc: paulus, mingo, acme, namhyung, jolsa, penberg, linux-kernel
ping ...
在 2013-02-26二的 12:12 +0800,liguang写道:
> Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
> ---
> tools/perf/command-list.txt | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt
> index 3e86bbd..a28e31b 100644
> --- a/tools/perf/command-list.txt
> +++ b/tools/perf/command-list.txt
> @@ -10,17 +10,17 @@ perf-buildid-list mainporcelain common
> perf-diff mainporcelain common
> perf-evlist mainporcelain common
> perf-inject mainporcelain common
> +perf-kmem mainporcelain common
> +perf-kvm mainporcelain common
> perf-list mainporcelain common
> -perf-sched mainporcelain common
> +perf-lock mainporcelain common
> +perf-probe mainporcelain full
> perf-record mainporcelain common
> perf-report mainporcelain common
> +perf-sched mainporcelain common
> +perf-script mainporcelain common
> perf-stat mainporcelain common
> +perf-test mainporcelain common
> perf-timechart mainporcelain common
> perf-top mainporcelain common
> perf-trace mainporcelain common
> -perf-script mainporcelain common
> -perf-probe mainporcelain full
> -perf-kmem mainporcelain common
> -perf-lock mainporcelain common
> -perf-kvm mainporcelain common
> -perf-test mainporcelain common
^ permalink raw reply [flat|nested] 6+ messages in thread
* [tip:perf/core] perf tools: Sort command-list.txt alphabetically
2013-02-26 4:12 [PATCH 1/3] perf: sort command-list.txt by alphabet order liguang
` (2 preceding siblings ...)
2013-03-01 0:37 ` [PATCH 1/3] perf: sort command-list.txt by alphabet order li guang
@ 2013-03-21 10:52 ` tip-bot for liguang
3 siblings, 0 replies; 6+ messages in thread
From: tip-bot for liguang @ 2013-03-21 10:52 UTC (permalink / raw)
To: linux-tip-commits
Cc: acme, linux-kernel, paulus, mingo, hpa, mingo, a.p.zijlstra,
penberg, namhyung, jolsa, lig.fnst, tglx
Commit-ID: 66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6
Gitweb: http://git.kernel.org/tip/66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6
Author: liguang <lig.fnst@cn.fujitsu.com>
AuthorDate: Tue, 26 Feb 2013 12:12:52 +0800
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 15 Mar 2013 13:05:59 -0300
perf tools: Sort command-list.txt alphabetically
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1361851974-25307-1-git-send-email-lig.fnst@cn.fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/command-list.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt
index 3e86bbd..a28e31b 100644
--- a/tools/perf/command-list.txt
+++ b/tools/perf/command-list.txt
@@ -10,17 +10,17 @@ perf-buildid-list mainporcelain common
perf-diff mainporcelain common
perf-evlist mainporcelain common
perf-inject mainporcelain common
+perf-kmem mainporcelain common
+perf-kvm mainporcelain common
perf-list mainporcelain common
-perf-sched mainporcelain common
+perf-lock mainporcelain common
+perf-probe mainporcelain full
perf-record mainporcelain common
perf-report mainporcelain common
+perf-sched mainporcelain common
+perf-script mainporcelain common
perf-stat mainporcelain common
+perf-test mainporcelain common
perf-timechart mainporcelain common
perf-top mainporcelain common
perf-trace mainporcelain common
-perf-script mainporcelain common
-perf-probe mainporcelain full
-perf-kmem mainporcelain common
-perf-lock mainporcelain common
-perf-kvm mainporcelain common
-perf-test mainporcelain common
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-03-21 10:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-26 4:12 [PATCH 1/3] perf: sort command-list.txt by alphabet order liguang
2013-02-26 4:12 ` [PATCH 2/3] perf: correct a build error liguang
2013-02-26 9:06 ` Namhyung Kim
2013-02-26 4:12 ` [PATCH 3/3] perf: add dwarf regs map for mips liguang
2013-03-01 0:37 ` [PATCH 1/3] perf: sort command-list.txt by alphabet order li guang
2013-03-21 10:52 ` [tip:perf/core] perf tools: Sort command-list.txt alphabetically tip-bot for liguang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.