libsysprof-capture: add mmap()'d ring buffer

This is the start of a ring buffer to coordinate between processes without
the overhead of writing directly to files within the inferior process.
Instead, the parent process can monitor the ring buffer for framing
information and pass that along to the capture writer.
This commit is contained in:
Christian Hergert
2020-02-13 14:37:29 -08:00
parent aca1a6a765
commit 77400c57c1
5 changed files with 883 additions and 0 deletions

View File

@ -22,8 +22,14 @@ test_capture_cursor = executable('test-capture-cursor', 'test-capture-cursor.c',
dependencies: [libsysprof_capture_dep],
)
test_mapped_ring_buffer = executable('test-mapped-ring-buffer', 'test-mapped-ring-buffer.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
)
test('test-capture', test_capture, env: test_env)
test('test-capture-cursor', test_capture_cursor, env: test_env)
test('test-mapped-ring-buffer', test_mapped_ring_buffer, env: test_env)
if get_option('libsysprof')