From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 527BCA00C2; Wed, 4 Jan 2023 11:15:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5C4340A82; Wed, 4 Jan 2023 11:15:37 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id DE7D740697 for ; Wed, 4 Jan 2023 11:15:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672827336; 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=TWJ55U0dCgDzKN4e+Sk1e1uL0Q3OFE9fSJOMDnpv6AI=; b=Kh/naKe4N3xMaTTwymvvJreGaQeHSW10u8TV/P5D4Krbm128OX7kjyG0HwcPqWYcrGexU0 WomCMdFbBKRd7uLcgyu2pKhp/RmVf6bICog7Mx2wf40XjhmHa7/ZteTdZfaaCopZyiT/oO Dvu0vaIYlg9JEDKaMJqneFpNSsQOHNI= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-141-oKxtck8HPAejr0598-ha1g-1; Wed, 04 Jan 2023 05:15:35 -0500 X-MC-Unique: oKxtck8HPAejr0598-ha1g-1 Received: by mail-wr1-f71.google.com with SMTP id q16-20020adfab10000000b00271460582b6so4062135wrc.5 for ; Wed, 04 Jan 2023 02:15:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=TWJ55U0dCgDzKN4e+Sk1e1uL0Q3OFE9fSJOMDnpv6AI=; b=Vg6d6R2VBk7tyXBqTqt+nxk7yfYbuNW2lOK2qykjqwM74Cwdi3tVpOStm+Lime5FTD ys0br1P5ug9xyP64Ih80mbFbsTNlJ0I6JphTh8Q7DEilLZ/wl337qX0TwPqFDAYgJ0If wf6Qg96+UiBve77sIKdfPSRtzJMSKK1c7GClW3XNEKkcdtCsDwjmopnoBC0mBRDoTLlJ p48IcH+oLeZwCJs4K7SBZq0pgq4xcHVW71g2+cjLoQnnMXXIRx8UeOtObdi8/gjpYq8u ouo1Mf+fJot7k6yyIMWrMCGxOCviGg1avJjGVBJpsmsBxLHqi4Ih8jH3kYCdrcy18xq7 UJCQ== X-Gm-Message-State: AFqh2kofdg8/mEc7m8U7RbELEZXrr3YF27Sl/vIcfCmxN/gp11SxmOu5 UXiNl6TSlgEc1i9RWFPVq3vYl2ZpnlrzXnb3chk0PGpds5Xv9eXTQ4c2gBZjPNcUq9nJlcj5LQ4 jNGAs+tq0gVHW1o3aH2qJZO9wi9pGb2zBVuodjTckI2S7BV6GbmX6 X-Received: by 2002:a05:600c:5008:b0:3cf:6f4d:c25d with SMTP id n8-20020a05600c500800b003cf6f4dc25dmr33152075wmr.21.1672827334006; Wed, 04 Jan 2023 02:15:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXuBqQ3M6OVTKxMH8u8btmx72qCfAmtc6MAs2OyLlDSqJK/O0VIXgQ4przZUMxnlKR0LugqW8Q== X-Received: by 2002:a05:600c:5008:b0:3cf:6f4d:c25d with SMTP id n8-20020a05600c500800b003cf6f4dc25dmr33152057wmr.21.1672827333717; Wed, 04 Jan 2023 02:15:33 -0800 (PST) Received: from localhost (2a01cb000f483e0055ae3800781b5cbc.ipv6.abo.wanadoo.fr. [2a01:cb00:f48:3e00:55ae:3800:781b:5cbc]) by smtp.gmail.com with ESMTPSA id f18-20020a05600c4e9200b003d35c845cbbsm56318490wmq.21.2023.01.04.02.15.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Jan 2023 02:15:33 -0800 (PST) Mime-Version: 1.0 Date: Wed, 04 Jan 2023 11:15:33 +0100 Message-Id: From: "Robin Jarry" To: , "Kevin Laatz" , "Bruce Richardson" Cc: "Tyler Retzlaff" , =?utf-8?q?Morten_Br=C3=B8rup?= Subject: Re: [PATCH v5 2/4] eal: allow applications to report their cpu usage X-Mailer: aerc/0.13.0-167-g0f28e7e1ad84 References: <20221123102612.1688865-1-rjarry@redhat.com> <20221216102109.64142-1-rjarry@redhat.com> <20221216102109.64142-3-rjarry@redhat.com> In-Reply-To: <20221216102109.64142-3-rjarry@redhat.com> X-Mimecast-Spam-Score: 1 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Robin Jarry, Dec 16, 2022 at 11:21: > Allow applications to register a callback that will be invoked in > rte_lcore_dump() and when requesting lcore info in the telemetry API. > > The callback is expected to return the number of TSC cycles that have > passed since application start and the number of these cycles that were > spent doing busy work. > > Signed-off-by: Robin Jarry > Acked-by: Morten Br=C3=B8rup > --- > v4 -> v5: > > The callback now takes a pointer to a rte_lcore_usage structure. > I chose not to include any API version tracking mechanism since the > unsupported/unused fields can simply be left to zero. This is only > telemetry after all. Hi Kevin, Bruce, did you have a chance to go over this series? Do you have any comments?