Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752936AbZLAGWd (ORCPT ); Tue, 1 Dec 2009 01:22:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751870AbZLAGWb (ORCPT ); Tue, 1 Dec 2009 01:22:31 -0500 Received: from casper.infradead.org ([85.118.1.10]:43691 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbZLAGWb (ORCPT ); Tue, 1 Dec 2009 01:22:31 -0500 Date: Mon, 30 Nov 2009 22:24:31 -0800 From: Arjan van de Ven To: Li Zefan Cc: Ingo Molnar , =?UTF-8?B?RnLDqWTDqXJpYw==?= Weisbecker , Arnaldo Carvalho de Melo , Peter Zijlstra , LKML Subject: Re: [PATCH 2/2] perf timechart: Remove open-coded event parsing code Message-ID: <20091130222431.78a300e7@infradead.org> In-Reply-To: <4B14B21C.2040406@cn.fujitsu.com> References: <4B14B201.9030708@cn.fujitsu.com> <4B14B21C.2040406@cn.fujitsu.com> Organization: Intel X-Mailer: Claws Mail 3.7.3 (GTK+ 2.16.6; i586-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 788 Lines: 25 On Tue, 01 Dec 2009 14:05:16 +0800 Li Zefan wrote: > - size = 8; > + if (!(sample_type & PERF_SAMPLE_RAW)) { > + fprintf(stderr, > + "No trace sample to read. Did you call perf > record " > + "without -R?"); > + return -1; > } while I like your cleanup... I am not so sure this printk makes sense whatsoever.... the user did not use "perf record" to get here... -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org -- 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/