Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13396002rwb; Sun, 27 Nov 2022 05:12:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf69tzj8MWpHGystB9OLiJTxRHjOUclWZRU1LeCUQseaX+2UlBz52ZevBKNECD01B/9nQ2WJ X-Received: by 2002:a17:903:452:b0:189:6574:7ac2 with SMTP id iw18-20020a170903045200b0018965747ac2mr12919144plb.65.1669554745327; Sun, 27 Nov 2022 05:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669554745; cv=none; d=google.com; s=arc-20160816; b=l/GwQ+8bjRKXdkC3DthKz0lRcUouu8SP+bi8lwhR8HcMVBOKiQQpIj6c7jAhkXCRWN +JSwPMIRdGb8Ju1ke1vMRsMMjt/eQ24KTTGEKJKhwu5Q7LVAi8Sie4VBYqtCUWZWzWqD Ay1k5IgVQzh7yZDC0H4MxID1N7VPNgf2pZDoUhsTdeSD3bjJC7sYAh60OIa8Ul37Rjkm 1MPYjWtZELMbfd/A01jzQC5BC7+Q0rjvpuBenBqCqDsIF1Z52rk8YYUtVmGTQBYeCQZ1 fXM9klxPmLK1fIGCks8jjrd4g2jPABbKlOFD0+Zhiwn+lgbvYcCJkM8AlBF08+rcfYXZ 4ctg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=QCVOfoXHjQK+VN3bvx9UzZlm3VMOip+OF4xvSuscVg8=; b=V46YkMBtTxHGwIz8if4MFPhQwPSugs4V7Hn+vLjeVfi+vAPqmhmXqIra6Jkb/E54j9 mxItiYuqgX6AgJabT5jnJI/hzYbnwa38bmXGfaLoOZeTrzB8/xUwFlVVf7LYosk3TcHY R66Q/7oLLpCs5nBZXA4B0Tdyd9uffyWqtAk4542mh8Maowpuk4BprArjGsysCKFxDYwP LxD2tWd69PK0LqmgRN89zcooioKCgq2OPA/KauuhJx6D3Ot22r2wKd6g9EnJjgZ/94Cw NRNK13g/hBkwK9d5mGxJp6zaMVugCu5Lhiy+IADLj3MPea40xdUXTM9h0bZBEx4UvXLE C9zw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om1-20020a17090b3a8100b0020d542eb5f0si13112150pjb.110.2022.11.27.05.12.13; Sun, 27 Nov 2022 05:12:25 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbiK0NB2 (ORCPT + 84 others); Sun, 27 Nov 2022 08:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiK0NBU (ORCPT ); Sun, 27 Nov 2022 08:01:20 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80C25B49B; Sun, 27 Nov 2022 05:01:19 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 27 Nov 2022 21:00:33 +0800 (GMT+08:00) X-Originating-IP: [182.148.15.36] Date: Sun, 27 Nov 2022 21:00:33 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] perf/x86/amd/lbr:convert sysfs snprintf to sysfs_emit X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <228a1b59.1d5.184b92cd4b9.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCXn+ByX4NjpXIFAA--.100W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQADB2FEYx0G1gAIsG X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKYXJjaC94ODYvZXZlbnRzL2Ft ZC9jb3JlLmM6MTI3Njo4LTE2OiBXQVJOSU5HOiB1c2Ugc2NucHJpbnRmIG9yIHNwcmludGYKClNp Z25lZC1vZmYtYnk6IEthaUxvbmcgV2FuZyA8d2FuZ2thaWxvbmdAamFyaS5jbj4KLS0tCiBhcmNo L3g4Ni9ldmVudHMvYW1kL2NvcmUuYyB8IDIgKy0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlv bigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2FyY2gveDg2L2V2ZW50cy9hbWQvY29y ZS5jIGIvYXJjaC94ODYvZXZlbnRzL2FtZC9jb3JlLmMKaW5kZXggZDZmMzcwM2U0MTE5Li41ZGIz ODRmNmNhNGMgMTAwNjQ0Ci0tLSBhL2FyY2gveDg2L2V2ZW50cy9hbWQvY29yZS5jCisrKyBiL2Fy Y2gveDg2L2V2ZW50cy9hbWQvY29yZS5jCkBAIC0xMjcyLDcgKzEyNzIsNyBAQCBzdGF0aWMgc3Np emVfdCBicmFuY2hlc19zaG93KHN0cnVjdCBkZXZpY2UgKmNkZXYsCiAJCQkgICAgICBzdHJ1Y3Qg ZGV2aWNlX2F0dHJpYnV0ZSAqYXR0ciwKIAkJCSAgICAgIGNoYXIgKmJ1ZikKIHsKLQlyZXR1cm4g c25wcmludGYoYnVmLCBQQUdFX1NJWkUsICIlZFxuIiwgeDg2X3BtdS5sYnJfbnIpOworCXJldHVy biBzeXNmc19lbWl0KGJ1ZiwgIiVkXG4iLCB4ODZfcG11Lmxicl9ucik7CiB9CiAKIHN0YXRpYyBE RVZJQ0VfQVRUUl9STyhicmFuY2hlcyk7Ci0tIAoyLjI1LjEK