From owner-cvs-all@FreeBSD.ORG Sun Feb 19 11:54:47 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F01D616A420; Sun, 19 Feb 2006 11:54:47 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF17843D45; Sun, 19 Feb 2006 11:54:47 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1JBslAW027855; Sun, 19 Feb 2006 11:54:47 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1JBslOZ027854; Sun, 19 Feb 2006 11:54:47 GMT (envelope-from marius) Message-Id: <200602191154.k1JBslOZ027854@repoman.freebsd.org> From: Marius Strobl Date: Sun, 19 Feb 2006 11:54:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sparc64/sparc64 db_trace.c exception.S X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 11:54:48 -0000 marius 2006-02-19 11:54:46 UTC FreeBSD src repository Modified files: sys/sparc64/sparc64 db_trace.c exception.S Log: - Don't bother traversing trap frames in stack_save(). This fixes panics when option DEBUG_LOCKS is used. Trap frames are determined by checking whether the caller was one of the tl0_*() or tl1_*() asm functions via a newly added pair of dummy symbols in exception.S which mark the begin and end of these functions. The tl_trap_* pair marks those in the special .trap section and the tl_text_* in the regular .text section. Because of their performance penalty db_search_symbol()/db_symbol_values() and linker_ddb_search_symbol()/linker_ddb_symbol_values() aren't used here for determining the caller, with db_search_symbol()/db_symbol_values() additionally not being reentrant. - For consistency, change db_backtrace() to also use the new markers for determining the tl0_*() and tl1_*() asm functions instead of bcmp()'ing the symbol name. - Use FBSDID in db_trace.c. PR: 93226 Based on a patch by: Antoine Brodin Ok'ed by: jhb Revision Changes Path 1.25 +18 -4 src/sys/sparc64/sparc64/db_trace.c 1.72 +16 -0 src/sys/sparc64/sparc64/exception.S