All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add perf debug dir locking
@ 2015-05-14  7:28 Milos Vyletel
  2015-05-14  7:28 ` [PATCH 1/2] perf/tools: add read/write buildid dir locks Milos Vyletel
  2015-05-14  7:28 ` [PATCH 2/2] perf/tools: put new buildid locks to use Milos Vyletel
  0 siblings, 2 replies; 12+ messages in thread
From: Milos Vyletel @ 2015-05-14  7:28 UTC (permalink / raw)
  To: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo, Masami Hiramatsu, Namhyung Kim,
	Milos Vyletel, Jiri Olsa, He Kuang, Adrian Hunter,
	open list:PERFORMANCE EVENT...

Hi,

this series is follow up on my last submission where Jirka mentioned it would
be nice to have some locking around .debug dir operations.

https://lkml.org/lkml/2015/3/20/126

Following two patches add such functionality by utilizing flock. Since flock
supports both shared(read) and exclusive(write) locks both variants are being
added so that we can use multiple readers while only one writer.

Having said that any comments/suggestions on the code are welcome.

I did some basic testing. Mostly manual tool testing as well as the recreator
from above mentioned URL. I do not expect any functional change however more
testing is welcome.

Milos

Milos Vyletel (2):
  perf/tools: add read/write buildid dir locks
  perf/tools: put new buildid locks to use

 tools/perf/builtin-buildid-cache.c | 12 +++++
 tools/perf/util/build-id.c         | 97 ++++++++++++++++++++++++++++++++++----
 tools/perf/util/build-id.h         |  5 ++
 3 files changed, 106 insertions(+), 8 deletions(-)

-- 
2.4.0


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

end of thread, other threads:[~2015-06-03 11:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-14  7:28 [PATCH 0/2] Add perf debug dir locking Milos Vyletel
2015-05-14  7:28 ` [PATCH 1/2] perf/tools: add read/write buildid dir locks Milos Vyletel
2015-05-14  7:28 ` [PATCH 2/2] perf/tools: put new buildid locks to use Milos Vyletel
2015-05-14 10:40   ` Ingo Molnar
2015-05-14 11:38     ` Jiri Olsa
2015-05-14 15:44       ` Milos Vyletel
2015-05-14 17:38         ` Ingo Molnar
2015-05-14 17:38       ` Ingo Molnar
2015-05-20  7:27         ` Milos Vyletel
2015-06-03 11:13         ` Milos Vyletel
2015-06-03 11:21           ` Ingo Molnar
2015-06-03 11:27             ` Milos Vyletel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.