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 0D22DA0563; Mon, 23 Mar 2020 10:25:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 57CA41C036; Mon, 23 Mar 2020 10:25:08 +0100 (CET) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by dpdk.org (Postfix) with ESMTP id 16AC11C02E for ; Mon, 23 Mar 2020 10:25:06 +0100 (CET) Received: by mail-io1-f66.google.com with SMTP id y24so13334949ioa.8 for ; Mon, 23 Mar 2020 02:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=R/1j142HBP6QD8CMUJO1j3jTP5tVUeLeGuaeI3mxJSo=; b=g7LfHJZ+b1MCv0j45pyxL61cEBv+FHfU9fGWLmE7rli8npyFK+xv9JaBGIijdYKGiQ UYswHgd8luytTD0DZSCGjEVsJcVhyWWb2mkhiWLXx1Wh0l1Mg9jUl0iuCI7Yr/I3GfyP tcT+f5ohVyJZypHvxkAUi63SGoNETxmy39Y2OA8nO3OMSQWR1c0tOi6uzSlx54HP9v1H Dp04lHfnzq7yiZP+14TQftCdn1uD3LLi9LfKe8Fg3hfrg2xBawwzjKYh93a5nFbKFEax e/VUiI2doJV4q7jlf35DAT7OZDd1T/7hTbnNR0t8rNPoFp/FKLJTiYC/XnELhPHAqt/A ebpQ== 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:content-transfer-encoding; bh=R/1j142HBP6QD8CMUJO1j3jTP5tVUeLeGuaeI3mxJSo=; b=J1QlDfZqccfZSbAmRUcGLQgm3nmP/QzoXd7qHRyKinam7Jw3lnlgBAPa63B+0FtJFJ gqCXVLGxRUNGm0aGj7Rocu7v5jFV19K16STwaSTok+u9JFtemPdgILf7k3SQ5fXJ/TAs N0aek0JlMwa9HP+7JA7SCPABdZYPFirml7V4rGiWhjrY8RChIU87CTQojHew+Iseb/0w uO9qSqoOTOqXIdfmGsetpXQCM89Qd0v8ehPd3oqu6EKVznpMv2M/5KKZqjtfKgKVTTrx 7+7Hj1cqFYViPk+YumErmn0voCMzfX+VOC58/U1WCgepgSJHvgGXI2JCZhJkvitW5GNf AVGg== X-Gm-Message-State: ANhLgQ2L04PzrzXDIbHzv2+Az1s4XhaIvqzRmxCgo9hRQqnpGkYkiKnJ pt+gXCpEi9PnD/BHXxqYAgJEyjpffKTG0I2PESg= X-Google-Smtp-Source: ADFU+vsdq/qD9nr/VpX3NqfuhLXuPGv4a8eL1x/iBhsUAacHHw1LGbt8/ljVrOeGhm7ijTk8D+BLGqXRRYGZeAn1ImY= X-Received: by 2002:a02:6c8:: with SMTP id 191mr19067572jav.133.1584955505339; Mon, 23 Mar 2020 02:25:05 -0700 (PDT) MIME-Version: 1.0 References: <20200318190241.3150971-1-jerinj@marvell.com> <20200318190241.3150971-13-jerinj@marvell.com> <1ac5c9be-fe5f-939a-6325-c8449f7fc76a@ericsson.com> In-Reply-To: <1ac5c9be-fe5f-939a-6325-c8449f7fc76a@ericsson.com> From: Jerin Jacob Date: Mon, 23 Mar 2020 14:54:49 +0530 Message-ID: To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: "jerinj@marvell.com" , Sunil Kumar Kori , "dev@dpdk.org" , "thomas@monjalon.net" , "bruce.richardson@intel.com" , "david.marchand@redhat.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v1 12/32] eal/trace: implement registration payload 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 Fri, Mar 20, 2020 at 12:45 AM Mattias R=C3=B6nnblom wrote: > > On 2020-03-18 20:02, jerinj@marvell.com wrote: > > From: Jerin Jacob > > > > + > > +#define rte_trace_ctf_u64(in)\ > > + RTE_BUILD_BUG_ON(sizeof(uint64_t) !=3D sizeof(typeof(in)));\ > > + __rte_trace_emit_ctf_field(sizeof(uint64_t), RTE_STR(in), "uint64= _t") > > Delegate to a generic macro, to which you pass the type and the "in" > parameter. Not delegated to have a generic patch to catch the following error in compile time. uint32_t val =3D 12; rte_trace_ctf_u64(val)