fix: removed accidental VLA in _get_num_possible_cpus()
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 27 Jul 2022 14:54:53 +0000 (10:54 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 27 Jul 2022 15:25:26 +0000 (11:25 -0400)
commit625fc7badf99019e4bbc9f4b8a08b261b5655680
treefb8ca91b95ff38db79cfa0f64d69c56020fcfd7c
parentfc1841f3a814b7ef87216ca99c3bcdd944c8b5d4
fix: removed accidental VLA in _get_num_possible_cpus()

The LTTNG_UST_PAGE_SIZE define can either point to a literal value or
the sysconf() function making buf[] a VLA. Replace this by a
cpumask specifc define that will always be a literal value.

Change-Id: I8d329f314878e8018939f979861918969e3ec8ac
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/smp.c
libringbuffer/smp.h
This page took 0.024622 seconds and 4 git commands to generate.