From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29982 invoked by alias); 22 Mar 2006 19:09:49 -0000 Received: (qmail 29975 invoked by uid 22791); 22 Mar 2006 19:09:49 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from mga02.intel.com (HELO orsmga101-1.jf.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Mar 2006 19:09:46 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101-1.jf.intel.com with ESMTP; 22 Mar 2006 11:09:12 -0800 Received: from scsmsx332.sc.intel.com (HELO scsmsx332.amr.corp.intel.com) ([10.3.90.6]) by orsmga001.jf.intel.com with ESMTP; 22 Mar 2006 11:09:11 -0800 X-IronPort-AV: i="4.03,119,1141632000"; d="scan'208"; a="14720602:sNHT326737943" Received: from scsmsx403.amr.corp.intel.com ([10.3.90.18]) by scsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 22 Mar 2006 11:09:09 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Proposed systemtap access to perfmon hardware Date: Wed, 22 Mar 2006 19:09:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Proposed systemtap access to perfmon hardware Thread-Index: AcZN265Qn9y+DUgUR526aTmjDJ/SQAAAe9iQ From: "Stone, Joshua I" To: "William Cohen" Cc: "SystemTAP" X-OriginalArrivalTime: 22 Mar 2006 19:09:09.0217 (UTC) FILETIME=[18E4D510:01C64DE4] X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00854.txt.bz2 William Cohen wrote: > It is and open question what the counters default are; do they start > running by default or have to be explicitly started. This could be solved with an extension on the probe declaration. For example, the sensible default is probably to start the counters, but we could allow a ".paused" to override that default. > If they are started by default, where exactly are they running? > Beginning of begin probe? End of begin probe? I think the perfmon setup needs to happen before all begin probes, so that the handle can be accessed within begin probes. I don't know that it really matters when you actually start the counters, but I would lean towards putting that after. A side note about handles - it might be useful to add a language semantic to make it easier to capture handles. There are actions that would make sense for handles of other probe types besides perfmon, especially being able to dynamically enable/disable kprobes and timers. Josh