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 E8F3D458C8; Mon, 2 Sep 2024 02:27:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8903240269; Mon, 2 Sep 2024 02:27:27 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2086.outbound.protection.outlook.com [40.107.96.86]) by mails.dpdk.org (Postfix) with ESMTP id 7BB1C400D7 for ; Mon, 2 Sep 2024 02:27:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=swNlo8PeJWLWBJ3Q4L+kfx8Lh41VHrgbZgPZaf+E030gp26onkwHPYrfQOPFPofTSSRkmHwMk9Jb2mG/E9yB0WyPfEB/4gGo+UgAY0aISWIDAK8H6kVAbpQmY11oyGCeH3u5fiuFjY3Gv+KXusB150ZholKOnem0pQB7PbzCt3gjzHIT0er0Framx3iM53cMwDatiKUMMnflJnrtUI0xuMRTzG5puGFzhhJeSIRyNn2Ufx3CJMMtB2svo4NvLxh2aYzpqKUxU4SrDlZhmxz5C20JRCz9pXq2Ro0wbCVdr/dR0jdwy1JyoNquchLi8WMM47brXY1yb51J6FBc0Je4/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lHrB1MV08MPIM69g9Prtw7vFOTMfF9kztK5SebtPeJo=; b=h29sJDwJYClMcwmDdnLisnxkDepojjG0Cp/8IL6LsZjfF7iRZy5k9Y8HWf8rqvAsTpN8U1IId72Y9emU1LM0CrGmdsv1WWo+m2kUAA5d9MBsBy5eNdicOF0+MJs2L2Dk6PUBp/9ykMLedsDgBSltQ55jS+w1vEC8r43f6QbYQmGcc3+MDbZ3ALEa7RcGY59QR4z0mQy/kPSpJwgY2Z+Pvff+I15vtAMeg/iFgtb17yVbiLd48biMQkZ/1cGTzYNiPs/4BW9sA2XxQ7oo3nE0S1Ad0KlYOXN3yJcFhDbIvDX5Npa2sYaM+RUybVo9leX3+o+rCuDZ+DRZ8ro4xPpuxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lHrB1MV08MPIM69g9Prtw7vFOTMfF9kztK5SebtPeJo=; b=CKICopWwC6TMvCCV7KlE6AmiUZ3RST1Gt7hMaXHiMLAwFUvJQhW8I4jRsq8UPANVod7sckjWAGTFjEzd+WeuhgULUhtRKIkA3daz43i9w8Mya7PLbE91Mc7grEv3XA/aSaXD3IorEplw/MtleXXw2GFUSnnokb59A/ZnNHiE3NI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB8596.namprd12.prod.outlook.com (2603:10b6:510:1b7::6) by SJ0PR12MB7034.namprd12.prod.outlook.com (2603:10b6:a03:449::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Mon, 2 Sep 2024 00:27:22 +0000 Received: from PH7PR12MB8596.namprd12.prod.outlook.com ([fe80::a011:943d:7291:8069]) by PH7PR12MB8596.namprd12.prod.outlook.com ([fe80::a011:943d:7291:8069%5]) with mapi id 15.20.7918.024; Mon, 2 Sep 2024 00:27:21 +0000 Content-Type: multipart/alternative; boundary="------------b5chiHli9VEKdvmmXeEn1dPa" Message-ID: <10e29523-afb6-4dd6-9102-deb9f599459e@amd.com> Date: Mon, 2 Sep 2024 05:57:14 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 1/2] eal: add llc aware functions To: Stephen Hemminger Cc: ferruh.yigit@amd.com, dev@dpdk.org References: <20240827151014.201-1-vipin.varghese@amd.com> <20240827151014.201-2-vipin.varghese@amd.com> <20240827103643.407a150a@hermes.local> Content-Language: en-US From: "Varghese, Vipin" In-Reply-To: <20240827103643.407a150a@hermes.local> X-ClientProxiedBy: PN2PR01CA0206.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:e9::17) To PH7PR12MB8596.namprd12.prod.outlook.com (2603:10b6:510:1b7::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB8596:EE_|SJ0PR12MB7034:EE_ X-MS-Office365-Filtering-Correlation-Id: 51fb5ca7-b2b9-4fad-2f42-08dccae6029b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bk1UNWJrSzArVVlhYmdodG9CdlMrenZUaWVYbGJ6bkdraGVocWRhSCsxY0Fa?= =?utf-8?B?L3pOSnJrTXJNSHhCdEVlSFY3T21TanNsRkFjMEQvaW9kQkR6K0UzcGwvU2Q3?= =?utf-8?B?UWhvbzZCS0NGaEVtQXRJV3FoMXB1bUZrSWxOMHdnMXBKM0lkTW02RlZCWWl2?= =?utf-8?B?amZYMDQrZmlXRTUzdVcxdWxvVFh0VU5RREdEbHlKRlFSTnBwU2ZrWGVacHlP?= =?utf-8?B?aC9SVHZxQTdFTmoxMTVVZG5odEdBR1ZaVXJweGxZQ3p2ZGpINVN0SVRra213?= =?utf-8?B?VEhNdmxoQmxkZzdEMXA1UVZ3NXArMzhFRGpZdTB3M2tEMk50ZHF2QWtxc3Vs?= =?utf-8?B?SnM2eVVNYnlBL2xh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-8?B?bzVDdm13dzMwb0dPWTR3ZU9QRC9KZ09KRlNqTDBVOHZZcHpiZm9DVWhhTElu?= =?utf-8?B?UHptRzhQMEtFM3hvVXZCNGhESi82NDN4THhIalR3Mm5rdGdqMklrT1lwejNv?= =?utf-8?B?VGxCZHdKVFZlTm9vaWpLMWZHL2tkR2lnY0VvU0hJbC9lYWplWVp5eXl6S3B2?= =?utf-8?B?czdDc24wNkpyMnJXR01SYSs3dlZQa01STTMzcDQ5QzZNRDZCaU1mVm5hdG1q?= =?utf-8?B?SE8xQTlkT2tqSnlxa1RXbGJEQ0crSzVrU2pmM3Y1L0J5RGpkSVk1QW03ZStZ?= =?utf-8?B?UmxKdjBsYURxck1jcUZXdVBnRVRoaXoxZ29tc1NXQkk3V0dQQk10RU9iejRv?= =?utf-8?B?VVJHVVdwVFpQdFhabDZ0MEpoRkxianBSZjJtYTFZbHh3ZTU2S0NPUVNSbGU1?= =?utf-8?B?eDVwN2tGbVd0SUd6UXliWlY0NlNZUlJ5M0J3cVVHK1pldi9POWtnR1FLajVq?= =?utf-8?B?VFV3eUU4bCt3c2xPTGpNMG5QMEJpaVFieHBBYnBUOVViR0VWZTE4ZUZiaExY?= =?utf-8?B?VkRmRjd4cHhkWHpjbHg5QT09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR12MB8596.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?K3QyYzRabStUUTdQamR0eENIL0U3YUdEWTg3Q08yUnNuSFIxbk1YVGVHdUVs?= =?utf-8?B?T0w2UU9SelhPRCtYNGZRZzZjNjZnbUlRdFdPRmZkOXQ0L1RDVmdpUjlxTk5x?= =?utf-8?B?UXdGQVhmdG9NL01JdGZGdWlZWHh5c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lSkZQSmdNSm5TWnVweSttK0trNFZ0WVZDLzRTc01vd1ZxL3FINmxhQW4y?= =?utf-8?B?SkVpSHEvNVUySkRrNS9Damd2MXI5YTFLdEFDSVZwNklpbGdUemNyd0Q4Vmph?= =?utf-8?B?SmRia01mTFZ0cWtOZ2JHR3dXMk1HNWRrQ1g4c2NUTXd6NzFhSXk1dnJ0WW1Z?= =?utf-8?Q?ZQz0m+WjD9qrxFhvvKLltQObL?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51fb5ca7-b2b9-4fad-2f42-08dccae6029b X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB8596.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 00:27:21.6810 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YIHO71Hx6g1kF6Ul3y1Om5LyFB8IaJejTCO7enjM/6URnnJth2TUo8+VhbQl7XtqPCpY6xYlyfopPgEKYg96hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7034 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 --------------b5chiHli9VEKdvmmXeEn1dPa Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit >> + "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort -r | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' " > NAK > Running shell commands from EAL is non-portable and likely to be flagged by security scanning tools. > > Do it in C please. Thank you Stephen, for pointing this out. Surely will convert to `C` rather than shell execution. --------------b5chiHli9VEKdvmmXeEn1dPa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <snipped>

      
+             "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort  -r  | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' "
NAK
Running shell commands from EAL is non-portable and likely to be flagged by security scanning tools.

Do it in C please.
Thank you Stephen, for pointing this out. Surely will convert to `C` rather than shell execution.

    
--------------b5chiHli9VEKdvmmXeEn1dPa--