[PATCH v4] eal: add build-time option to omit trace
Stephen Hemminger
stephen at networkplumber.org
Tue Sep 24 17:30:23 CEST 2024
On Tue, 24 Sep 2024 13:39:57 +0000
Morten Brørup <mb at smartsharesystems.com> wrote:
> Some applications want to omit the trace feature.
> Either to reduce the memory footprint, to reduce the exposed attack
> surface, or for other reasons.
>
> This patch adds an option in rte_config.h to include or omit trace in the
> build. Trace is included by default.
>
> Omitting trace works by omitting all trace points.
> For API and ABI compatibility, the trace feature itself remains.
>
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
This is good compact solution. In future, it would be nice if DPDK could
use static keys to isolate rarely used features. But static keys require
runtime modification of instructions.
https://docs.kernel.org/6.7/staging/static-keys.html
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list