perf: sort command-list.txt by alphabet order
PATCH 1/3 perf: sort command-list.txt by alphabet order
--- tools/perf/command-list.txt | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
tools/perf/command-list.txt +7 -7
@@ -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
Signature · 1 line
1.7.2.5
PATCH 2/3 perf: correct a build error
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
--- tools/perf/util/hist.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/util/hist.h +2 -2
@@ -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
Signature · 1 line
1.7.2.5
Namhyung Kim
maintainerRe: [PATCH 2/3] perf: correct a build error
Hi liguang,
Quoted 5 lines · 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 hereit happened when no newt installed
Thanks for fixing this. Please see my other post on the same problem reported by Michael Ellerman.
Thanks,
Namhyung
Quoted 21 lines
Signed-off-by liguang <[email protected]>--- tools/perf/util/hist.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)tools/perf/util/hist.h +2
-2@@ -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
PATCH 3/3 perf: add dwarf regs map for mips
In reply to liguang--- 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
tools/perf/arch/mips/Makefile new file +4 -0
@@ -0,0 +1,4 @@ +ifndef NO_DWARF +PERF_HAVE_DWARF_REGS := 1 +LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o +endif
tools/perf/arch/mips/util/dwarf-regs.c new file +33 -0
@@ -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 ; +}
Signature · 1 line
1.7.2.5
ping ...
Quoted 34 lines · 在 2013-02-26二的 12:12 +0800,liguang写道:
Signed-off-by liguang <[email protected]>--- tools/perf/command-list.txt | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)tools/perf/command-list.txt +7
-7@@ -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
tip-bot for liguang
merge bot[tip:perf/core] perf tools: Sort command-list.txt alphabetically
In reply to liguangperf tools: Sort command-list.txt alphabetically
Commit-ID: 66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6 Gitweb: http://git.kernel.org/tip/66857b5a8bc61b0c5e7a9c96f02558ef6d4109c6 Author: liguang <[email protected]> AuthorDate: Tue, 26 Feb 2013 12:12:52 +0800 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Fri, 15 Mar 2013 13:05:59 -0300
perf tools: Sort command-list.txt alphabetically
--- tools/perf/command-list.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
tools/perf/command-list.txt +7 -7
@@ -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