From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13605 invoked by alias); 7 May 2013 18:28:25 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 13597 invoked by uid 89); 7 May 2013 18:28:25 -0000 X-Spam-SWARE-Status: No, score=-7.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 07 May 2013 18:28:24 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r47ISMeA031303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 May 2013 14:28:22 -0400 Received: from t510.usersys.redhat.com (dhcp-10-15-1-83.hsv.redhat.com [10.15.1.83]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r47ISLkW022187 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 7 May 2013 14:28:22 -0400 Message-ID: <518947C5.4020001@redhat.com> Date: Tue, 07 May 2013 18:28:00 -0000 From: David Smith User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: Thiago Manel CC: systemtap@sourceware.org Subject: Re: problems with sched tapset on ubuntu precise 3.2.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q2/txt/msg00090.txt.bz2 On 05/07/2013 10:05 AM, Thiago Manel wrote: > Hi list, > > I'm facing the following error when trying to run testsuite/systemtap.examples/ > process/schedtimes.stp script > > stap schedtimes.stp -x 2064 > > Warning: make exited with status: 2 > Warning: make exited with status: 2 > Warning: make exited with status: 2 > Warning: make exited with status: 2 > ^CWarning: make exited with status: 130 > semantic error: no match while resolving probe point > kernel.trace("sched_switch") > Pass 2: analysis failed. Try again with another '--vp 01' option. > > In fact, my installation does not know the "sched_switch" probe point ... > > stap -l 'kernel.function("sched_s*")' > kernel.function("sched_set_stop_task@/build/buildd/linux-3.2.0/kernel/sched.c:2205") > kernel.function("sched_setaffinity@/build/buildd/linux-3.2.0/kernel/sched.c:5543") > kernel.function("sched_setscheduler@/build/buildd/linux-3.2.0/kernel/sched.c:5407") > kernel.function("sched_setscheduler_nocheck@/build/buildd/linux-3.2.0/kernel/sched.c:5425") > kernel.function("sched_show@/build/buildd/linux-3.2.0/fs/proc/base.c:1359") > kernel.function("sched_show_task@/build/buildd/linux-3.2.0/kernel/sched.c:5998") > kernel.function("sched_slice@/build/buildd/linux-3.2.0/kernel/sched_fair.c:514") > kernel.function("sched_smt_power_savings_show@/build/buildd/linux-3.2.0/kernel/sched.c:7960") > kernel.function("sched_smt_power_savings_store@/build/buildd/linux-3.2.0/kernel/sched.c:7966") > kernel.function("sched_submit_work@/build/buildd/linux-3.2.0/kernel/sched.c:4473") You misread the error message a bit. Here's how the scheduler.cpu_off probe point is defined: ==== probe scheduler.cpu_off = kernel.trace("sched_switch") !, kernel.function("context_switch") { name = "cpu_off" task_prev = $prev task_next = $next idle = __is_idle() } ==== So, that probe point looks for the kernel tracepoint 'sched_switch' or the kernel function 'context_switch' (if it finds the tracepoint, it won't bother with the function). Since you got that error, that means systemtap thinks you don't have either. Let's test that theory. Try the following commands on your kernel and see what you get. Your 3.2 kernel should have both (assuming CONFIG_TRACEPOINTS is on). # stap -l 'kernel.trace("sched_*")' # stap -l 'kernel.function("context_switch")' Is CONFIG_TRACEPOINTS on in your kernel? -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)