From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10272 invoked by alias); 14 Jan 2013 21:46:54 -0000 Received: (qmail 10167 invoked by uid 48); 14 Jan 2013 21:46:18 -0000 From: "eldereng at hotmail dot com" To: systemtap@sourceware.org Subject: [Bug uprobes/15016] New:=?UTF-8?Q?=20SystemTap=20=2B=20Probing=20User=20Space=E2=80=8F?= Date: Mon, 14 Jan 2013 21:46:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: uprobes X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eldereng at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2013-q1/txt/msg00014.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D15016 Bug #: 15016 Summary: SystemTap + Probing User Space=E2=80=8F Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: uprobes AssignedTo: systemtap@sourceware.org ReportedBy: eldereng@hotmail.com Classification: Unclassified I use OpenSuSe 12.2 with XEN hypervisor. Studying the Systemtap (Chapter 4. User-Space Probing), I saw that it is possible to do probing for applicatio= ns in user space, but it's not work in my kernel. Running the command below, everything works correctly. stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'=20 Pass 1: parsed user script and 90 library script(s) using 80812virt/24360res/2512shr/22300data kb, in 130usr/10sys/151real ms. Pass 2: analyzed script: 1 probe(s), 1 function(s), 3 embed(s), 0 global(s) using 300208virt/126464res/8372shr/115764data kb, in 1360usr/730sys/2131real ms. Pass 3: translated to C into "/tmp/stap7aWTJW/stap_6d420bdef22bdcac997a4dae1ea7f20b_1642_src.c" using 289736virt/121028res/5764shr/115764data kb, in 0usr/0sys/8real ms. Updating /tmp/stap7aWTJW/Makefile.xen Pass 4: compiled C into "stap_6d420bdef22bdcac997a4dae1ea7f20b_1642.ko" in 1430usr/630sys/2499real ms. Pass 5: starting run. read performed Pass 5: run completed in 10usr/50sys/403real ms. But, running the command below, nothing works. stap -e 'probe process("/lib64/libc-2.15.so").function("malloc") {println("test")}' user-space facilities not available without kernel CONFIG_UTRACE or CONFIG_TRACEPOINTS/CONFIG_ARCH_SUPPORTS_UPROBES/CONFIG_UPROBES Pass 4: compilation failed. Try again with another '--vp 0001' option. Can someone help me? Below my settings: Kernel (recompiled with debuginfo): 3.4.11-2.16-xen #3 SMP Tue Nov 27 19:00:52 BRST 2012 x86_64 x86_64 x86_64 GNU/Linux Systemtap: Systemtap translator/driver (version 2.1/0.153, commit release-2.0-108-g6b378b7) Copyright (C) 2005-2012 Red Hat, Inc. and others This is free software; see the source for copying conditions. enabled features: AVAHI LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP N= LS Packets DEBUG: # rpm -qa | grep debug glibc-locale-debuginfo-32bit-2.15-22.6.4.x86_64 glibc-locale-debuginfo-2.15-22.6.4.x86_64 kernel-debug-base-3.4.11-2.16.1.x86_64 glibc-devel-debuginfo-2.15-22.6.4.x86_64 glibc-devel-debuginfo-32bit-2.15-22.6.4.x86_64 glibc-utils-debuginfo-2.15-22.6.4.x86_64 kernel-debug-devel-3.4.11-2.16.1.x86_64 glibc-debuginfo-2.15-22.6.4.x86_64 build-initvm-debuginfo-i586-2012.07.19-1.1.1.x86_64 kmtrace-debuginfo-4.8.4-2.1.2.x86_64 glibc-debuginfo-32bit-2.15-22.6.4.x86_64 glibc-utils-debuginfo-32bit-2.15-22.6.4.x86_64 glibc-extra-debuginfo-2.15-22.6.4.x86_64 --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are the assignee for the bug.