Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9711867rwp; Thu, 20 Jul 2023 08:39:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeLvbB7kdFeQApKObQXLSzFBLmLXbVMIPcCen5dpCO+FEHF9r0/WM+Rla2i3ikzRQjYLgQ X-Received: by 2002:aa7:cf17:0:b0:51e:eaf:4fea with SMTP id a23-20020aa7cf17000000b0051e0eaf4feamr2145984edy.35.1689867594836; Thu, 20 Jul 2023 08:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689867594; cv=none; d=google.com; s=arc-20160816; b=Szi17ZaZnFMZn8X2pML80jpKrwMToa5N2M4DYBDFQj2I9K34afHDzGLyx5nsWkJdD9 FpLe7TpyNB9yLEDiEtiehC5Y1exhbulAcUi9wa7bi2jFhAXKpX4D6X4GwHB6Uw9tJfDn s/8+SOL3fQKIkuHKdx8nLHMpYff4sxJgvNx61gg8WcboRFxufjlPnPpCZcjzQ68porJv DPhe/YDShtu+RCbn2LPZAHWUsGaB+bGmr++x/+BjEeJ34eRp+KGy+62ztj03J/oYJd3J puJ0PO3IIZTric1PfmVqeQ+kFR6rklU2MX81fYbZmKSyNFeuipX1pPGE3xPei4Aqt7B0 NyaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0jQPKS9l/WQSE6xxL14djzZNGwUxrJ7KH7GpRJrFmSk=; fh=tT1xLpyX+/RKP2IcqK9IWhr+a17vK1CUq3DUagaYIO0=; b=UIi8SwUFjNvYGeftyEB1jE0T/HOI4U0PXzw0uYK1RYKYKms6Mb7dlmTYtbkWM0V6PX OGaSg81HNDxtyZkYgn4ylWonGwMhZt9aG7zdh1K5NCHLAwGCBENIN/ZtgpxJWBcktKL/ SCa5C00vmNtOE6X1tjqwMQaLkUBD3v2PxuEWV5nXmu1QNmeEx50Ch1nuQiPYPovlfGQl oNvQojGg830weSG3YNM49y5Fd52DK3T8ngvge1ZXiKQh9q9L+wdDvSKmh1TA6VpyPQHg QNNZ46vZihNmYcT6RiTiFM0tS4HCHpcL5ZlFUMISl92UHEcZfIOKWFCMhph6w8Cc3W88 0B/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RNyOBCrA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020aa7cf15000000b0051e52d264b6si958961edy.236.2023.07.20.08.39.29; Thu, 20 Jul 2023 08:39:54 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RNyOBCrA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232833AbjGTPgp (ORCPT + 99 others); Thu, 20 Jul 2023 11:36:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbjGTPgY (ORCPT ); Thu, 20 Jul 2023 11:36:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 136FD2736; Thu, 20 Jul 2023 08:36:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8CDF7619D3; Thu, 20 Jul 2023 15:36:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC785C433C7; Thu, 20 Jul 2023 15:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689867365; bh=SOzOaZcxUwotyfy7EE1Z0020fjnxmP5RBNM/JGQZF8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RNyOBCrAF9O3xXs3kXkF1oesh8velKQP6zAvyU/LtoGoR8cf6uwJy80UIKr6Cs6gv 9QT21CYpbWwzM6U6EslVurwe9LJHRAooMLvWPyIyiYCjN7PT+bF7p6u1ZCDnQepOQd 3ikn3zZEH5CDPWrsatK3xYCrO5qnzfLS8YF6Y+EjjQW6mazHBHRiPXvxAIASqSPM7+ JwB0HTUQK4YvKeodFrRQN1dlmVfobZ8ix0fVUdz8kNNRzjp5oLhW1BMgARROmH0kVm mddXZsRr9kRHp5O8LyeAJDYvGSjVD/wcsePXTYeOD4VfBteVZy9Em7bsjKjEZAdHUY S8xCHg1YPoV4w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E565240516; Thu, 20 Jul 2023 12:36:01 -0300 (-03) Date: Thu, 20 Jul 2023 12:36:01 -0300 From: Arnaldo Carvalho de Melo To: Anup Sharma Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/6] Add support for Firefox's gecko profile format Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Em Thu, Jul 20, 2023 at 12:14:10PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jul 19, 2023 at 04:34:28PM +0530, Anup Sharma escreveu: > > On Wed, Jul 19, 2023 at 04:15:52AM +0530, Anup Sharma wrote: > > > This patch series adds support for Firefox's gecko profile format. > > > The format is documented here [1]. > > > > > > I have incorporated several changes based on feedback from the > > > previous version of the patch. > > > > > > Changes in v3: > > a small typo here. It should be v4 instead of v3 (changes in v4). > > > - Implemented object-oriented programming (OOP) approach for Thread and Sample > > > to improve code organization and maintainability. > > > - Enhanced user experience by introducing argparse for changing color settings > > > of user and kernel symbols during execution. > > > - Ensured proper module encapsulation by adding imports wherever necessary. > > > - Improved code readability by adding descriptive comments and type annotations. > > > > > > These changes focus on adopting OOP principles, enhancing user interaction with argparse, > > > and making the code more readable with comments and type information. > > > > > > TODO: > > > - use cpu_mode to determine the category instead of finding it from symbol name. > > > - Write a test. > > > - add direct execution command for this script under script/python/bin directory. > > > > > > Committer Testing: > > > - Tested with a perf.data file generated for single and multiple cpu > > > cores enabled. > > > - Uploaded the stdout into profiler.firefox.com and verified the > > > output. > > > - Verified the output with the output generated by the existing > > > script as mentioned here [2]. > > > Method: > > > - perf record -F 99 -a -g -- sleep 5 > > > - perf script firefox-gecko-converter.py > output.json > > > - upload output.json to profiler.firefox.com > > I see it in the cover letter, will try now. I followed the instructions, uploaded a output.json produced and it seems to work, good job! - Arnaldo