From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71936 invoked by alias); 26 Jan 2017 17:38:10 -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 71924 invoked by uid 89); 26 Jan 2017 17:38:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2302, H*MI:sk:13b0aeb 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; Thu, 26 Jan 2017 17:37:59 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B083A5144F; Thu, 26 Jan 2017 17:37:59 +0000 (UTC) Received: from t540p.usersys.redhat.com ([10.15.1.231]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0QHbw4a019974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Jan 2017 12:37:59 -0500 Subject: Re: Problem with vfs probe on Proxmox kernel To: Adam Guderski , systemtap@sourceware.org References: <13b0aebd-4bbe-f0ca-bf30-1605da0097f5@gmail.com> From: David Smith Message-ID: <1fba1b99-f649-5e0a-80d1-370ca321a80b@redhat.com> Date: Thu, 26 Jan 2017 17:38:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <13b0aebd-4bbe-f0ca-bf30-1605da0097f5@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q1/txt/msg00060.txt.bz2 On 01/25/2017 04:44 PM, Adam Guderski wrote: > Hello, > > I've got problem running sample traceio.stp script (obtained from > https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/SystemTap_Beginners_Guide/#traceio2) > on Proxmox VE 4.4 system. Proxmox is a Debian-based Linux distro which > uses a custom Ubuntu-based kernel. The Proxmox repository does not > provide a kernel with debug symbols, so I had to compile it from > provided sources - version 4.4.35-2-pve, to be specific. Debian repos > (jessie) provide systemtap in version 2.9, which from what I read does > not support 4.4 kernels, so I compiled systemtap from sources (from > master branch, version 3.1/0.159). > > With such setup, I'm able to run sample "hello world" stap script and > couple of others, but all scripts with vfs probes fail. I attach full > verbose (-vvv) output here: http://pastebin.com/DiWMsrtr, but I think > the main error can be explained below. What can I do about it? I > searched for couple of hours but did not find anything that would help. As the following states: > # stap -v traceio2.stp 0xfb00 > Pass 1: parsed user script and 119 library scripts using > 71608virt/43716res/4464shr/39904data kb, in 140usr/0sys/132real ms. > semantic error: while resolving probe point: identifier 'kernel' at > /usr/local/share/systemtap/tapset/linux/vfs.stp:987:19 > source: probe vfs.write = kernel.function("vfs_write") > ^ > > semantic error: missing x86_64 kernel/module debuginfo [man > warning::debuginfo] under '/lib/modules/4.4.35-2-pve/build' Note that a systemtap "hello world" program doesn't need kernel debuginfo, but a script using vfs probes does need kernel debuginfo. Does any script that needs debuginfo work, or is it just vfs probes? To test, try 'stap -l 'kernel.function("*_write")'. You should see items like 'sys_write' and 'vfs_write' in the output. systemtap is expecting to find the kernel's debuginfo at /lib/modules/4.4.35-2-pve/build. Is it there? If not, you'll either need to move it there or use the 'SYSTEMTAP_DEBUGINFO_PATH' environment variable to tell systemtap where you've put the debuginfo. -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)