Re: [PATCH RFC V4 1/6] perf tools: lock to protect namespaces and comm list

2017-10-02 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 02, 2017 at 07:14:10PM +, Liang, Kan escreveu: > > Em Fri, Sep 29, 2017 at 07:47:52AM -0700, kan.li...@intel.com escreveu: > > > From: Kan Liang > > > > > > Add two locks to protect namespaces_list and comm_list. > > > > > > The lock is only needed for multithreaded code, so using

RE: [PATCH RFC V4 1/6] perf tools: lock to protect namespaces and comm list

2017-10-02 Thread Liang, Kan
> Em Fri, Sep 29, 2017 at 07:47:52AM -0700, kan.li...@intel.com escreveu: > > From: Kan Liang > > > > Add two locks to protect namespaces_list and comm_list. > > > > The lock is only needed for multithreaded code, so using mutex > > wrappers provided by perf tool. > > > > Not all the comm_list/nam

Re: [PATCH RFC V4 1/6] perf tools: lock to protect namespaces and comm list

2017-10-02 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 29, 2017 at 07:47:52AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > Add two locks to protect namespaces_list and comm_list. > > The lock is only needed for multithreaded code, so using mutex wrappers > provided by perf tool. > > Not all the comm_list/namespaces_list ac

[PATCH RFC V4 1/6] perf tools: lock to protect namespaces and comm list

2017-09-29 Thread kan . liang
From: Kan Liang Add two locks to protect namespaces_list and comm_list. The lock is only needed for multithreaded code, so using mutex wrappers provided by perf tool. Not all the comm_list/namespaces_list accessing are protected, e.g. thread__exec_comm. Because the multithread code for perf top