[dpdk-dev] [PATCH v5 04/33] eal/trace: implement trace register API

David Marchand david.marchand at redhat.com
Thu Apr 16 15:39:42 CEST 2020


On Mon, Apr 13, 2020 at 5:02 PM <jerinj at marvell.com> wrote:
> diff --git a/lib/librte_eal/common/eal_common_trace.c b/lib/librte_eal/common/eal_common_trace.c
> index e18ba1c95..abb656838 100644
> --- a/lib/librte_eal/common/eal_common_trace.c
> +++ b/lib/librte_eal/common/eal_common_trace.c
> @@ -2,5 +2,102 @@
>   * Copyright(C) 2020 Marvell International Ltd.
>   */
>
> -#include <rte_trace.h>
> +#include <inttypes.h>
> +#include <sys/queue.h>
>
> +#include <rte_common.h>
> +#include <rte_errno.h>
> +#include <rte_lcore.h>
> +#include <rte_per_lcore.h>
> +#include <rte_string_fns.h>
> +
> +#include "eal_trace.h"
> +
> +RTE_DEFINE_PER_LCORE(volatile int, trace_point_sz);
> +RTE_DEFINE_PER_LCORE(char, ctf_field[TRACE_CTF_FIELD_SIZE]);
> +RTE_DEFINE_PER_LCORE(int, ctf_count);

Afaics, ctf_field and ctf_count can be static.


-- 
David Marchand



More information about the dev mailing list