From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6476 invoked by alias); 14 Sep 2015 16:29:56 -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 6462 invoked by uid 89); 14 Sep 2015 16:29:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 14 Sep 2015 16:29:55 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id E7B9D461C8; Mon, 14 Sep 2015 16:29:53 +0000 (UTC) Received: from t540p.usersys.redhat.com (unused [10.10.52.27] (may be forged)) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8EGTpFO020666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Sep 2015 12:29:53 -0400 Subject: Re: user space probe in ubuntu 14.04 To: Gareth , systemtap@sourceware.org References: From: David Smith Message-ID: <55F6F5FF.70007@redhat.com> Date: Mon, 14 Sep 2015 16:29:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-q3/txt/msg00132.txt.bz2 On 09/14/2015 09:54 AM, Gareth wrote: > Hey guys > > What's the requirements for using systemtap in ubuntu 14.04 (kernel > version = 3.13)? > > I have installed kernel-image package and found many probes by 'stap > -l 'kernel.function("acpi_*")'. However I sill can't use > process("xxx").xxx > > I tried find online documents and I'm sure uprobe is enabled, utrace > is not. But that document said utrace is deprecated long time ago... > > My output is here: http://paste.openstack.org/show/461444/ >From your output, I see you are trying to use markers, since you did the following: probe process("/usr/sbin/mysqld").mark("query__start") So, the first thing to do is make sure that your /usr/sbin/mysqld was compiled with markers. Try the following: # readelf -n /usr/bin/mysql | fgrep Name If that works, try: # stap -l 'process("/usr/sbin/mysqld").mark("*")' -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)