Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCAEFC61DA3 for ; Tue, 21 Feb 2023 14:07:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234058AbjBUOHL (ORCPT ); Tue, 21 Feb 2023 09:07:11 -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 ); 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 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 v2 0/3] perf/x86: Use sysfs_emit() in show() callback function Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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(-) -- 2.34.1