libsysprof: add mountinfo helper

The goal of this helper is to simplify the process of parsing information
about mounts and the mountinfo for per-process maps. We should be able
to change sysprof-proc-source to use this and have better support for
getting the libraries within different mount namespaces.
This commit is contained in:
Christian Hergert
2019-08-02 12:56:14 -07:00
parent 1cb182d1df
commit 7e7657dd03
5 changed files with 391 additions and 0 deletions

View File

@ -43,6 +43,13 @@ test_addr_decode = executable('test-addr-decode', 'test-addr-decode.c',
dependencies: test_deps,
)
test_mountinfo = executable('test-mountinfo',
[ 'test-mountinfo.c',
'../libsysprof/sysprof-mountinfo.c'],
c_args: test_cflags,
dependencies: test_deps,
)
if get_option('enable_gtk')