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 13EF045879; Tue, 27 Aug 2024 19:36:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8EB6F40DF5; Tue, 27 Aug 2024 19:36:47 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id 2EEC4402AD for ; Tue, 27 Aug 2024 19:36:46 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7cd967d8234so3458269a12.2 for ; Tue, 27 Aug 2024 10:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1724780205; x=1725385005; darn=dpdk.org; 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=SAmyqh9OcD7WibtUKXzjIw4hOx5/3m2y8vzmouIiTQo=; b=KOgsMDea74YdaTu+WN0SgSdARwtQh3VzPtdYYGdEeZIhaOgOP+jMc+Omp23CKFtiaj or3Nga4Qb8RZBp91yGUL5qwfdencTcHFMICizNZ0+RNo88XgCQ5/vezhL9iVRDw1jVDg RbAk23NuHTvQun1DHNlnn5MattzenvZKNZztuVsLKkmIECGcK38KaH+s7duqlS8reXTH F2d1/6QxGtlQ0qBAWkAjNM2QnzYBlPMU2NarIGmj3IxTHKkWdu1g2SBEoIGo5J92V7K6 cw/6u9Mc4P+RldqA5echpqosemzdNfMFgWae0YlvdgEiGiG65TvSElw1tpxrIQC7mMVe ZQLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724780205; x=1725385005; 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=SAmyqh9OcD7WibtUKXzjIw4hOx5/3m2y8vzmouIiTQo=; b=cWAFqJTRhHcPhLEJZ4m6yPNqS9+pRRMnerk0vaysCKr0DAfVCl0cBkBEl0Dv3XQr9t xy4LU0U3zY5RHVurXlnTvw2m+eHP6jkU1RqnCkGN/r9bxtdmbtGjxsgP8CeD3EinVCw8 hst/UrnJ8UGKMzXGpbcBFKBhXJ37rxfac5CPAlQZJO+U+qz0C5Er7mjfVm34IUMeAgjD jmm3YdWUIBIUOTbDWxuTvdws/7PueulQ/4dw3nvmH5myhOC1uaD9Z+U7FRJQk62Yvzu4 tGvWZqrA0AYfaUJryCNea3JVpc3Ek2LA/RoHiqA7z2SbxNzY8AD/nQAr/060qyBPlfEs 4Ktw== X-Forwarded-Encrypted: i=1; AJvYcCXEQUBKB/QI9E3KwdSXaAqmV0oSdVcGTnv+x4wGIXTS5pFTcCglV7qjwx7oY260X4pnNqg=@dpdk.org X-Gm-Message-State: AOJu0YzwpLobbai5kO3QFdy3yxbhVsdpdzqMzvFooOmd4VkfugCGyWH4 s9PDUP6AFjMVFF2E0goOtZ4Uu425HuUHrKRlR0r6hj2IH/qfsnbCF3jT2zs4+2k= X-Google-Smtp-Source: AGHT+IFhV4LERZYxlWSQod6lLrVAZtSJv+60ig0PkSpAAOBwPQba95nZtv2Nk2A3V/RkwtDBRKSkOg== X-Received: by 2002:a17:90a:7788:b0:2d3:c303:fe14 with SMTP id 98e67ed59e1d1-2d8259f4015mr3433814a91.40.1724780205203; Tue, 27 Aug 2024 10:36:45 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d613b1cc67sm12362344a91.51.2024.08.27.10.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 10:36:44 -0700 (PDT) Date: Tue, 27 Aug 2024 10:36:43 -0700 From: Stephen Hemminger To: Vipin Varghese Cc: , Subject: Re: [RFC 1/2] eal: add llc aware functions Message-ID: <20240827103643.407a150a@hermes.local> In-Reply-To: <20240827151014.201-2-vipin.varghese@amd.com> References: <20240827151014.201-1-vipin.varghese@amd.com> <20240827151014.201-2-vipin.varghese@amd.com> 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 Tue, 27 Aug 2024 20:40:13 +0530 Vipin Varghese wrote: > + "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.