From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752470AbcGASfm (ORCPT ); Fri, 1 Jul 2016 14:35:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:40831 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbcGASfl (ORCPT ); Fri, 1 Jul 2016 14:35:41 -0400 Date: Fri, 1 Jul 2016 20:35:36 +0200 From: Borislav Petkov To: "Yu, Fenghua" Cc: "Luck, Tony" , Thomas Gleixner , Ingo Molnar , "Anvin, H Peter" , Peter Zijlstra , Stephane Eranian , "Shankar, Ravi V" , Vikas Shivappa , linux-kernel , x86 Subject: Re: [PATCH] cacheinfo: Introduce cache id Message-ID: <20160701183536.GE4749@pd.tnic> References: <1467251771-55501-1-git-send-email-fenghua.yu@intel.com> <20160701102143.GB4749@pd.tnic> <20160701165041.GA18186@intel.com> <20160701172743.GC4749@pd.tnic> <3E5A0FA7E9CA944F9D5414FEC6C712205DFD172A@ORSMSX106.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3E5A0FA7E9CA944F9D5414FEC6C712205DFD172A@ORSMSX106.amr.corp.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 01, 2016 at 06:01:06PM +0000, Yu, Fenghua wrote: > Cache id is unique on the same level of cache across platform. Btw, I forgot to ask in the reply to Tony: how are those cache IDs exactly going to be used? An example please... > Could you check cpu#/cache/index#/shared_cpu_map or shared_cpu_list. Bah, my kvm is on an AMD guest - forget what it says :-) > Cache id is unique on the same level across platform. > > #find /sys/device/system/cpu/. -name id|xargs cat Btw, you could do grep . /sys/devices/system/cpu/cpu*/cache/index*/id and it'll give you the absolute filepaths too, so that the output is parseable easier. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --