Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753945AbbKWNGw (ORCPT ); Mon, 23 Nov 2015 08:06:52 -0500 Received: from smtprelay.synopsys.com ([198.182.60.111]:53147 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbbKWNGu convert rfc822-to-8bit (ORCPT ); Mon, 23 Nov 2015 08:06:50 -0500 From: Vineet Gupta To: Jan Beulich CC: lkml , arcml , Peter Zijlstra Subject: dwarf unwinder question Thread-Topic: dwarf unwinder question Thread-Index: AdEl72rJeB1Pt4QvSVCOStxnQ500rg== Date: Mon, 23 Nov 2015 13:03:59 +0000 Message-ID: Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.197.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1209 Lines: 27 Hi Jan, ARC port has kernel dwarf unwinder shamelessly copied from your original code which existed in tree at the time (circa 2008) I was wondering if u could answer a question in that respect: arch/arc/kernel/unwind.c If the binary search for a PC fails, it resorts to linear search, which for our case was taking 3 million cycles (vs. normal ~2000). Do you remember why this linear search step was needed - after all the binary lookup table is created out of early parsing of the same data. The fail scenario is for hand asm symbols lacking gcc generated dwarf info and we don't have yet the CFI pseudo ops support in assembler. I can fix memset etc to have empty dwarf info, still unwinder needs this fixing. In case of perf, an overflow interrupt in hand optimized memset leads into the unwinder slow path linear search which causes RCU stalls and such. I'm going to remove it but was wondering if u could provide some historic background. TIA, -Vineet -- 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/