public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] perf tool: improves DSO long names search speed with RB tree
@ 2014-09-18 13:30 Waiman Long
  2014-09-18 13:30 ` [PATCH v3 1/2] " Waiman Long
  2014-09-18 13:30 ` [PATCH v3 2/2] perf tool: iterate DSOs with rbtree instead of list Waiman Long
  0 siblings, 2 replies; 5+ messages in thread
From: Waiman Long @ 2014-09-18 13:30 UTC (permalink / raw)
  To: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo
  Cc: linux-kernel, Scott J Norton, Douglas Hatch, Don Zickus,
	Jiri Olsa, Adrian Hunter, Waiman Long

v2->v3:
  - Move the rbtree linking operation from dso__set_long_name() to
    dsos__add(), where the list_add() operation was done.
  - Add a second patch to remove the linked list and iterates the
    DSO structures by going through them in the rbtree. This requires
    changes in quite a number of files, but it makes for neater code.
  - Rebased to the 3.17-rc5 kernel.

v1->v2:
 - Rename DSO longname RBtree find function to segregate its two
   different uses of searching and linking DSO into RB tree.

This patch set replaces the list that is linking the DSO structures
of the perf tool by rbtree sorted by its long name. This can
significantly speed up DSO processing when a large number of DSOs
are beining profiled.

Waiman Long (2):
  perf tool: improves DSO long names search speed with RB     tree
  perf tool: iterate DSOs with rbtree instead of list

 tools/perf/util/dso.c         |  118 +++++++++++++++++++++++++++++++++--------
 tools/perf/util/dso.h         |   25 ++++++---
 tools/perf/util/header.c      |   36 ++++++------
 tools/perf/util/machine.c     |   14 ++---
 tools/perf/util/machine.h     |    4 +-
 tools/perf/util/probe-event.c |    4 +-
 tools/perf/util/symbol-elf.c  |    2 +-
 7 files changed, 142 insertions(+), 61 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-24 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18 13:30 [PATCH v3 0/2] perf tool: improves DSO long names search speed with RB tree Waiman Long
2014-09-18 13:30 ` [PATCH v3 1/2] " Waiman Long
2014-09-18 15:10   ` Arnaldo Carvalho de Melo
2014-09-24 15:29     ` Waiman Long
2014-09-18 13:30 ` [PATCH v3 2/2] perf tool: iterate DSOs with rbtree instead of list Waiman Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox