From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10566 invoked by alias); 2 Apr 2014 16:32:23 -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 10555 invoked by uid 89); 2 Apr 2014 16:32:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Apr 2014 16:32:21 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s32GWJX9027150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Apr 2014 12:32:19 -0400 Received: from [10.3.113.92] (ovpn-113-92.phx2.redhat.com [10.3.113.92]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s32GWJto005376; Wed, 2 Apr 2014 12:32:19 -0400 Message-ID: <533C3B93.6060404@redhat.com> Date: Wed, 02 Apr 2014 16:32:00 -0000 From: Josh Stone User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: liang xie CC: systemtap@sourceware.org Subject: Re: How to get the detailed kernel stack trace if specified fuction takes too long to finish? References: <5335A3A6.8010300@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q2/txt/msg00007.txt.bz2 On 04/02/2014 03:25 AM, liang xie wrote: > I tried the last scheduler script, the output just like this: > # stap --all-modules y.stp > WARNING: missing unwind/symbol data for module 'uprobes' > long sys_write in tid 10162 > Systemtap probe: kernel.trace("sched_switch") > long sys_write in tid 11510 > Systemtap probe: kernel.trace("sched_switch") > long sys_write in tid 11288 > Systemtap probe: kernel.trace("sched_switch") > > I could not figure out why "print_backtrace()" didn't output any log:) Ah, this "Systemtap probe:" message is fairly old. >>> My OS:2.6.32-220.el6.x86_64 >>> # stap -V >>> Systemtap translator/driver (version 1.6/0.152 non-git sources) Is it possible for you to update your systemtap rpm? 1.6 was released with RHEL 6.2 (presumably CentOS 6.2 as well), and we've since released systemtap-1.7 in 6.3, 1.8 in 6.4, and 2.3 in 6.5. I believe at least systemtap-1.8 will work better for you here. Josh