Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760152Ab1FXALy (ORCPT ); Thu, 23 Jun 2011 20:11:54 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:61995 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759835Ab1FXALw (ORCPT ); Thu, 23 Jun 2011 20:11:52 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=aF+3SFnZ3zmrtXcxVCEgAoozIqRLxt7Zyn62YDH9HF9nerf0pqd1Ya2bYBlnYtzX6B hL/oDqESkEYB/Vpmy9kHpzLYSsVB5QpB668l09gyMotnGMhBClkmWVqAoQHG9slHvOjV ah7JEdDtGPIOdNVPMfA0M+o64TcL+8wvBakWM= Date: Fri, 24 Jun 2011 02:11:48 +0200 From: Frederic Weisbecker To: David Ahern Cc: Arun Sharma , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Using a new perf tool against an older kernel Message-ID: <20110624001145.GE8058@somewhere.redhat.com> References: <4E026123.4060208@fb.com> <4E034C2C.30509@gmail.com> <4E03968A.5010008@fb.com> <4E039BC7.4050802@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E039BC7.4050802@gmail.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 Content-Length: 1354 Lines: 41 On Thu, Jun 23, 2011 at 02:02:15PM -0600, David Ahern wrote: > > > On 06/23/2011 01:39 PM, Arun Sharma wrote: > > On 6/23/11 7:22 AM, David Ahern wrote: > > > >> I have not seen issues like this using newer perf userspace against > >> older kernels. For example, my laptop was running Fedora 14 (2.6.35) and > >> now Fedora 15 (2.6.38.8) and I typically use latest perf builds (e.g., > >> testing patches). > > > > I narrowed it down to PERF_SAMPLE_RAW: > > > > perf record -ag -- sleep 1 > > > > is fine, but: > > > > perf record -agR -- sleep 1 > > > > fails for me most of the time. The reason I needed to use the -R in the > > first place is that "perf script" fails on older kernels with: > > > > Samples do not contain timestamps. > > > > With the newer perf, I don't get errors, but the timestamp field is > > invalid. So I need to use the -R flag to get valid timestamps + > > stacktraces out of "perf script". > > That should have been fixed. > > And -T on record gets the timestamps. > > David Right, it would be nice to suggest that from perf script when timestamps are not recorded. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/