From owner-svn-src-head@FreeBSD.ORG Fri Dec 12 14:57:25 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD09B1065675; Fri, 12 Dec 2008 14:57:25 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9C9818FC13; Fri, 12 Dec 2008 14:57:25 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBCEvPGr000689; Fri, 12 Dec 2008 14:57:25 GMT (envelope-from jkoshy@svn.freebsd.org) Received: (from jkoshy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBCEvPZL000688; Fri, 12 Dec 2008 14:57:25 GMT (envelope-from jkoshy@svn.freebsd.org) Message-Id: <200812121457.mBCEvPZL000688@svn.freebsd.org> From: Joseph Koshy Date: Fri, 12 Dec 2008 14:57:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185989 - head/sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 14:57:25 -0000 Author: jkoshy Date: Fri Dec 12 14:57:25 2008 New Revision: 185989 URL: http://svn.freebsd.org/changeset/base/185989 Log: Add a field to disambiguate between multiple threads awaiting callchain capture. Modified: head/sys/sys/pmc.h Modified: head/sys/sys/pmc.h ============================================================================== --- head/sys/sys/pmc.h Fri Dec 12 14:06:21 2008 (r185988) +++ head/sys/sys/pmc.h Fri Dec 12 14:57:25 2008 (r185989) @@ -814,6 +814,7 @@ struct pmc_sample { uint8_t ps_cpu; /* cpu number */ uint8_t ps_flags; /* other flags */ pid_t ps_pid; /* process PID or -1 */ + struct thread *ps_td; /* which thread */ struct pmc *ps_pmc; /* interrupting PMC */ uintptr_t *ps_pc; /* (const) callchain start */ };