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 AF37E42AD9; Fri, 12 May 2023 00:18:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C88D406B7; Fri, 12 May 2023 00:18:55 +0200 (CEST) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 5DEBE40223 for ; Fri, 12 May 2023 00:18:53 +0200 (CEST) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-64a9335a8e7so1511480b3a.0 for ; Thu, 11 May 2023 15:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683843532; x=1686435532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=G7/0+ZOEl/XkT4Uioh9BX/eOCBjOHs9SaD131wapDiA=; b=DJKFVyF3yRQlOyeKc4eU1MUjaqUkzMX47WGUKqlgS0h9BDEk1CykxDao1iFe8BmZVo nYPR0Al8qUJ4osVQQ+GLEFZvbc4ozR/9mW9VTRm1/q16Tie6yXMMGL8vdYLty66qBKlN VO+Q9iP/oBhelyxqVy7dug8N9P7uoJuxrqD/I9KOrA5NGHheIuSOoOdd3Gil2WXF5f4t a5klmOPe8KivbWF4NvQJdMcL3pcWW3vRzPPMaHrnZS7eYjorWE8gwpVQt0XrtBUI+CIt IEfAUAcYApVqg/dVJPgKl/A9htVot1iuhaW6SEd6reF6zcvArZm9w1sImlbVt+/1DL80 wB3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683843532; x=1686435532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G7/0+ZOEl/XkT4Uioh9BX/eOCBjOHs9SaD131wapDiA=; b=dO4yY0ED53VcT0lTlJo+b3M9IRz4ZH8FOsbetGHCa/N8/AsndOlNQfoYelCBaitUsx BXJdI+ToMQABQ1PPnrKRUW58qxf8OSGlliBlB0ScLVLBAOe0YWwkjQTVad1j4Epns1Kx NFaixLLz+nb47hNoc7aXd+g1xB6OixNUNvZA6Vw3JJKRsly+x6hl/fPpW7baG38q8NpC Y+P9OW5NCoBMofdRKe553jfQwfGbdvZcPjOp4D+8hxK7XtUYeekXypbZjuvgkzRn1FxJ pJRG6nYjwf1xN+pgFC1nuB4W+Jpyy7N7VLClU42g8O3UyiS+Afw3upSUgRY9cQfKeWmN Iy4Q== X-Gm-Message-State: AC+VfDxCrB6SyfQzOunFxSXB7dWRgLU473d7I4L9cXFzl67WqeArc9/s sfg1aYBkXqGDTTKObxH9t+GW8Q== X-Google-Smtp-Source: ACHHUZ4ozxhIDLbq8yCeta5hpU18jtandsXR1V47A8RO1j8AY9IiVktOXsOlbwwsXtcNA8X8D1ohTQ== X-Received: by 2002:a05:6a20:3947:b0:103:e813:77a1 with SMTP id r7-20020a056a20394700b00103e81377a1mr4312195pzg.15.1683843532342; Thu, 11 May 2023 15:18:52 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id t37-20020a632265000000b00530277f7b0fsm5500298pgm.53.2023.05.11.15.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 15:18:52 -0700 (PDT) Date: Thu, 11 May 2023 15:18:50 -0700 From: Stephen Hemminger To: Arnaud Fiorini Cc: Thomas Monjalon , Harry van Haaren , Jerin Jacob , Sunil Kumar Kori , dev@dpdk.org Subject: Re: [PATCH v2] eal: add tracepoints to track lcores and services Message-ID: <20230511151850.58e1d5e9@hermes.local> In-Reply-To: References: <20230511201628.1658083-1-arnaud.fiorini@polymtl.ca> <20230511135056.69550813@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 11 May 2023 17:01:48 -0400 Arnaud Fiorini wrote: > On 2023-05-11 4:50 p.m., Stephen Hemminger wrote: > > On Thu, 11 May 2023 20:16:28 +0000 > > Arnaud Fiorini wrote: > > > >> +The service core library is instrumented with tracepoints using the DPDK Trace > >> +Library. These tracepoints allow you to track the service and logical cores > >> +state. The tracepoints that are on the fast path are compiled out by default. > >> +To activate the fast path tracepoints, it is necessary to add the > >> +``enable_trace_fp`` option when building DPDK using meson. > >> + > >> +To activate tracing when launching a DPDK program it is necessary to use the > >> +``--trace`` option to specify a regular expression to select which tracepoints > >> +to enable. Here is an example if you want to only specify service core tracing:: > >> + > >> + ./dpdk/examples/service_cores/build/service_cores --trace="lib.eal.thread*" --trace="lib.eal.service*" > >> + > > These state changes are not in the hot path. So they should always be available? > > Some of the tracepoints (rte_eal_trace_thread_lcore_running, > rte_eal_trace_thread_lcore_stopped, rte_eal_trace_service_run_begin) are > defined as fast path tracepoints. If these changes do not need to be in > the fast path, I can change their definition. > Only inside the loop itself, ie polling is really fast path. State transitions are not.