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 C485642AD9; Thu, 11 May 2023 23:01:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21C5B42D9C; Thu, 11 May 2023 23:01:57 +0200 (CEST) Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by mails.dpdk.org (Postfix) with ESMTP id 1ACD940DF6 for ; Thu, 11 May 2023 23:01:54 +0200 (CEST) Received: from [10.0.0.8] (modemcable172.41-19-135.mc.videotron.ca [135.19.41.172]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 34BL1mLX014244 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 May 2023 17:01:53 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 34BL1mLX014244 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1683838914; bh=KGcG9DzlU+SBD9VCOHDGDfg2yMeeLuyxCPH5rcomkX8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lfQoXTfnRrTI2s4zPan2ACdGQy1NX5YLmJUIVqdGv3q4aRo0HoFHRm3FsgdjP7BPX lY00nMYgnKtiOIeUY/1ht9lmR6/jK3HpNnhs0+G5srKtEUtzJZ9gAVsDH1+YXrGEEm vAULGAa7qnkLry+Z3wX7l/iNoZV0yx51phFi/FCk= Message-ID: Date: Thu, 11 May 2023 17:01:48 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2] eal: add tracepoints to track lcores and services Content-Language: en-US To: Stephen Hemminger Cc: Thomas Monjalon , Harry van Haaren , Jerin Jacob , Sunil Kumar Kori , dev@dpdk.org References: <20230511201628.1658083-1-arnaud.fiorini@polymtl.ca> <20230511135056.69550813@hermes.local> From: Arnaud Fiorini In-Reply-To: <20230511135056.69550813@hermes.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (modemcable172.41-19-135.mc.videotron.ca [135.19.41.172]) at Thu, 11 May 2023 21:01:48 +0000 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 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.