[PATCH v3 0/2] perf tools: Backward ring buffer support

From: Wang Nan
Date: Sun May 08 2016 - 21:48:19 EST


Commit 9ecda41acb97 ("perf/core: Add ::write_backward attribute to
perf event") introduces backward ring buffer. This 2 patches add basic
support for reading from it, and add a new test case for it.

v2 -> v3:
Improve commit message, add more comments (patch 1/2). patch 1-2/4 in
v2 have been collected so remove them.

v1 -> v2:
Patch 1/5 in v1 has been collected by perf/core, so remove it;
Change function names in patch 2/5 in v1 (1/4 in v2):
__perf_evlist__mmap_read -> perf_mmap__read

Wang Nan (2):
perf tools: Support reading from backward ring buffer
perf tests: Add test to check backward ring buffer

tools/perf/tests/Build | 1 +
tools/perf/tests/backward-ring-buffer.c | 151 ++++++++++++++++++++++++++++++++
tools/perf/tests/builtin-test.c | 4 +
tools/perf/tests/tests.h | 1 +
tools/perf/util/evlist.c | 50 +++++++++++
tools/perf/util/evlist.h | 4 +
6 files changed, 211 insertions(+)
create mode 100644 tools/perf/tests/backward-ring-buffer.c

--
1.8.3.4