From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932281AbbENH2z (ORCPT ); Thu, 14 May 2015 03:28:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbbENH2v (ORCPT ); Thu, 14 May 2015 03:28:51 -0400 From: Milos Vyletel To: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Masami Hiramatsu , Namhyung Kim , Milos Vyletel , Jiri Olsa , He Kuang , Adrian Hunter , linux-kernel@vger.kernel.org (open list:PERFORMANCE EVENT...) Subject: [PATCH 0/2] Add perf debug dir locking Date: Thu, 14 May 2015 09:28:09 +0200 Message-Id: <1431588493-1474-1-git-send-email-milos@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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