From patchwork Sun Feb 26 17:29:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 5875 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2037452wrd; Sun, 26 Feb 2023 09:43:33 -0800 (PST) X-Google-Smtp-Source: AK7set+7lNLb63KE2GUeidpD+dzGSYAKgRWmvSeWxSGWMHvDQlfDLOFf9rD/5hWQKLk2XQIAM2Z0 X-Received: by 2002:a05:6a20:7f9c:b0:cc:4118:65c4 with SMTP id d28-20020a056a207f9c00b000cc411865c4mr15590611pzj.5.1677433412942; Sun, 26 Feb 2023 09:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677433412; cv=none; d=google.com; s=arc-20160816; b=xqiqnIuPd+ajQvn+2hs19O/4kZmT8/k5kB6N5HUb3yO/w2ehUtbpv6wokc93WvYgwD N68Cx6kjzFsGGzm7groQk9LOF6AbSZA8dwENX30Yc+vmTDnmqFhDBIfvEeR5hf/WHw7M S2p0ZLk8vZXo/V5H1Ab5hSTds4w57u95ajvjzcfZdDwu3KGGzTJfJkoCUDRwTzHONvwS hJoo/+tz2Uxdc/wIWy08cW0zt7/m4gXPxB47Ajlq5nH0WL/UMKPJHDIij74KwpQSgdra 57IJbQ/f7jmkC9QH8EW3//4zhHeGMLqMEIXiH/+L0n2dt5xBgcaGbdJkoDrNtZqTspQj /PvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=D0GXrwlN+X9OxwZeFjdgTRc4AtY++hoHSryCiPtdpPA=; b=ab1GqzY4k4ziNHFAerRDFKHy9L4y0t2L/l5HDJxzaqV4CrNF7FHYTcY71x+He1/mLw JSeXIxzQpQwZHy2QUKf8tmwVZ/xBaQiQeJ+RTcRE2jbg8KXfn8ydgAEjqKcZpUoRxCqA h3ccPvbSSFxlKbm1mUlcFnLChlSaPNRjUlI/fMvhMePYvpj6d6m/Igo9V+/6HUdHsjXm u/qds5n7PMrhHOYClo3IdBMUY/mmqpFZvMhxNi1CnlHfh2Oj3ccydWg6rPuoegRMXA5r 5QTTpO9+TCCveHVwGhJp4wew3shXLDt7jDq+4UoS4S7p8818LOglXQua9a+zrJmYp8m0 vYsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=ST3Bq0j8; 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=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a056a000b5500b005906af305c5si5535929pfo.39.2023.02.26.09.43.19; Sun, 26 Feb 2023 09:43:32 -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; dkim=fail header.i=@mailo.com header.s=mailo header.b=ST3Bq0j8; 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=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjBZRaM (ORCPT + 99 others); Sun, 26 Feb 2023 12:30:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjBZRaK (ORCPT ); Sun, 26 Feb 2023 12:30:10 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1CD9EDA; Sun, 26 Feb 2023 09:30:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1677432549; bh=VQmwNmVrAERV0zN52XhLlnOd5K9FjwrR9MXapkDvdkk=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=ST3Bq0j8flgBd6CLSpBJaJp821SJDlonXvm4MC3a9b5kCdeDdGGqsZyPo2YFtTyl9 30VynAylFQYXRwNiwIRGE0VNjTVtsIpkecjPZXnvrTGkJiuGbOUqVkH4Vypld06aaF lOIKLjMJD+PfNxsvS7h8clsJjzHHea1WQ/MviJwA= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sun, 26 Feb 2023 18:29:09 +0100 (CET) X-EA-Auth: fkael2mfZj+SFGnPYpQJxaRTFt8nbZgb0FI/WJuBiFNB4gmTZwi2/c/B3LBGMFgQsEyabOWooddcVQlQ9viqwd06bM7POPOh Date: Sun, 26 Feb 2023 22:59:03 +0530 From: Deepak R Varma To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar , Praveen Kumar , Deepak R Varma Subject: [PATCH v3 0/3] perf/x86: Use sysfs_emit() in show() callback function Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758916418390458780?= X-GMAIL-MSGID: =?utf-8?q?1758916418390458780?= The patch set proposes to replace use of sprintf family function usage for formatting data to be returned to the user space using show callback functions. The modified files have the same maintainer list though they correspond to different drivers. Since its the same, I clubbed these into a patch set. If this is not correct, I can send in individual driver specific patches. Changes in v3: - For patch 1, an erroneous change proposed was removed. Feedback provided by Peter Zijlstra - No changes for Patch 2 and 3 of the series. Changes in v2: 1. Update the patch log message to provide details on the problem associated with current implementation and how the proposal is a better solution. Feedback provided by Peter Zijlstra Deepak R Varma (3): perf/x86/core: Use sysfs_emit() in show() callback function perf/x86/intel/pt: Use sysfs_emit() in show() callback function perf/x86/intel: Use sysfs_emit() in show() callback function arch/x86/events/core.c | 4 ++-- arch/x86/events/intel/core.c | 6 +++--- arch/x86/events/intel/pt.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)