From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbdIOEV5 (ORCPT ); Fri, 15 Sep 2017 00:21:57 -0400 Received: from mga07.intel.com ([134.134.136.100]:43675 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbdIOEV4 (ORCPT ); Fri, 15 Sep 2017 00:21:56 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,396,1500966000"; d="scan'208";a="152107214" Date: Thu, 14 Sep 2017 21:21:54 -0700 From: Andi Kleen To: =?utf-8?B?56a56Iif6ZSu?= Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, David Ahern , namhyung@kernel.org, Wind Yu , Milian Wolff , sj38.park@gmail.com, tardyp@gmail.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com Subject: Re: Port the period data column to centos6.7 for perf script Message-ID: <20170915042154.GJ24844@tassilo.jf.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 15, 2017 at 10:24:15AM +0800, 禹舟键 wrote: > Hi, all. > I want to draw off-cpu flamegraph using perf script on centos6.7(kernel > version, 2.6.32-573), and I found perf script lacks the period data column > on that version. I  found two related patches, and modifed > builin-script.c in reference to those patches. > perf script:Add period data column authorJiri Olsa 2014-08-25 16:45:42 > +0200 commit535aeaae7de821ba5d43ee2a204ee667ca95aae4 > perf script: Add period as a default output column > commite8564b710c6df2c3aeb56c507c22f4bcfa4c0b2d) > I would just compile the newer perf binary for Centos6 and use that. It should work with older kernels too. That's much easier than backporting, and you get many more features. -Andi