Re: [PATCH v2 3/3] perf tools: Add dso__data_get/put_fd()

2015-05-21 Thread Adrian Hunter
On 20/05/15 19:03, Namhyung Kim wrote: > Using dso__data_fd() in multi-thread environment is not safe since > returned fd can be closed and/or reused anytime. So convert it to the > dso__data_get/put_fd() pair to protect the access with lock. > > The original dso__data_fd() is deprecated and kept

[PATCH v2 3/3] perf tools: Add dso__data_get/put_fd()

2015-05-20 Thread Namhyung Kim
Using dso__data_fd() in multi-thread environment is not safe since returned fd can be closed and/or reused anytime. So convert it to the dso__data_get/put_fd() pair to protect the access with lock. The original dso__data_fd() is deprecated and kept only for testing. Cc: Adrian Hunter Signed-off