Re: [PATCH v4 2/2] perf tool: improves DSO long names lookup speed with rbtree

2014-09-29 Thread Waiman Long
On 09/29/2014 12:02 AM, Namhyung Kim wrote: On Fri, 26 Sep 2014 11:22:34 -0300, Arnaldo Carvalho de Melo wrote: Em Wed, Sep 24, 2014 at 11:45:40AM -0400, Waiman Long escreveu: + /* +* Find node with the matching name +*/ + while (*p) { + struct dso *thi

Re: [PATCH v4 2/2] perf tool: improves DSO long names lookup speed with rbtree

2014-09-28 Thread Namhyung Kim
On Fri, 26 Sep 2014 11:22:34 -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Sep 24, 2014 at 11:45:40AM -0400, Waiman Long escreveu: >> +/* >> + * Find node with the matching name >> + */ >> +while (*p) { >> +struct dso *this = rb_entry(*p, struct dso, rb_node); >> +

Re: [PATCH v4 2/2] perf tool: improves DSO long names lookup speed with rbtree

2014-09-26 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 24, 2014 at 11:45:40AM -0400, Waiman Long escreveu: > With workload that spawns and destroys many threads and processes, > it was found that perf-mem could took a long time to post-process > the perf data after the target workload had completed its operation. > The performance bottlenec