librseq memory allocator portability

Ondřej Surý via lttng-dev <[email protected]> Sun, 2 Feb 2025 16:48:44 +0100
Newsgroups org.lttng.lists.lttng-dev
Message-ID <[email protected]>
Hey Mathieu,

I’m actually thinking about using librseq for some more lightweight stuff first - like statistic counters (especially those related to memory allocations), and my first obvious question would be - how portable is the librseq memory allocator?

I am not keen on having a code with ifdef spaghetti to support BSDs, so I think that it probably should provide some per-thread memory pools at the expense of just consuming more memory on platforms without rseq system call.

Ondrej
--
Ondřej Surý (He/Him)