Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp133267rwl; Thu, 23 Mar 2023 13:47:02 -0700 (PDT) X-Google-Smtp-Source: AKy350YaXhLh1Kih00yFqE1alk52KU/zA+gOD9LFn6j1CVTrsv9YVbeRVZ2Bu3Pd0y/wCFMyUMD2 X-Received: by 2002:aa7:98db:0:b0:62a:4fb1:3dea with SMTP id e27-20020aa798db000000b0062a4fb13deamr545995pfm.24.1679604421921; Thu, 23 Mar 2023 13:47:01 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a056a00168400b005e8c9eb792fsi20851718pfc.221.2023.03.23.13.46.48; Thu, 23 Mar 2023 13:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kQJj8B+8; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230259AbjCWUoP (ORCPT + 99 others); Thu, 23 Mar 2023 16:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjCWUoN (ORCPT ); Thu, 23 Mar 2023 16:44:13 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9CF411EA6; Thu, 23 Mar 2023 13:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679604252; x=1711140252; h=date:from:to:subject:message-id:references:in-reply-to: mime-version; bh=TwvQGeDSBQeAXA8L4wOQCkz1mON3bBgsp6uyks1emhE=; b=kQJj8B+8z0l3B7o9UR4hGck27hljuXM8mzmsNz7ZvSxP7gZRItb43gIU yke/C7yIU/ZQl+R6R4DcJYeJMAR1froSAkPse2aVhLg76P6ui98M5uWYH KAjLvj16Pq+AwF/Z/QGCneJPP5XDzFGhnEdDvOArvzu/Jtq9S3qXb3Vzi I+HCkNAS9tuMoz6317GlBg5/xhNxkbE6prbMxk2xAHNPnxFTwmCdwjRcr LI45BxUyL2dz74f5/7e3VJtYYcJA2DzOWEA88X2doXa5TQA8XbHIl/SId wMuKfF+w6t9uxMYKI1Vgemvb0DXFUv9X1QP2LKLEd9MjCm0sMp/jwgUnw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="323482649" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="323482649" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 13:44:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="856624860" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="856624860" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP; 23 Mar 2023 13:44:02 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 23 Mar 2023 13:44:02 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 23 Mar 2023 13:44:01 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 23 Mar 2023 13:44:01 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.47) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Thu, 23 Mar 2023 13:44:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kI06S49bAz9Z9xq672Iw53ln86w9AwOlgz/FhYyCLwS91etJKoBk7qp+Fz3XOspnuAd5XdEgZlSgGI3aRS8BTmy2DEgf3z3gWqmtMoYqcyNJSHI9McNtstVgOqy0qh5uk1JXIyj1V3FPItgZVWoYkC1veAqgZmewfrnMa3TzMlI+MzIoI0WdSQbMwwM2m2KKvNA/hqzACgmYpDEzBlZ129gkEsL2OMOW5LLMaU8a0MCoMns6BXuM6SfvtSjO58T5fw/9ag2oQyb/z/087LPiEwBHOFT/uAAfG/MqGOGMKQFgyxQFIYu091HqifxL6ZjqAej18/IzFwjmq2XPtALwmQ== 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=f4jrgIijdR3ntSbKzE4sm5/9uzagsvUZNPiLAl3iJHg=; b=HvV5y7EPBXkrJ0uFKitswSpE/eFDIL/k4Ptcq5aOBs2gaWaWBL2vQy2Kf+yPQrJKCKYORxNHC8MtxFX26uuBPi9SUp+Ffi1eYZxRwIdXlUTL2hSoTLgiIiP/vT7KE1lmCu+78TmxNKQDSBZe1B+A1rduJqIMFBEXWfZf9Wm3chPuF+zKj+qjxq9iF+dHyULGIfUyxSeRfGRDcUaBK4hHGjDmQ1z8Zpm1J2rolmRY2MlPscVeN8KFjfU4Lj26oETzimjJ+yX4dktVbm1CkWz2KXr/MWE38TQbHPVENYV+GckT11PlK2Y29+Gmuu0GfvAaaoL7bShQkM1mNMk1LsqqPw== 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 PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) by SA3PR11MB8120.namprd11.prod.outlook.com (2603:10b6:806:2f3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Thu, 23 Mar 2023 20:43:54 +0000 Received: from PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::ffa1:410b:20b3:6233]) by PH8PR11MB8107.namprd11.prod.outlook.com ([fe80::ffa1:410b:20b3:6233%5]) with mapi id 15.20.6178.038; Thu, 23 Mar 2023 20:43:54 +0000 Date: Thu, 23 Mar 2023 13:43:49 -0700 From: Dan Williams To: "Liang, Kan" , Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , Zhengjun Xing , , , "Edward Baker" , Dan Williams , , , , Subject: Re: [PATCH v2 8/9] perf metrics: Add has_optane literal Message-ID: <641cba052d0f8_1b98bb294ab@dwillia2-xfh.jf.intel.com.notmuch> References: <20230323192028.135759-1-irogers@google.com> <20230323192028.135759-9-irogers@google.com> <44476adc-3797-504b-2b82-8ec670c691b6@linux.intel.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <44476adc-3797-504b-2b82-8ec670c691b6@linux.intel.com> X-ClientProxiedBy: BYAPR11CA0076.namprd11.prod.outlook.com (2603:10b6:a03:f4::17) To PH8PR11MB8107.namprd11.prod.outlook.com (2603:10b6:510:256::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR11MB8107:EE_|SA3PR11MB8120:EE_ X-MS-Office365-Filtering-Correlation-Id: 86fea268-854b-47ac-eadd-08db2bdf50b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O362K+2pbeIiR5Vpw/ph7uTm3nwgqVk7LRLgCXKK6Cp0xiVv4V4gFtg9t9kpP8EQFM45yM8i52/c0NzKzUd/VRyVIM2PP9fNaMhzz7PJ2S1hXgOt+/dqH45agHlKtEAt36OemNdtuFEq7YNCBtwRQnre8ZC9LmnWLQfpBzLjuil7UL2g1VrEFWml8v5ojVJU0LK3Q8SiaJWI7pmrTuBEwGfz1Q2lLQ4UR2hkeBkfaalPCm8pWc6IbprhzYNODd5EjgVzn9CPbd3tjUtFsygawjB7gnxOiCE/VB60G00BM3B8klKKZtF0B7E7jIkLn0W/nH7bMcCNC9XdVlzZICzWVfqdg54bDedqvbZksh1gmcfkZh1nEzHlgSkltEOp2C27brVU0X2oiNwop8GCXulMdPpNeLCQ0YtYm5VIAj0xVUOMQzByYw6aCWv2cnHnrPdnHPWPHL6P7gF2jq/hZ56IR0KHVSNu7cmjkpqyrJUj4/MP33mM3vTcjjUXZsB/sQ9zFXtQrhonIs4y9hXYWbM3rsxSSJLipUK+/SnR9YCFr+wjwc7PkaVDC4Uz1kh9mIIYSaQ9N/R5HEUlY68xFj4AaEg/dvc1vO3QtAmJe3BZwqYHc+VYI3gf3tIj+wqDXVzIMaaebGXJDL7+Aw91PvogmjasmgqeMmmLeJ/X3d03i5+M4DHOs/t0nOnmvNUfowM8 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR11MB8107.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(376002)(346002)(366004)(136003)(39860400002)(451199018)(4744005)(2906002)(6636002)(110136005)(38100700002)(921005)(7416002)(86362001)(82960400001)(66556008)(41300700001)(66476007)(8676002)(8936002)(66946007)(5660300002)(186003)(26005)(316002)(6666004)(53546011)(6506007)(6486002)(478600001)(6512007)(9686003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XjBgpbPzlX21rpidoKllVANYQrD39GLqpcdaQcvjGX5MmYepZuW/hGBZVBmK?= =?us-ascii?Q?GW9LEou8acr3BGPT5fNFjmkH1/zDdGYBK6j0PXx3gTeq2CBdegxvF/0ZC7sO?= =?us-ascii?Q?jd81yJILRakjxdcts9X/dvoZNQbkMsVTqbFlhKR+RLmD0soJKVee4SyXvXoy?= =?us-ascii?Q?BhsyGG7yIwyrkxOKgLeH6IYhFvy/Bt38xDV3NsY29nM+YwQmox3aqlygqVcZ?= =?us-ascii?Q?lJgCtVYCpJfqI6H0p2fdDVrdmzZaCrCeQVSziva2+jvh5K3C7kphQ00gGFyH?= =?us-ascii?Q?ZLogDx3bH/UG8O7ZDV7Vk/XhSMkJ4wjwUIrM2kJbONa21aw8m7LxiX9FwlTS?= =?us-ascii?Q?Vdh0Lu/1S/APQx2E4Su/7DsTHX0wf0owuYP6Jr0lMPiTKJIFCb2b0HcwpXyN?= =?us-ascii?Q?l9KNwZOdp+9OAarzhdTEZVrkziejato+7RYkDPXKi5Dv93+RFoKBO4BrtgIg?= =?us-ascii?Q?MIvaFWbhZUyDHWRmo1EnT+40wPeBDSjUbQDyLwbOhke9L6UqVEg/h9XTspZn?= =?us-ascii?Q?znD4bpkkSXr/B/CAtt6l+W1IApHHItKsFku0nVXDTZcKYZs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TSlJchOXmfy8X+WtdrbZJVeIFHSSPd0WefmE0fi?= =?us-ascii?Q?wBMIW7SdrwbKBhcyXW9pNdLnjhviBlgAfcyjdoR8QpdL2HztQmf0op8pz/Iv?= =?us-ascii?Q?+ccaRkYuCDoK7oFyOCeE5ujnnzgS1xkvoxcguTmvPEGF6UA0+/Lhhg6AKwzD?= =?us-ascii?Q?lw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 86fea268-854b-47ac-eadd-08db2bdf50b7 X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB8107.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 20:43:53.6551 (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: 6LMK+T+uQcm3QC0JgW9mmxtXWT/Pb2TdI6MwwDnAMFTsnmQ5aopCnnCW5M1Z9c/CtCWyOLmocRRAuAiQg93JYyZ+DbWiLvkELPDjrAuOOgI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB8120 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Liang, Kan wrote: > > > On 2023-03-23 3:20 p.m., Ian Rogers wrote: > > Add literal so that if optane memory isn't installed we can record > > fewer events. > > I think we call it pmem (Persistent Memory) everywhere in the Linux > code. Maybe we should use #has_pmem instead? That makes sense especially because has_optane implies more precision than the the check is performing. In general Optane is probably the widest deployed NVDIMM type, but this check will succeed with battery backed NVDIMMs and emulated PMEM in VMs which I think is perfectly ok for making a default event record decision.