Re: [PATCH 5/9] perf report: Don't be bothered with locking when adding hist entries

2013-05-17 Thread Jiri Olsa
On Tue, May 14, 2013 at 11:09:03AM +0900, Namhyung Kim wrote: > From: Namhyung Kim > > The perf report is single-threaded, so no need to grab a lock. > Although the fast path of pthread_mutex_[un]lock() is very fast, > there's ~3% gain by eliminating it when we have huge sample data. > > $ per

[PATCH 5/9] perf report: Don't be bothered with locking when adding hist entries

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim The perf report is single-threaded, so no need to grab a lock. Although the fast path of pthread_mutex_[un]lock() is very fast, there's ~3% gain by eliminating it when we have huge sample data. $ perf record -a -F 10 -o perf.data.bench -- perf bench sched all $ perf re