public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "eldereng at hotmail dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug uprobes/15016] New: SystemTap + Probing User Space‏
Date: Mon, 14 Jan 2013 21:46:00 -0000	[thread overview]
Message-ID: <bug-15016-6586@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2013-01-14 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 21:46 eldereng at hotmail dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15016-6586@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).