Skip to contentSkip to conversation

Create util/sort.[ch] and use it

PATCH In review John Kacur 2 participants 4 messages Sep 24, 2009 perf events

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 3/3 Create util/sort.[ch] and use it

Quoted 1 line

From e5b829d38cdbb0523abec9e61ba1cb544567a3ea Mon 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
index b5f1953..0a9e5ae 100644
@@ -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
#2 lore raw

[tip:perf/core] perf tools: Create util/sort.and use it

In reply to 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 +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
index b5f1953..0a9e5ae 100644
@@ -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

#3 lore raw

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 +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]>

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!