This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to track the functions in self-written module using SystemTap?


On 12/01/2015 08:22 PM, Nan Xiao wrote:
>> Hmm. OK, let's try a couple more things:
> 
>> 1) It could be that systemtap is missing the module load somehow. So,
>> try this:
> 
>> - load the module
>> - run stap
>> - exercise the module
>> - unload the module
>> - kill stap
> 
> Still outputs nothing.

Can you do the same thing here and add '-DDEBUG_KPROBES' to the stap
command and show us the output?

>> 2) It looks like you are running the rpm version. Can you install the
>> systemtap-testsuite rpm and try the following (as root):
> 
>> # cd /usr/share/systemtap/testsuite
>> # make installcheck RUNTESTFLAGS="modules_out_of_tree.exp kmodule.exp"
> 
>> That should run 2 testcases that test out-of-tree modules and in-tree
>> modules.
> 
> The output likes this:
> 
> # make installcheck RUNTESTFLAGS="modules_out_of_tree.exp kmodule.exp"

... stuff deleted ...

> spawn -ignore SIGHUP gcc hello.c -g -m32 -lm -o hello-m32
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libgcc_s.so when searching for
> -lgcc_s
> /usr/bin/ld: cannot find -lgcc_s
> collect2: error: ld returned 1 exit status
> 
> 
> 
> **** failed gcc m32 smoke test:
> 
> /usr/bin/ld: cannot find -lgcc_s
> collect2: error: ld returned 1 exit status
> 
> Please install libgcc and glibc development packages for m32

The testsuite checks a few things before starting, one of them being
that gcc can create 32-bit executables on an x86_64 system. If you want
to proceed further here, you'll have to do the following:

# yum install glibc.i686 libgcc.i686 glibc-devel.i686 libstdc++-devel.i686

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]