From owner-p4-projects@FreeBSD.ORG Fri Jul 28 00:56:04 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 69F3E16A4E1; Fri, 28 Jul 2006 00:56:04 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31F7316A4DF for ; Fri, 28 Jul 2006 00:56:04 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0027843D58 for ; Fri, 28 Jul 2006 00:56:03 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6S0u3kB051406 for ; Fri, 28 Jul 2006 00:56:03 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6S0u39v051403 for perforce@freebsd.org; Fri, 28 Jul 2006 00:56:03 GMT (envelope-from jb@freebsd.org) Date: Fri, 28 Jul 2006 00:56:03 GMT Message-Id: <200607280056.k6S0u39v051403@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 102619 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 00:56:04 -0000 http://perforce.freebsd.org/chv.cgi?CH=102619 Change 102619 by jb@jb_freebsd2 on 2006/07/28 00:55:46 Move the CPU register snapshot code into an include file so that it can be included as part of the cpu_snapshot_save leaf function as well as being included inline in asm code where a 'call' to a function at tl1 would end in tears. The index to the per-cpu snapshot array is the program counter when embedded in asm code and %o7 when included in the cpu_snapshot_save leaf function. The most imprtant thing to capture in this info is the index (program counter or return address) because that identifies the section of code that the CPU was last seen executing. None of this would be needed if Sun would just make the hypervisor give access to another CPU's registers. Apparently that is work in progress at Sun. Affected files ... .. //depot/projects/dtrace/src/sys/sun4v/include/cpu_snapshot_save.h#1 add Differences ...