[PATCH v9] eal: add build-time option to omit trace
Morten Brørup
mb at smartsharesystems.com
Tue Oct 8 09:16:08 CEST 2024
> From: Morten Brørup [mailto:mb at smartsharesystems.com]
> Sent: Monday, 7 October 2024 13.46
>
> 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.
>
> Furthermore, a public function to determine if trace is build time
> enabled
> is added; mainly for the benefit of the dpdk-test application.
>
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Jerin Jacob <jerinj at marvell.com>
> ---
Both trace_autotest and trace_perf_autotest have been tested (in a Linux environment) to behave as expected, both with and without RTE_TRACE defined.
Tested-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list