Skip to contentSkip to conversation

perf top: Move display agnostic routines to util/top.[ch]

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 1, 2011 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  8c3e10eb1968877d6a1957b7e790c6ce01bd56fc
Gitweb:     http://git.kernel.org/tip/8c3e10eb1968877d6a1957b7e790c6ce01bd56fc
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 31 Jan 2011 14:50:39 -0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 31 Jan 2011 14:50:39 -0200

perf top: Move display agnostic routines to util/top.[ch]

Paving the way for a slang browser a la 'perf report --tui'.

Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/Makefile      |    2 +
 tools/perf/builtin-top.c |  482 +++++++++++++---------------------------------
 tools/perf/util/top.c    |  212 ++++++++++++++++++++
 tools/perf/util/top.h    |   67 +++++++
 4 files changed, 418 insertions(+), 345 deletions(-)
tools/perf/Makefile +2 -0
index 36ff73c..edc660e 100644
@@ -437,6 +437,7 @@ LIB_H += util/probe-finder.h
 LIB_H += util/probe-event.h
 LIB_H += util/pstack.h
 LIB_H += util/cpumap.h
+LIB_H += util/top.h
 LIB_H += $(ARCH_INCLUDE)
 
 LIB_OBJS += $(OUTPUT)util/abspath.o
@@ -464,6 +465,7 @@ LIB_OBJS += $(OUTPUT)util/strbuf.o
 LIB_OBJS += $(OUTPUT)util/string.o
 LIB_OBJS += $(OUTPUT)util/strlist.o
 LIB_OBJS += $(OUTPUT)util/strfilter.o
+LIB_OBJS += $(OUTPUT)util/top.o
 LIB_OBJS += $(OUTPUT)util/usage.o
 LIB_OBJS += $(OUTPUT)util/wrapper.o
 LIB_OBJS += $(OUTPUT)util/sigchain.o
tools/perf/builtin-top.c +137 -345

861 lines not on this page · raw message

tools/perf/util/top.c new file +212 -0

212 lines not on this page · raw message

tools/perf/util/top.h new file +67 -0

67 lines not on this page · raw message