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 1DB614241C; Thu, 19 Jan 2023 20:42:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 028FB41101; Thu, 19 Jan 2023 20:42:23 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 10F32410DD for ; Thu, 19 Jan 2023 20:42:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674157341; x=1705693341; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=V235yqTzfOZ+h8czVLKDjZ53dFV5N7hIS4CujObOUr0=; b=mV1vkekXgKSCmcmX0+qUnqkzw9XJupcsmLUJFWM4Cf7anvnDpPG9CfJf QZ2QSBo5Nsh5K+d98pPjwuN7EATPx0Y9Bdll+V6/48LZ8be1D66guH2sf 4cWG9NQBWov8prdmWx2jkptvzZP6fXrRifm36+5oNDqMWrS/gumqPOTE/ UuQE9TiJXWFRxATXWwqf9XDP5+sIO2nt6Hxa0ZdN3OZdtby0mk4g4sxeL PGGqvB60raA8ERY7JWWrxbvcHvGOGsJIdLwuGPseZfT9S9HQzZtcV3C2r YDydSj6OWURGqEQMcWYHYxDnbuw8cfosVXBiI6JjmgF27fA1vf2PVMzAW A==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="313291589" X-IronPort-AV: E=Sophos;i="5.97,229,1669104000"; d="scan'208";a="313291589" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 11:42:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="768356868" X-IronPort-AV: E=Sophos;i="5.97,229,1669104000"; d="scan'208";a="768356868" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga002.fm.intel.com with ESMTP; 19 Jan 2023 11:42:18 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 19 Jan 2023 11:42:18 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Thu, 19 Jan 2023 11:42:18 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Thu, 19 Jan 2023 11:42:17 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GuWBiJceDIBGbxEsimt/k4EXtG9eoZvKD52x1m3SZ8l1upAeFoWhBedW4eDbBQTJN8b8UwhRGEGb14cykdMZfhD5v5TyoUrnHv/Ci5n4FvOyenfgt+E5jP2OOaYSSsj7f0CSIZVSWSzIbLDCHlaiFLLIa4w5Hr+9Iq0YR9M8kka1e3hyxj5RHydRqwqWpqxPkdwDdt1CWgloQCKxWuAj7aPkIw84PmlJvq1aYqmnAUXnG6Txx4q3KAllxKsl2muWz/S83fuvhCICucz+/UZA5pMOUDOD2TZ14gM4gH+qPmyWri02zjtX19RzzzykVor5iN8xWUdrfy70jbCyt1GJFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Je3zVTgjnMyFicZSA3GCnHSO5opXl2qNQmnqWzlyhv4=; b=THuVv37IwFs7K8WBCg7a3j4IIgUgcoE1MXtJDXlnbiIqjyO4V85p7lvNMP8q3q7x+wlagt2RQ6VRKrrs96l3XN8/RgkS4BlSrE7Q0bY9p8N349SrbFE/GBdO0ZYTsJcqmEt+BgKDuufu55eayJp9JiuIJ59ZtDS5036U8ls3YlR2dZnUJ0VwVvCMXJrWIcAUxZOoZ922dXFrGDYYtdXAS9Le6aYmxX6tEnTTfd8BX/OQ/c1nwI/SNEci9q9OITJN2Use1N76Zg4q9hNEL8GNIBQYKuamdXVCUgtwzO/T/+2jrtziuqHB07mlaXibVCBIcU2zqTf1pBA2Gs/NVVgkpw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by CY8PR11MB6842.namprd11.prod.outlook.com (2603:10b6:930:61::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 19 Jan 2023 19:42:17 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041%7]) with mapi id 15.20.6002.013; Thu, 19 Jan 2023 19:42:16 +0000 Message-ID: Date: Thu, 19 Jan 2023 19:42:11 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v6 2/5] eal: allow applications to report their cpu usage Content-Language: en-US To: Robin Jarry , CC: Tyler Retzlaff , =?UTF-8?Q?Morten_Br=c3=b8rup?= References: <20221123102612.1688865-1-rjarry@redhat.com> <20230119150656.418404-1-rjarry@redhat.com> <20230119150656.418404-3-rjarry@redhat.com> From: Kevin Laatz In-Reply-To: <20230119150656.418404-3-rjarry@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0054.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::23) To MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR11MB5872:EE_|CY8PR11MB6842:EE_ X-MS-Office365-Filtering-Correlation-Id: 08d53f33-6364-4bc2-3730-08dafa554528 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4jU1I5mIp3bIr06c1f37WgVwS2EYJz/i5n9uCJaXtkqH9cFVsSjo1CL2bOqqvrdnUXLnDrOB+nMi6d4Szb/uFhb0+VorPoBJAMHutE7/sjkVaDeqZAr5m5re11CY+q/QRHfJ0upXyIV/TTvVxtNw6NpeeqK9LuWYYI7NT6jJlXyjCvMLJhWGMjGBahsZ/zLWtMmJXwkRLonh9aEQ7EGEshPFraDtSTMxGWDl/Obox2uC/FT8Z/95qapKM2ThiJbaYownDWrQBmCFJuo3onD0tKFShXwe3z75IuXzmzOpXTaxlaaoaz/zy9Cke6CYFo8s7ij3a6g6/Zzgef/0LLWYDkLk2ETk37m767XAbW6vuJR4PlKzV+/ixaFD+nh0VONLzTw3EfUyYOtt08HCJJ59fIj1jf0KS+uUBvvhJE30UdOfRHraQkZVZR1n/INqLS1bBCQp5C43bS56YX8e832S+0P81hhBkflq63KoTU1ANWRIheJXIcDAfylH5xX3wvOfJWFZvbYV2qIqxdOAMpwXn8Unq97zm/ke3SBDCHRZW2K0Lo1uDjWKcYxJWUTl8W0r18/EVc0sv+fh40dQAWGeqhyei4Cr/fFAO/oqPYMZLUqUvVvIfEHFaZGi72By4zk8RVE5aQYVJZKSxsAIr5PPXqcm/MQ4z9WMp0xwq8rwH7YOkaJD6eagkY3dm7WygA6pAUU0aKHhJStCW2R8ewvP4vXPN74VgDKQojSkEJzEydk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(136003)(396003)(39860400002)(376002)(346002)(451199015)(6486002)(6666004)(31686004)(478600001)(6506007)(54906003)(53546011)(86362001)(316002)(8676002)(26005)(4326008)(38100700002)(82960400001)(66556008)(6512007)(66946007)(66476007)(186003)(31696002)(4744005)(36756003)(2616005)(41300700001)(5660300002)(8936002)(44832011)(83380400001)(2906002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TU94TEx5Z1lrUTJNOFFPZDhsKy9RYnJTMm1hK0VKM05waytORWpZcER6QzNu?= =?utf-8?B?dS95T2RqZGtMdUdUMERNVzBZVzRMYzJuT3RKOENueld6YS9mYU9FOWdjVjM1?= =?utf-8?B?Sk9LVkNrdko4ck8rT2ZBSlU5NGsrWXRLOE81clQyWXJjeVRpOWJjNXBnNmZq?= =?utf-8?B?YjJqMmp1THZobVBpdm5ocDlXVENjalVRMlJUbFUyK1hJTkdMMHROVTBnalhq?= =?utf-8?B?d1dQVjkvK1BocjFYUXdLMDZ6SkVldWRBK1E3SmZ5bStBSnhvZDcxMEdTbjNE?= =?utf-8?B?YWRWTHlFSWplcTRQbHBXdWVtRjF3cTJybU5lVHo2WkY3SlA2eHhrZEQ5eWtY?= =?utf-8?B?K1djR2FybExXSmhMUk14MnM4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08dafa554528 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 19:42:16.9054 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IyOK+K9Al++9bTfAaCjPqeDKZ8X4TdzX1jLuDg4SMvwE2YvdeAv4FLOTSD+L97MFtvlw1I0YPo9AJYKF+m4Ceg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6842 X-OriginatorOrg: intel.com 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 19/01/2023 15:06, Robin Jarry wrote: > 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ørup > --- > > Notes: > v5 -> v6: Added/rephrased some inline comments. > > lib/eal/common/eal_common_lcore.c | 45 ++++++++++++++++++++++++++++--- > lib/eal/include/rte_lcore.h | 35 ++++++++++++++++++++++++ > lib/eal/version.map | 1 + > 3 files changed, 78 insertions(+), 3 deletions(-) Reviewed-by: Kevin Laatz