Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1441450rwb; Fri, 5 Aug 2022 01:50:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6SfednND07kyQxjAz6GQCWL0A054OuRGYmgUCAbBRxD8zmgArmBqp6vy4kqURlRgWMY0Gn X-Received: by 2002:a17:903:240e:b0:16d:cc17:8f16 with SMTP id e14-20020a170903240e00b0016dcc178f16mr5836220plo.100.1659689433274; Fri, 05 Aug 2022 01:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659689433; cv=none; d=google.com; s=arc-20160816; b=wnBBsBmyQs5st5xQo4A7GryUzKJqtJUE9HCIvGCK0jAI8QGsYLBXszNqt8cVALzy54 FvXago4uVkSi+QKNLAt802EXyC9Lw59LFLF9VuDPjIHw75PV1QwALtfdfTnCUM+4JyrT kZUkYkyunlc1pyHO7H7aSxFnd/ih2cykGSCLiI18UNv9jRqj2gchSRi16KbmksO0BO4L 0Tb63bgzaq2XysKUmEdmfJrpUOwTwgNzBMOvjwFCsdOmxM1Mxu9LBhPA9ZT7GIEpEER0 oBxxUUZWd6hMG6cWwbmMROkEpGAC6hW3/gmuTcOPCMXqd5UuzAxIUCLoMf14hB7mHpsG /uuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:subject:user-agent:mime-version:date:message-id; bh=KBBY4F+xRVL8lqoI+bn0BASiH83lsm/yTyAljKHrDIg=; b=UvQud2032PPYNf2umagPOmRr/zag1U7kHArI7eg5AjGJeTmyb5WAddyQ4jcHfdGrOo zWwdLp0c6fhkZ3QxCcd5q3AlwKVRZAeTDcDrYmWszEaEf2FeatlPVPIUX+18i+zZN6tL Z0TW87JRmyGu3O1sPxbJpl5nK+r1giW41X7oN3cbICMfEVnSY//vAxEWownr2ws2Js2t oAzzVhn8tES49K96PehnJp0bBuC+Aj1qihdWpD5AZf1ZGFQTQ5Ryox78FAn4IKxR/8AD XaqLPi8T8y7TYCIJPacSdHsPR0uj5agWxD/lTQM6nzsKGKGUKLKstxR2iIfko9OKM8D8 LT+w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170902d2cd00b001637dbe1bc4si3983196plc.44.2022.08.05.01.50.18; Fri, 05 Aug 2022 01:50:33 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240425AbiHEILZ (ORCPT + 99 others); Fri, 5 Aug 2022 04:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235691AbiHEILY (ORCPT ); Fri, 5 Aug 2022 04:11:24 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 535D92AE0; Fri, 5 Aug 2022 01:11:21 -0700 (PDT) Received: from fraeml705-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LzdXK2SPmz67Cr0; Fri, 5 Aug 2022 16:08:49 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml705-chm.china.huawei.com (10.206.15.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Fri, 5 Aug 2022 10:11:19 +0200 Received: from [10.126.170.142] (10.126.170.142) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.24; Fri, 5 Aug 2022 09:11:18 +0100 Message-ID: Date: Fri, 5 Aug 2022 09:11:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3 00/17] Compress the pmu_event tables From: John Garry To: Ian Rogers CC: Will Deacon , James Clark , "Mike Leach" , Leo Yan , Peter Zijlstra , Ingo Molnar , "Arnaldo Carvalho de Melo" , Mark Rutland , "Alexander Shishkin" , Jiri Olsa , Namhyung Kim , Andi Kleen , "Zhengjun Xing" , Ravi Bangoria , Kan Liang , Adrian Hunter , , , , Stephane Eranian References: <20220729074351.138260-1-irogers@google.com> <3d0c1ec0-42ec-8c51-743b-5d93cabb53fb@huawei.com> In-Reply-To: <3d0c1ec0-42ec-8c51-743b-5d93cabb53fb@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.170.142] X-ClientProxiedBy: lhreml704-chm.china.huawei.com (10.201.108.53) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 02/08/2022 10:08, John Garry wrote: > > >> we can ignore the costs of the strings as >> they should be fully shared, especially for BDW-DE. > > Are you sure about this? I did not think that the compiler would have > the intelligence to try to share strings. That is the basis of the size > optimisation which I was proposing (that the compiler would not share > strings). JFYI, I am finding that all identical strings are shared, which is good. Thanks, John