Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbaAMIpt (ORCPT ); Mon, 13 Jan 2014 03:45:49 -0500 Received: from LGEMRELSE7Q.lge.com ([156.147.1.151]:64458 "EHLO LGEMRELSE7Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbaAMIpr (ORCPT ); Mon, 13 Jan 2014 03:45:47 -0500 X-AuditID: 9c930197-b7c20ae000001031-ed-52d3a7b9cfdf From: Namhyung Kim To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Namhyung Kim , LKML , Arun Sharma , Frederic Weisbecker , Rodrigo Campos Subject: Re: [PATCH 10/28] perf report: Cache cumulative callchains References: <1389170793-21926-1-git-send-email-namhyung@kernel.org> <1389170793-21926-11-git-send-email-namhyung@kernel.org> <20140111160254.GD1131@krava.brq.redhat.com> Date: Mon, 13 Jan 2014 17:45:45 +0900 In-Reply-To: <20140111160254.GD1131@krava.brq.redhat.com> (Jiri Olsa's message of "Sat, 11 Jan 2014 17:02:54 +0100") Message-ID: <87wqi4b77q.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiri, On Sat, 11 Jan 2014 17:02:54 +0100, Jiri Olsa wrote: > On Wed, Jan 08, 2014 at 05:46:15PM +0900, Namhyung Kim wrote: >> It is possble that a callchain has cycles or recursive calls. In that >> case it'll end up having entries more than 100% overhead in the >> output. In order to prevent such entries, cache each callchain node >> and skip if same entry already cumulated. [SNIP] >> + node = callchain_cursor_current(&callchain_cursor); >> + if (node == NULL) >> + return 0; > > some leftover? looks like nop.. Ah, right. I'll get rid of it. Thanks, Namhyung -- 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/