Re: [PATCH] perf: fix race in build_id_cache__add_s()

2015-03-20 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 20, 2015 at 01:18:07PM +0100, Jiri Olsa escreveu: > On Fri, Mar 20, 2015 at 11:37:25AM +0100, Milos Vyletel wrote: > > int build_id_cache__add_s(const char *sbuild_id, const char *debugdir, > > const char *name, bool is_kallsyms, bool is_vdso) > > { > > ... > >

Re: [PATCH] perf: fix race in build_id_cache__add_s()

2015-03-20 Thread Jiri Olsa
On Fri, Mar 20, 2015 at 11:37:25AM +0100, Milos Vyletel wrote: > int build_id_cache__add_s(const char *sbuild_id, const char *debugdir, > const char *name, bool is_kallsyms, bool is_vdso) > { > ... > if (access(filename, F_OK)) { >^-

[PATCH] perf: fix race in build_id_cache__add_s()

2015-03-20 Thread Milos Vyletel
int build_id_cache__add_s(const char *sbuild_id, const char *debugdir, const char *name, bool is_kallsyms, bool is_vdso) { ... if (access(filename, F_OK)) { ^- [1] if (is_kallsym