From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94992A0588; Thu, 16 Apr 2020 15:40:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 736671DCE1; Thu, 16 Apr 2020 15:40:00 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id D72A41DCD1 for ; Thu, 16 Apr 2020 15:39:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587044398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VTReVlrudq5cyGuGaPSCWuJUG9PAVfzLaa2o7ZZ+3CA=; b=N5GSVud8MVvFO/CF8jkRLYnTZhwOQEGrvJm9ljrktM3wHvJ/uvS070HhjW4MnAP2ayU1nJ Dq1Kgz9FfzQSHlLVKKlaBbIpCivrJ7xHbL1rloGpg4sLbJ8VLYJSoYvJ5E1kWdp3g0VYP+ zbQlPinkzGPgcQ3RFw0rJOaQfrCkS8A= Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-439-Rrk5wRZ4MduPQzvExKYVmQ-1; Thu, 16 Apr 2020 09:39:56 -0400 X-MC-Unique: Rrk5wRZ4MduPQzvExKYVmQ-1 Received: by mail-vs1-f71.google.com with SMTP id y63so1078991vsc.2 for ; Thu, 16 Apr 2020 06:39:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=URU1wTgNWWnKqO7gjoE6dWT6+1el9/1HjX/IkjlSaBs=; b=YPmWfgB/H2CWrPRAPND96p3ElrsRZQKgQjAbEIqfy/S2OHPJOc4hPsakeqWq4D+Yvb O6NwEj48ef8+f38GgXS4o/Sh0u3Pm+unsiUK9EMShSzTKM1Xzs9I8/QcgzhAkYwama23 aiWdF1FpXap5k739huHw1AjT5tfXf9W0hLVO/a1Aam4wsmMhT6TpjKji1XcZ/Pzu2mGa YXOYZ1V83ns2rPrS6T8tp4F+6MLVqcWWX9tyGNcUapO3TJJeBVqxwahLOmQFDgWjLq2W lrXUSKqOM0Ds9FcNACKQeZ3W10aIG3DUyDJLj/6qhMAFLcMvu4EjzuJr59MMkXB5/86w DrMQ== X-Gm-Message-State: AGi0PuZFkuVNTgTZtBFXrcbXZ3b2M2qfJ+QQUEOMoFw5GixIFZGzjuW0 yEp88/C4HGT7FSzvKwaVHQOaXs/TJj21cAzW1LvZhw9g0BUq8eaNhTVN1MmkbsrkL/yS7EPaiQ1 yLgW3palBSJaFLLjlWyI= X-Received: by 2002:a05:6102:38e:: with SMTP id m14mr9275026vsq.141.1587044396275; Thu, 16 Apr 2020 06:39:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKjILbNHN3+XwUdzBoQvUUe18mvOqNQr8VyxdHfo3eFv9Qc4CC9lNbMEqf+SqIkQdHoJ+L9CQMo3NKZlDtuDmM= X-Received: by 2002:a05:6102:38e:: with SMTP id m14mr9275006vsq.141.1587044395984; Thu, 16 Apr 2020 06:39:55 -0700 (PDT) MIME-Version: 1.0 References: <20200403153709.3703448-1-jerinj@marvell.com> <20200413150116.734047-1-jerinj@marvell.com> <20200413150116.734047-5-jerinj@marvell.com> In-Reply-To: <20200413150116.734047-5-jerinj@marvell.com> From: David Marchand Date: Thu, 16 Apr 2020 15:39:42 +0200 Message-ID: To: Jerin Jacob Kollanukkaran Cc: Thomas Monjalon , Sunil Kumar Kori , dev , Bruce Richardson , =?UTF-8?Q?Mattias_R=C3=B6nnblom?= X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v5 04/33] eal/trace: implement trace register API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Apr 13, 2020 at 5:02 PM wrote: > diff --git a/lib/librte_eal/common/eal_common_trace.c b/lib/librte_eal/co= mmon/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 > +#include > +#include > > +#include > +#include > +#include > +#include > +#include > + > +#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. --=20 David Marchand