From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753020Ab3LBStR (ORCPT ); Mon, 2 Dec 2013 13:49:17 -0500 Received: from mail-qa0-f45.google.com ([209.85.216.45]:47255 "EHLO mail-qa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266Ab3LBStQ (ORCPT ); Mon, 2 Dec 2013 13:49:16 -0500 Date: Mon, 2 Dec 2013 15:49:05 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Namhyung Kim , LKML , Jiri Olsa , David Ahern , Stephane Eranian , Andi Kleen , Pekka Enberg , Frederic Weisbecker Subject: Re: [PATCH 2/3] perf tools: Record sampling time for each entry Message-ID: <20131202184905.GA14254@ghostprotocols.net> References: <1385967199-3759-1-git-send-email-namhyung@kernel.org> <1385967199-3759-3-git-send-email-namhyung@kernel.org> <20131202123918.GE2371@ghostprotocols.net> <1385996264.1710.26.camel@leonhard> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1385996264.1710.26.camel@leonhard> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Dec 02, 2013 at 11:57:44PM +0900, Namhyung Kim escreveu: > 2013-12-02 (월), 09:39 -0300, Arnaldo Carvalho de Melo: > > Em Mon, Dec 02, 2013 at 03:53:18PM +0900, Namhyung Kim escreveu: > > > From: Namhyung Kim > > > > > > Calculate elapsed time for each sample and record it. The elapsed > > > time is a diff between current sample->time and previous sample->time > > > which was saved for each evsel and cpu. > > > > Can you elaborate on why this is interesting to have? What meaning can > > one get from the sample->time - prev_sample->time? > > > > We need clearer changelogs... > > Sorry about that.. how about this? > > Sometimes users might want see a relation between value and time of a > sample. And the time itself is a very important information to have. > As the sample->period value is a diff of counter values between samples > it might make sense to add time-diff between samples into a hist entry. > > To do that, calculate elapsed time for each sample and record it. The > elapsed time is the diff between current sample->time and previous > sample->time which was saved for each evsel. Much better! Thanks, and please consider adding this to the man page as well, in a followup patch. I'll add the above explanation to the patch, that, as I could read seems to not have had any nak, right? - Arnaldo