From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23486 invoked by alias); 12 Oct 2006 20:11:02 -0000 Received: (qmail 23478 invoked by uid 22791); 12 Oct 2006 20:11:02 -0000 X-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Oct 2006 20:10:56 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k9CKAs3g029939; Thu, 12 Oct 2006 16:10:54 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k9CKAsbN015791; Thu, 12 Oct 2006 16:10:54 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id k9CKArY7002092; Thu, 12 Oct 2006 16:10:54 -0400 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id A5D00800002; Thu, 12 Oct 2006 16:10:53 -0400 (EDT) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id k9CKArGs019199; Thu, 12 Oct 2006 16:10:53 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id k9CKArgc019196; Thu, 12 Oct 2006 16:10:53 -0400 X-Authentication-Warning: ton.toronto.redhat.com: fche set sender to fche@redhat.com using -f To: "Jason Yeh" Cc: systemtap@sources.redhat.com Subject: Re: resolving probe point context_switch References: <20061012152411.GA3979@redhat.com> <452E8704.1020105@amd.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Thu, 12 Oct 2006 20:11:00 -0000 In-Reply-To: <452E8704.1020105@amd.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-q4/txt/msg00106.txt.bz2 "Jason Yeh" writes: > [...] I have been trying to get Systemtap to place probe in the > scheduler and hoping to experiment using Systemtap to emulate > certain behavior of Perfmon2 similar to what Frank mentioned in the > email titled "Model-Specific Register". Thanks for giving that a try! > [...] > while: resolving probe point kernel.inline("context_switch") > while: resolving probe point kernel.inline("finish_task_switch") > while: resolving probe point kernel.inline("pull_task") > while: resolving probe point kernel.inline("idle_balance") We have some known weaknesses probing inline functions, which we may be able to improve significantly. In the mean time, something coarser might have to do: probe kernel.statement("schedule") { /* leaving tid() on cpu() */ } probe kernel.function("schedule").return { /* resuming tid() on cpu() */ } FWIW, the scheduler is one of the spots that would benefit most from static instrumentation markers. - FChE