Create util/sort.[ch] and use it
PATCH 3/3 Create util/sort.[ch] and use it
Quoted 1 line
From
e5b829d38cdbb0523abec9e61ba1cb544567a3eaMon Sep 17 00:00:00 2001
From: John Kacur <[email protected]>
Date: Thu, 24 Sep 2009 17:36:56 +0200
Subject: [PATCH] Create util/sort.[ch]
Create util/sort.[ch] and move common functionality for builtin-report.c and builtin-annotate.c there, and make use of it.
--- tools/perf/Makefile | 2 + tools/perf/builtin-annotate.c | 211 +--------------------------- tools/perf/builtin-report.c | 307 +---------------------------------------- tools/perf/util/sort.c | 268 +++++++++++++++++++++++++++++++++++ tools/perf/util/sort.h | 93 +++++++++++++ 5 files changed, 373 insertions(+), 508 deletions(-) create mode 100644 tools/perf/util/sort.c create mode 100644 tools/perf/util/sort.h
tools/perf/Makefile +2 -0
@@ -339,6 +339,7 @@ LIB_H += util/symbol.h LIB_H += util/module.h LIB_H += util/color.h LIB_H += util/values.h +LIB_H += util/sort.h LIB_OBJS += util/abspath.o LIB_OBJS += util/alias.o
@@ -374,6 +375,7 @@ LIB_OBJS += util/trace-event-parse.o LIB_OBJS += util/trace-event-read.o LIB_OBJS += util/trace-event-info.o LIB_OBJS += util/svghelper.o +LIB_OBJS += util/sort.o BUILTIN_OBJS += builtin-annotate.o BUILTIN_OBJS += builtin-help.o
tools/perf/builtin-annotate.c +7 -204
231 lines not on this page · raw message
tools/perf/builtin-report.c +3 -304
339 lines not on this page · raw message
tools/perf/util/sort.c new file +268 -0
268 lines not on this page · raw message
tools/perf/util/sort.h new file +93 -0
93 lines not on this page · raw message
Signature · 1 line
1.6.0.6
[tip:perf/core] perf tools: Create util/sort.and use it
In reply to John KacurCommit-ID: dd68ada2d417e57b848822a1407b5317a54136c5 Gitweb: http://git.kernel.org/tip/dd68ada2d417e57b848822a1407b5317a54136c5 Author: John Kacur <[email protected]> AuthorDate: Thu, 24 Sep 2009 18:02:49 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 24 Sep 2009 21:27:52 +0200
perf tools: Create util/sort.and use it
Create util/sort.[ch] and move common functionality for builtin-report.c and builtin-annotate.c there, and make use of it.
LKML-Reference: <[email protected]>
--- tools/perf/Makefile | 2 + tools/perf/builtin-annotate.c | 211 +--------------------------- tools/perf/builtin-report.c | 307 +---------------------------------------- tools/perf/util/sort.c | 268 +++++++++++++++++++++++++++++++++++ tools/perf/util/sort.h | 93 +++++++++++++ 5 files changed, 373 insertions(+), 508 deletions(-)
tools/perf/Makefile +2 -0
@@ -339,6 +339,7 @@ LIB_H += util/symbol.h LIB_H += util/module.h LIB_H += util/color.h LIB_H += util/values.h +LIB_H += util/sort.h LIB_OBJS += util/abspath.o LIB_OBJS += util/alias.o
@@ -374,6 +375,7 @@ LIB_OBJS += util/trace-event-parse.o LIB_OBJS += util/trace-event-read.o LIB_OBJS += util/trace-event-info.o LIB_OBJS += util/svghelper.o +LIB_OBJS += util/sort.o BUILTIN_OBJS += builtin-annotate.o BUILTIN_OBJS += builtin-help.o
tools/perf/builtin-annotate.c +7 -204
231 lines not on this page · raw message
tools/perf/builtin-report.c +3 -304
339 lines not on this page · raw message
tools/perf/util/sort.c new file +268 -0
268 lines not on this page · raw message
tools/perf/util/sort.h new file +93 -0
93 lines not on this page · raw message
Re: [tip:perf/core] perf tools: Create util/sort.and use it
Quoted 17 lines · tip-bot for John Kacur
Commit-ID: dd68ada2d417e57b848822a1407b5317a54136c5 Gitweb: http://git.kernel.org/tip/dd68ada2d417e57b848822a1407b5317a54136c5 Author: John Kacur <[email protected]> AuthorDate: Thu, 24 Sep 2009 18:02:49 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 24 Sep 2009 21:27:52 +0200perf tools: Create util/sort.and use it
Create util/sort.[ch] and move common functionality for
builtin-report.candbuiltin-annotate.cthere, and make use of it.Signed-off-by John Kacur <[email protected]>LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
Quoted 7 lines
--- tools/perf/Makefile | 2 + tools/perf/builtin-annotate.c | 211 +--------------------------- tools/perf/builtin-report.c | 307 +---------------------------------------- tools/perf/util/sort.c | 268 +++++++++++++++++++++++++++++++++++ tools/perf/util/sort.h | 93 +++++++++++++ 5 files changed, 373 insertions(+), 508 deletions(-)
Thanks a lot for this cleanup!