Message ID | cover.1676987821.git.drv@mailo.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp38769wrd; Tue, 21 Feb 2023 06:29:26 -0800 (PST) X-Google-Smtp-Source: AK7set+pksQcqBvLuZ2gsjrI8Pq4gBmrYogtwAU5Jk/bqnmAH7B7OTZtCIH3ghpBuqhBPqa7fR/w X-Received: by 2002:aa7:c643:0:b0:4ac:c39b:8450 with SMTP id z3-20020aa7c643000000b004acc39b8450mr3388251edr.8.1676989765961; Tue, 21 Feb 2023 06:29:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676989765; cv=none; d=google.com; s=arc-20160816; b=CCx4+raANXCYQRdV6ZKjMpkMZVavdhj7o9r9CNUDkMMqYX53HF0umixvs6uJya+TBL kga+OWr1N35H5XjaxdhOl5UZRMOcVzY1AGadSTf3cxjGNZfBSOUwvG12W5zowvYLQP5v ZO/iC0zCxswNxvxj3Z3yDGaxKqARLGd4TZ4NNHlyGbmblJpM5n5upPxMDLQmbUH5y1Wh KaUXfoeao9g2xfNAst3sfjf3gMInf4P///e5k5YmynTaUWOI3p93TcnTUfBG2tvdYMB2 fpef1h7YrEbZBHLuczO8MjMzdgxGfXzbvvH2d3ZQXBhSEFEX5ASV4re9PbrzMKftnhwv RBGQ== 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=cYB6RxIZkNzNWU8cn9YOFO+SmnlzqqK3g62uthaPAKc=; b=InL1Az9H9lHFw405SVnoRicXroacncv2NCL/CQ+YDnRUYSlrATWigH9P+7XoN6UaP1 TJAzGCJ7bzKpr5G5/sFlqOMFTIb1bfRTrbJc+vkdnBZ8T5uRqa81+QucuuG7jtJAlSW/ PrQvECmyuZeifx4b42pt5M4ZY+O+JfphCGnUXg9cZNnNnhK5avfVW+CmLMcEsVhjXB6w 0prK7IhEIyL+bdhBceEx9dX2D5L5+l7uObwKDR3dYrmYCA3YRjgfVUkGIwhwhVKCyLii xxJ7gfq2RYfb7nEtjXIm7DQaujhiwuont916s1ZlheQaQ9Td32Gdc/9TBLwmedcIUBtK +lBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=hiiOKQHa; 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 n17-20020aa7c451000000b004ab15df672asi4759358edr.469.2023.02.21.06.28.33; Tue, 21 Feb 2023 06:29: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; dkim=fail header.i=@mailo.com header.s=mailo header.b=hiiOKQHa; 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 S233982AbjBUOHK (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Tue, 21 Feb 2023 09:07:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233726AbjBUOHH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Feb 2023 09:07:07 -0500 X-Greylist: delayed 5163 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 21 Feb 2023 06:06:45 PST Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1694D2A9B0; Tue, 21 Feb 2023 06:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1676988336; bh=bCR8hjz70RlOKUuIbENjx55U4hJWurj7Xa7W9hR+mDo=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=hiiOKQHaF4+y4d+Y/elf07GHwdAxisNY5ksvA/j5Fp/BA+5bc+9IbcM3jI87PPRp8 cxSZ3n3S9zAg0I9s7wE0dpEB7VqaSwmviZIMUWqW5bq2BaIo7GXbNdbM3d+pdzWyxV mQyy+1E0EF+69WkfOUtSBYKp+spx7n8bp96POK/g= Received: by b-4.in.mailobj.net [192.168.90.14] with ESMTP via ip-206.mailobj.net [213.182.55.206] Tue, 21 Feb 2023 15:05:36 +0100 (CET) X-EA-Auth: wcz6MONW75g0H0SE9GNCZn0QESa0gC9DOXMdKlDWtiCRaKIjlOumYch7FWaYEfR33+PeTF8SVvgqKgYNtPXRLsaz0Aesds/p Date: Tue, 21 Feb 2023 19:35:29 +0530 From: Deepak R Varma <drv@mailo.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar <ssengar@microsoft.com>, Praveen Kumar <kumarpraveen@linux.microsoft.com>, Deepak R Varma <drv@mailo.com> Subject: [PATCH v2 0/3] perf/x86: Use sysfs_emit() in show() callback function Message-ID: <cover.1676987821.git.drv@mailo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758451220700862904?= X-GMAIL-MSGID: =?utf-8?q?1758451220700862904?= |
Series |
perf/x86: Use sysfs_emit() in show() callback function
|
|
Message
Deepak R Varma
Feb. 21, 2023, 2:05 p.m. UTC
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 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 <peterz@infradead.org> 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 | 8 +++----- arch/x86/events/intel/core.c | 6 +++--- arch/x86/events/intel/pt.c | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-)