From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28319 invoked by alias); 16 Feb 2011 20:54:06 -0000 Received: (qmail 28311 invoked by uid 22791); 16 Feb 2011 20:54:06 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from xvm-20-226.ghst.net (HELO fruli.krunch.be) (92.243.20.226) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Feb 2011 20:53:58 +0000 Received: from localhost (localhost [127.0.0.1]) by fruli.krunch.be (Postfix) with ESMTP id CE119228BF; Wed, 16 Feb 2011 20:53:55 +0000 (UTC) Date: Wed, 16 Feb 2011 20:54:00 -0000 From: Adrien Kunysz To: Conoscenza Silente Cc: systemtap@sourceware.org Subject: Re: Fwd: probing user space function on Ubuntu Message-ID: <20110216205354.GA11878@baltika> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes 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 X-SW-Source: 2011-q1/txt/msg00270.txt.bz2 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1243 On Wed, Feb 16, 2011 at 07:49:18PM +0000, Conoscenza Silente wrote: > I am completely new to systemtap. I work with Ubuntu 10.10 > I would like to probe functions in my application so user-space probing. >=20 > I created the following "test.stp" file run using "stap test.stp" and > I am returned the following error. >=20 > " - semantic error: process probes not available without kernel > CONFIG_UTRACE while > resolving probe point process("/home/me/appName").function("main")=A0 -" >=20 > I goggle it and I need to have utrace in kernel=A0 in place. > Do you know how to get it and IF it is possible to have that in Ubuntu? > Was anyone successful? You need to rebuild your kernel with the utrace patch. The utrace patch is available from http://people.redhat.com/roland/utrace/ but I am not sure whether it applies cleanly to a regular Ubuntu kernel. Details on how to rebuild an Ubuntu kernel can probably be found in the Ubuntu documentation. It looks like this is not covered in the Ubuntu page of the SystemTap wiki. If you build an Ubuntu kernel including the utrace patch you are very welcome to document the process at http://www.sourceware.org/systemtap= /wiki/SystemtapOnUbuntu so the next person to ask can benefit from it :) --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 197 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk1cOWIACgkQKLX03ZSPZGyRbQCffGLhcjSmvWFmHIfkpKLW4O+Q kWsAn0PDWs/ERyOYeeEIuimvuUaIsq4V =hiPM -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--