commit | 2555d2a403cfba567972a25419e30eff6d088917 | [log] [tgz] |
---|---|---|
author | Robert Richter <robert.richter@linaro.org> | Mon Jun 10 16:31:16 2013 +0200 |
committer | Robert Richter <rric@kernel.org> | Thu Aug 22 11:02:09 2013 +0200 |
tree | 115c37f647c7a280f92013ec33542f5a83a0bde3 | |
parent | 663107acaaa9099b25cc4daa81f2dab1269323c2 [diff] |
perf tools: Retry mapping buffers readonly on EACCES Persistent event buffers may only be mmapped readonly. Thus, retry mapping it readonly if mmap returns EACCES after trying to mmap writable. [ namhyung: Don't write to readonly mmap'ed buffers. ] Signed-off-by: Robert Richter <robert.richter@linaro.org> Signed-off-by: Robert Richter <rric@kernel.org>