public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug uprobes/15016] New: SystemTap + Probing User Space‏
@ 2013-01-14 21:46 eldereng at hotmail dot com
  2013-01-14 21:55 ` [Bug uprobes/15016] " fche at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: eldereng at hotmail dot com @ 2013-01-14 21:46 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=15016

             Bug #: 15016
           Summary: SystemTap + Probing User Space‏
           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 applications
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()}' 
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 NLS

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

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-24 17:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-14 21:46 [Bug uprobes/15016] New: SystemTap + Probing User Space‏ eldereng at hotmail dot com
2013-01-14 21:55 ` [Bug uprobes/15016] " fche at redhat dot com
2013-01-15 23:11 ` eldereng at hotmail dot com
2013-01-16  0:03 ` jistone at redhat dot com
2013-01-16 16:50 ` eldereng at hotmail dot com
2013-01-16 17:13 ` fche at redhat dot com
2013-02-20 18:11 ` [Bug uprobes/15016] kernel 3.7.2xen uprobes can cause SEGV on probed app fche at redhat dot com
2020-04-24 17:10 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).