public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Met Problem on Enable SystemTap on Android
@ 2011-08-30 19:11 Yao,Yanjun
  2011-08-30 19:32 ` Josh Stone
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-08-30 19:11 UTC (permalink / raw)
  To: systemtap

Hi all,

I tried enable SystemTap on Android, however, after I finished all the
set up, no matter what I tried to run, I always get a "stap: 57:
Syntax error: "(" unexpected" error.

The following are my setting up steps:
1. Download android source.
2. Enable user debuggability by using command "lunch full_crespo-userdebug"
3. Download and install "systemtap-1.5-macharm" by following
instructions on OMAPedia Systemtap webpage
4. Use "adb push" to copy all things inside "systemtap-1.5-macharme/"
to "/data/systemtap-1.5-macharm" on the phone
5. Copy "Android_Source/out/target/product/crespo/system/modules/bcm4329.ko"
into "/data/systemtap-1.5-macharm/bin" on the phone
6. Run "adb shell", then goto directory
"/data/systemtap-1.5-macharm/bin" and run "staprun /bcm4329.ko".

After that, I tried all the executables in the
"/data/systemtap-1.5-macharm/bin", all of them report an syntax error.

May I ask what have I done wrong?

I was trying to set up the systemtap on android for almost two
weeks... Does anyone have a detailed manual to be shared?

Any help would be welcome.

Hope to get a reply soon.

Thank you very much.

Yours
Sincerely

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

* Re: Met Problem on Enable SystemTap on Android
  2011-08-30 19:11 Met Problem on Enable SystemTap on Android Yao,Yanjun
@ 2011-08-30 19:32 ` Josh Stone
       [not found]   ` <CAFxt-KSZkjb5eYutfEYTxe2=Hru7zLjd-YrBRs814N=VJFWr+A@mail.gmail.com>
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-08-30 19:32 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: systemtap

On 08/30/2011 12:10 PM, Yao,Yanjun wrote:
> Hi all,
> 
> I tried enable SystemTap on Android, however, after I finished all the
> set up, no matter what I tried to run, I always get a "stap: 57:
> Syntax error: "(" unexpected" error.

That's an odd error - can you provide more context?  What command line
are you running, and what is the full output from it?

> The following are my setting up steps:
> 1. Download android source.
> 2. Enable user debuggability by using command "lunch full_crespo-userdebug"
> 3. Download and install "systemtap-1.5-macharm" by following
> instructions on OMAPedia Systemtap webpage
> 4. Use "adb push" to copy all things inside "systemtap-1.5-macharme/"
> to "/data/systemtap-1.5-macharm" on the phone
> 5. Copy "Android_Source/out/target/product/crespo/system/modules/bcm4329.ko"
> into "/data/systemtap-1.5-macharm/bin" on the phone
> 6. Run "adb shell", then goto directory
> "/data/systemtap-1.5-macharm/bin" and run "staprun /bcm4329.ko".

Why are you invoking staprun with the wireless driver module?  This is
meant to be invoked with a .ko that was compiled by stap.  If you
happened to name your stap module with "-m bcm4329", then that's an
issue, as it must be unique from the kernel's own modules.

Josh

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

* Re: Met Problem on Enable SystemTap on Android
       [not found]   ` <CAFxt-KSZkjb5eYutfEYTxe2=Hru7zLjd-YrBRs814N=VJFWr+A@mail.gmail.com>
@ 2011-08-30 20:14     ` Josh Stone
  2011-08-30 21:14       ` Yao,Yanjun
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-08-30 20:14 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: systemtap

On 08/30/2011 12:48 PM, Yao,Yanjun wrote:
> Thank you for your reply.
> 
> 2011/8/30 Josh Stone <jistone@redhat.com>:
>> On 08/30/2011 12:10 PM, Yao,Yanjun wrote:
>>> Hi all,
>>>
>>> I tried enable SystemTap on Android, however, after I finished all the
>>> set up, no matter what I tried to run, I always get a "stap: 57:
>>> Syntax error: "(" unexpected" error.
>>
>> That's an odd error - can you provide more context?  What command line
>> are you running, and what is the full output from it?
>>
> 
> The following is the commands and the output:
> # ./stap syscalls_by_pid.stp -c "sleep 0.2"
> ./stap: 57: Syntax error: "(" unexpected
> 
> The syscalls_by_pid.stp is the example provided in
> http://sourceware.org/systemtap/examples/

This is still strange.  That example only has 28 lines, and as far as I
can see there isn't any place in stap where we print any error of the
form "Syntax error: ...".

To me this looks like a bash shell error, as if ./stap were a script.
Do you have some kind of wrapper in use?

It may also help to try with a few verbose flags, -vvvv

>> Why are you invoking staprun with the wireless driver module?  This is
>> meant to be invoked with a .ko that was compiled by stap.  If you
>> happened to name your stap module with "-m bcm4329", then that's an
>> issue, as it must be unique from the kernel's own modules.
>>
> 
> I followed the instructions in http://omappedia.org/wiki/Systemtap. It
> said I need to copy kernel modules on the target, and launch them
> through staprun. So I find the .ko file in the Android Source. May I
> ask what the .ko file should be? This is the only file I can find in
> both Android Source and the systemtap folders. I even tried to find a
> .ko file in adb shell, but found nothing.

I see.  I believe that wiki page means that you should cross-compile
your systemtap script on the host machine, as described here:
  http://omappedia.org/wiki/Systemtap#Systemtap_Scripts_compilation

Then copy *that* resulting .ko file to your Android device, and that's
the file path that you should give to staprun.


Josh

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

* Re: Met Problem on Enable SystemTap on Android
  2011-08-30 20:14     ` Josh Stone
@ 2011-08-30 21:14       ` Yao,Yanjun
  2011-08-30 22:16         ` Josh Stone
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-08-30 21:14 UTC (permalink / raw)
  To: Josh Stone; +Cc: systemtap

2011/8/30 Josh Stone <jistone@redhat.com>:
> On 08/30/2011 12:48 PM, Yao,Yanjun wrote:
>> Thank you for your reply.
>>
>> 2011/8/30 Josh Stone <jistone@redhat.com>:
>>> On 08/30/2011 12:10 PM, Yao,Yanjun wrote:
>>>> Hi all,
>>>>
>>>> I tried enable SystemTap on Android, however, after I finished all the
>>>> set up, no matter what I tried to run, I always get a "stap: 57:
>>>> Syntax error: "(" unexpected" error.
>>>
>>> That's an odd error - can you provide more context?  What command line
>>> are you running, and what is the full output from it?
>>>
>>
>> The following is the commands and the output:
>> # ./stap syscalls_by_pid.stp -c "sleep 0.2"
>> ./stap: 57: Syntax error: "(" unexpected
>>
>> The syscalls_by_pid.stp is the example provided in
>> http://sourceware.org/systemtap/examples/
>
> This is still strange.  That example only has 28 lines, and as far as I
> can see there isn't any place in stap where we print any error of the
> form "Syntax error: ...".
>
> To me this looks like a bash shell error, as if ./stap were a script.
> Do you have some kind of wrapper in use?
>

I am a starter of both Android Kernel and SystemTap. I am not sure
what kind of wrapper the system can be use, but I did not make any
change to the kernel code. I just downloaded the source by following
the instructions in
http://source.android.com/source/initializing.html.

> It may also help to try with a few verbose flags, -vvvv
>

I tried it with the -vvvv, but the same problem happens:

# ./stap -vvvv
./stap: 57: Syntax error: "(" unexpected
# ./staprun -vvv
./staprun: 1: Syntax error: ")" unexpected

All of the above run in "adb shell", is this the problem?

>>> Why are you invoking staprun with the wireless driver module?  This is
>>> meant to be invoked with a .ko that was compiled by stap.  If you
>>> happened to name your stap module with "-m bcm4329", then that's an
>>> issue, as it must be unique from the kernel's own modules.
>>>
>>
>> I followed the instructions in http://omappedia.org/wiki/Systemtap. It
>> said I need to copy kernel modules on the target, and launch them
>> through staprun. So I find the .ko file in the Android Source. May I
>> ask what the .ko file should be? This is the only file I can find in
>> both Android Source and the systemtap folders. I even tried to find a
>> .ko file in adb shell, but found nothing.
>
> I see.  I believe that wiki page means that you should cross-compile
> your systemtap script on the host machine, as described here:
>  http://omappedia.org/wiki/Systemtap#Systemtap_Scripts_compilation
>
> Then copy *that* resulting .ko file to your Android device, and that's
> the file path that you should give to staprun.
>

I tried to get the .ko file but not succeed. The command should be in format:
./stap -gv -a arm -D OMAP_REL_FAMILY -B
CROSS_COMPILE=arm-none-linux-gnueabi- -r FULLKERNELPATH -I
FULLTAPSETPATH -R SYSTEMTAPCFILEPATH -m SYSTEMTAPMODULENAME SCRIPTNAME

So I set (the command is run in UBUNTU 11.04):
   OMAP_REL_FAMILY  == OMAP_L25
   FULLKERNELPATH  ==
/home/xxx/WORKING_DIRECTORY/prebuilt/android-arm/kernel/vmlinux-qemu
   FULLTAPSETPATH  ==  /data/systemtap-1.5-macharm/share/systemtap/tapset/
   SYSTEMTAPCFILEPATH  == /data/systemtap-1.5-macharm/share/systemtap/runtime
   SYSTEMTAPMODULENAME  == contextswitch
   SCRIPTNAME ==

The problem is that:
1. The did not download the kernel code, as I can get a user debug
enabled kernel with android source. There are prebuild codes for the
building, however, the binary I found with the name
"/home/xxx/WORKING_DIRECTORY/prebuilt/android-arm/kernel/vmlinux-qemu"
seems does not work fine. May I ask do I need to download the kernel
code, and get the kernel img from that? Or it is just because I found
the wrong prebuild kernel file.
2. I did not find the contextswitch.stp as mentioned in
http://omappedia.org/wiki/Systemtap#Systemtap_Scripts_compilation. Is
there other scripts has the same functionality? If not, where can I
download the contextswitch.stp?

>
> Josh
>

Thank you very much.

Yours
SIncerely

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

* Re: Met Problem on Enable SystemTap on Android
  2011-08-30 21:14       ` Yao,Yanjun
@ 2011-08-30 22:16         ` Josh Stone
  2011-08-31  9:05           ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-08-30 22:16 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: systemtap

On 08/30/2011 02:13 PM, Yao,Yanjun wrote:
> I am a starter of both Android Kernel and SystemTap.

I think you'll find it helpful to try running simple examples just on
your computer, so you can better understand the concept of SystemTap.  A
tutorial and a beginner's guide are here:

  http://sourceware.org/systemtap/documentation.html

The cross-compilation for Android is an extra complication, which I
think may be better attempted later.  For Android, you will be running
stap on the host computer to compile the .ko, and then staprun on the
target Android device to run it.  This is described here:

  http://omappedia.org/wiki/Systemtap#Systemtap_and_Cross_Compilation

> I am not sure what kind of wrapper the system can be use, but I did
> not make any change to the kernel code. I just downloaded the source
> by following the instructions in 
> http://source.android.com/source/initializing.html.
> 
>> It may also help to try with a few verbose flags, -vvvv
>>
> 
> I tried it with the -vvvv, but the same problem happens:
> 
> # ./stap -vvvv
> ./stap: 57: Syntax error: "(" unexpected
> # ./staprun -vvv
> ./staprun: 1: Syntax error: ")" unexpected
> 
> All of the above run in "adb shell", is this the problem?

The stap command for cross compilation needs to be done on your
computer.  Only the staprun part is meant to run on Android directly.

I suspect that stap and staprun binaries that you copied to Android are
really the host binaries in ELF x86 form.  I don't have a full devel
environment for my phone at the moment, but I just tried copying an x86
binary to my phone anyway to run it, and I got similar message like
Syntax error: ")" unexpected.  It looks like Android tries to run these
unknown binaries with a script interpreter, which is just wrong.

Really only staprun and stapio are needed on Android, and those must be
compiled for the ARM target.

> I tried to get the .ko file but not succeed. The command should be in format:
> ./stap -gv -a arm -D OMAP_REL_FAMILY -B
> CROSS_COMPILE=arm-none-linux-gnueabi- -r FULLKERNELPATH -I
> FULLTAPSETPATH -R SYSTEMTAPCFILEPATH -m SYSTEMTAPMODULENAME SCRIPTNAME

I actually don't like that this is recommending to use -I and -R; if you
did a "make install" and run from the configured prefix, these should
not be necessary.

> 
> So I set (the command is run in UBUNTU 11.04):
>    OMAP_REL_FAMILY  == OMAP_L25
>    FULLKERNELPATH  ==
> /home/xxx/WORKING_DIRECTORY/prebuilt/android-arm/kernel/vmlinux-qemu
>    FULLTAPSETPATH  ==  /data/systemtap-1.5-macharm/share/systemtap/tapset/
>    SYSTEMTAPCFILEPATH  == /data/systemtap-1.5-macharm/share/systemtap/runtime
>    SYSTEMTAPMODULENAME  == contextswitch
>    SCRIPTNAME ==
> 
> The problem is that:
> 1. The did not download the kernel code, as I can get a user debug
> enabled kernel with android source. There are prebuild codes for the
> building, however, the binary I found with the name
> "/home/xxx/WORKING_DIRECTORY/prebuilt/android-arm/kernel/vmlinux-qemu"
> seems does not work fine. May I ask do I need to download the kernel
> code, and get the kernel img from that? Or it is just because I found
> the wrong prebuild kernel file.

Since SystemTap is building kernel modules out of your .stp scripts, it
does need the source corresponding to your running kernel to get all the
right headers and configuration.  So the "-r FULLKERNELPATH" needs to
point to the kernel source directory, not vmlinux itself.

> 2. I did not find the contextswitch.stp as mentioned in
> http://omappedia.org/wiki/Systemtap#Systemtap_Scripts_compilation. Is
> there other scripts has the same functionality? If not, where can I
> download the contextswitch.stp?

I don't know exactly what script that example is referring to, but you
could just as well use the syscalls_by_pid.stp that you had before.

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

* RE: Met Problem on Enable SystemTap on Android
  2011-08-30 22:16         ` Josh Stone
@ 2011-08-31  9:05           ` Turgis, Frederic
  2011-08-31 16:17             ` Josh Stone
       [not found]             ` <003001cc686f$27aeafc0$770c0f40$@choi@lge.com>
  0 siblings, 2 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-08-31  9:05 UTC (permalink / raw)
  To: Josh Stone, Yao,Yanjun; +Cc: systemtap

Hi,

Here are recommendations to make it work. OMAP wiki page assumes some knowledge of systemtap. I will by the way update the wiki with some of the remarks below:

- are you working on an OMAP3 or OMAP4 platform ?

- be sure to correctly understand systemtap. .stp script is converted and compiled into a kernel module (the .ko) through stap binary.
There is also a userspace tool to load the module, control it and gather trace (staprun/stapio)

- be sure to correctly understand the http://omappedia.org/wiki/Systemtap#Systemtap_and_Cross_Compilation
   * We build 1 host version of the tool to convert and cross-compile .stp into an ARM kernel module => stap -a arm ...
   * we build 1 target version of the tool to "execute/control" ARM kernel module on target => staprun xxx.ko
Host version executes on your desktop PC while target version has to be copied on Android (generally /data).

Error like "./stap: 1: Syntax error: "&" unexpected" is typical of a binary that does not have right architecture. Try "file staprun" -> xxx/staprun: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.16, from '16]', not stripped

- you are building a module. Therefore your cross-compilation kernel environment must be set-up. Unfortunately I don't use prebuilt kernel on Android.
From past experience, Systemtap will require the kernel config (.config file), System.map and on ARM (until recently), you need debug symbols vmlinux. Building module also requires some tools, which are built by kernel makefile in scripts and scripts/basic folders. Well, it is possible that these tools are built when you compile your first module (never tried)
My biggest concern is about compilation flags enabled in the kernel. KPROBES are a must and they are often disabled so there are chances you will have to recompile kernel.

- contextswitch.stp is in fact http://sourceware.org/systemtap/examples/process/schedtimes.stp. But this is a complex one to start with. Try a "probe begin { printf("my first script"); }" first. Then something like http://sourceware.org/systemtap/examples/io/traceio.stp

- Josh: I will clarify -R/-I on the wiki. We did that because our IT forces use of /home/$USER folder, still 1 developer compiles the tool for many others. So tool is hard-coded to /home/developer1 while it is stored in /home/developer2. And we add a temporary LD_LIBRARY_PATH. We never really looked for cleaner solution to exchange binaries.

- systemtap on ARM Ubuntu is much easier to use

Summary of what I do on my side:
- desktop PC: get kernel code, configure right features and compile
- desktop PC: compile the host and target tool. Copy target tool on target
- desktop PC: edit my .stp then ./stap -a arm xxx.stp. Copy resulting .ko on target
- target: ./staprun xxx.ko > yyy/zzz.txt (you can use -o yyy/zzz.txt also)

Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

> From: systemtap-owner@sourceware.org
> [mailto:systemtap-owner@sourceware.org] On Behalf Of Josh Stone
> Sent: Wednesday, August 31, 2011 12:16 AM
> To: Yao,Yanjun
> Cc: systemtap@sourceware.org
> Subject: Re: Met Problem on Enable SystemTap on Android
>
> On 08/30/2011 02:13 PM, Yao,Yanjun wrote:
> > I am a starter of both Android Kernel and SystemTap.
>
> I think you'll find it helpful to try running simple examples
> just on your computer, so you can better understand the
> concept of SystemTap.  A tutorial and a beginner's guide are here:
>
>   http://sourceware.org/systemtap/documentation.html
>
> The cross-compilation for Android is an extra complication,
> which I think may be better attempted later.  For Android,
> you will be running stap on the host computer to compile the
> .ko, and then staprun on the target Android device to run it.
>  This is described here:
>
>   http://omappedia.org/wiki/Systemtap#Systemtap_and_Cross_Compilation
>
> > I am not sure what kind of wrapper the system can be use, but I did
> > not make any change to the kernel code. I just downloaded
> the source
> > by following the instructions in
> > http://source.android.com/source/initializing.html.
> >
> >> It may also help to try with a few verbose flags, -vvvv
> >>
> >
> > I tried it with the -vvvv, but the same problem happens:
> >
> > # ./stap -vvvv
> > ./stap: 57: Syntax error: "(" unexpected # ./staprun -vvv
> > ./staprun: 1: Syntax error: ")" unexpected
> >
> > All of the above run in "adb shell", is this the problem?
>
> The stap command for cross compilation needs to be done on
> your computer.  Only the staprun part is meant to run on
> Android directly.
>
> I suspect that stap and staprun binaries that you copied to
> Android are really the host binaries in ELF x86 form.  I
> don't have a full devel environment for my phone at the
> moment, but I just tried copying an x86 binary to my phone
> anyway to run it, and I got similar message like Syntax
> error: ")" unexpected.  It looks like Android tries to run
> these unknown binaries with a script interpreter, which is just wrong.
>
> Really only staprun and stapio are needed on Android, and
> those must be compiled for the ARM target.
>
> > I tried to get the .ko file but not succeed. The command
> should be in format:
> > ./stap -gv -a arm -D OMAP_REL_FAMILY -B
> > CROSS_COMPILE=arm-none-linux-gnueabi- -r FULLKERNELPATH -I
> > FULLTAPSETPATH -R SYSTEMTAPCFILEPATH -m SYSTEMTAPMODULENAME
> SCRIPTNAME
>
> I actually don't like that this is recommending to use -I and
> -R; if you did a "make install" and run from the configured
> prefix, these should not be necessary.
>
> >
> > So I set (the command is run in UBUNTU 11.04):
> >    OMAP_REL_FAMILY  == OMAP_L25
> >    FULLKERNELPATH  ==
> > /home/xxx/WORKING_DIRECTORY/prebuilt/android-arm/kernel/vmlinux-qemu
> >    FULLTAPSETPATH  ==
> /data/systemtap-1.5-macharm/share/systemtap/tapset/
> >    SYSTEMTAPCFILEPATH  ==
> /data/systemtap-1.5-macharm/share/systemtap/runtime
> >    SYSTEMTAPMODULENAME  == contextswitch
> >    SCRIPTNAME ==
> >
> > The problem is that:
> > 1. The did not download the kernel code, as I can get a user debug
> > enabled kernel with android source. There are prebuild
> codes for the
> > building, however, the binary I found with the name
> >
> "/home/xxx/WORKING_DIRECTORY/prebuilt/android-arm/kernel/vmlinux-qemu"
> > seems does not work fine. May I ask do I need to download
> the kernel
> > code, and get the kernel img from that? Or it is just
> because I found
> > the wrong prebuild kernel file.
>
> Since SystemTap is building kernel modules out of your .stp
> scripts, it does need the source corresponding to your
> running kernel to get all the right headers and
> configuration.  So the "-r FULLKERNELPATH" needs to point to
> the kernel source directory, not vmlinux itself.
>
> > 2. I did not find the contextswitch.stp as mentioned in
> >
> http://omappedia.org/wiki/Systemtap#Systemtap_Scripts_compilation. Is
> > there other scripts has the same functionality? If not, where can I
> > download the contextswitch.stp?
>
> I don't know exactly what script that example is referring
> to, but you could just as well use the syscalls_by_pid.stp
> that you had before.
>

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

* Re: Met Problem on Enable SystemTap on Android
  2011-08-31  9:05           ` Turgis, Frederic
@ 2011-08-31 16:17             ` Josh Stone
  2011-08-31 21:03               ` Yao,Yanjun
  2011-09-01  8:45               ` Turgis, Frederic
       [not found]             ` <003001cc686f$27aeafc0$770c0f40$@choi@lge.com>
  1 sibling, 2 replies; 51+ messages in thread
From: Josh Stone @ 2011-08-31 16:17 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Yao,Yanjun, systemtap

On 08/31/2011 02:05 AM, Turgis, Frederic wrote:
> Here are recommendations to make it work. OMAP wiki page assumes
> some knowledge of systemtap. I will by the way update the wiki with
> some of the remarks below:

Thanks Fred.

> - Josh: I will clarify -R/-I on the wiki. We did that because our IT
> forces use of /home/$USER folder, still 1 developer compiles the tool
> for many others. So tool is hard-coded to /home/developer1 while it
> is stored in /home/developer2. And we add a temporary
> LD_LIBRARY_PATH. We never really looked for cleaner solution to
> exchange binaries.

I see.  It makes more sense, if there's no common place you can install.

One problem with -I is that it *appends* to the normal tapset path.  So
if for some reason the default path happens to be accessible too, you'll
like get strange behavior from the duplication.  You can more properly
override it with the SYSTEMTAP_TAPSET environment.

-R should do the right thing, but there is also SYSTEMTAP_RUNTIME.

> Summary of what I do on my side:
> - desktop PC: get kernel code, configure right features and compile
> - desktop PC: compile the host and target tool. Copy target tool on target
> - desktop PC: edit my .stp then ./stap -a arm xxx.stp. Copy resulting .ko on target
> - target: ./staprun xxx.ko > yyy/zzz.txt (you can use -o yyy/zzz.txt also)

BTW, if you happen to have ssh listening on the target, then you may be
able to use "--remote $TARGET" to automate the copy and staprun.  I'm
considering adding a new remote scheme, perhaps "--remote adb:..." to
let you do this over the Android debugging channel too.

Josh

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

* Re: Met Problem on Enable SystemTap on Android
  2011-08-31 16:17             ` Josh Stone
@ 2011-08-31 21:03               ` Yao,Yanjun
  2011-09-01  9:00                 ` Turgis, Frederic
  2011-09-01  8:45               ` Turgis, Frederic
  1 sibling, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-08-31 21:03 UTC (permalink / raw)
  To: Josh Stone; +Cc: Turgis, Frederic, systemtap

Hi all,

I met a very weird problem during the cross compiling. The followings
are what I did:
1. Downloaded android source and android kernel.
2. Configure the kernel flags in "make ARCH=arm menuconfig", then
modify ptrace.h as required. Compile the kernel code.
3. Download and compile systemtap v1.5. Install both
systemtap-1.5-ubuntu and systemtap-1.5-macharm
4. Cross compile to get .ko file by running command:
   ./stap -gv -a arm –D OMAP_L27 -B
CROSS_COMPILE=arm-none-linux-gnueabi- -r ~/WORKING_DIRECTORY/kernel -I
~/systemtap-1.5-macharm/share/systemtap/tapset/ -R
~/systemtap-1.5-macharm/share/systemtap/runtime/ -m syscall_pid
~/Downloads/syscalls_by_pid.stp

However, I got the following output:
WARNING: kernel release/architecture mismatch with host forces last-pass 4.
Input file '–D' is empty or missing.
Pass 1: parsed user script and 144 library script(s) using
74844virt/38848res/2148shr kb, in 170usr/0sys/171real ms.
Pass 1: parse failed.  Try again with another '--vp 1' option.

I tried to replace OMAP_L27 with OMAP_L23, OMAP_L24 and OMAP_L25, but
none of them works. I also tried to use the "--vp 1", the output is as
following:
WARNING: kernel release/architecture mismatch with host forces last-pass 4.
Input file '–D' is empty or missing.
Searched: " /data/systemtap-1.5-ubuntu/share/systemtap/tapset/*.stp ",
found: 72, processed: 72
Searched: " /data/systemtap-1.5-macharm/share/systemtap/tapset/*.stp
", found: 72, processed: 72
Pass 1: parsed user script and 144 library script(s) using
74844virt/38848res/2152shr kb, in 170usr/20sys/298real ms.
Pass 1: parse failed.  Try again with another '--vp 1' option.
Running rm -rf /tmp/stapli6Rvl
Spawn waitpid result (0x0): 0

I thought the OMAP_Lxx is something default on ubuntu, such that I do
not need to install it explicitly. Maybe I am wrong ...

Does anyone have any idea about why this is happening, and how to fix it?

Thank you very much.

Yours
Sincerely


2011/8/31 Josh Stone <jistone@redhat.com>:
> On 08/31/2011 02:05 AM, Turgis, Frederic wrote:
>> Here are recommendations to make it work. OMAP wiki page assumes
>> some knowledge of systemtap. I will by the way update the wiki with
>> some of the remarks below:
>
> Thanks Fred.
>
>> - Josh: I will clarify -R/-I on the wiki. We did that because our IT
>> forces use of /home/$USER folder, still 1 developer compiles the tool
>> for many others. So tool is hard-coded to /home/developer1 while it
>> is stored in /home/developer2. And we add a temporary
>> LD_LIBRARY_PATH. We never really looked for cleaner solution to
>> exchange binaries.
>
> I see.  It makes more sense, if there's no common place you can install.
>
> One problem with -I is that it *appends* to the normal tapset path.  So
> if for some reason the default path happens to be accessible too, you'll
> like get strange behavior from the duplication.  You can more properly
> override it with the SYSTEMTAP_TAPSET environment.
>
> -R should do the right thing, but there is also SYSTEMTAP_RUNTIME.
>
>> Summary of what I do on my side:
>> - desktop PC: get kernel code, configure right features and compile
>> - desktop PC: compile the host and target tool. Copy target tool on target
>> - desktop PC: edit my .stp then ./stap -a arm xxx.stp. Copy resulting .ko on target
>> - target: ./staprun xxx.ko > yyy/zzz.txt (you can use -o yyy/zzz.txt also)
>
> BTW, if you happen to have ssh listening on the target, then you may be
> able to use "--remote $TARGET" to automate the copy and staprun.  I'm
> considering adding a new remote scheme, perhaps "--remote adb:..." to
> let you do this over the Android debugging channel too.
>
> Josh
>

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

* RE: Some Problem come out during runing systemtap module on Android phone.
       [not found]             ` <003001cc686f$27aeafc0$770c0f40$@choi@lge.com>
@ 2011-09-01  8:37               ` Turgis, Frederic
  2011-09-06  1:30                 ` 최재혁B
  2011-09-09  1:40                 ` problem during "make install" at Ubuntu64 최재혁B
  0 siblings, 2 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-01  8:37 UTC (permalink / raw)
  To: 최재혁B; +Cc: 'Josh Stone', systemtap

> But the target “android gingerbread phone” is not working.
> when I run the “helloworld.stp”,  an abnormal message comes
> out like below.
>
> /data/staphome/bin# ./staprun helloworld.ko helloworld
> /data/staphome/bin/staprun: No such file or directory (  <-
> abnormal message )
Try first ./staprun to see if "help" is coming out. "printf" shall work ! Try to chmod staprun and stapio, this does not look related to systemtap
I made systemtap work on Froyo and Gingerbread, well this is essentially a kernel related tool on ARM (no time to investigate/code utrace/uprobes on our side :-( ) so it shall work on any pastry, as google does not change that much the kernel. But userspace is killing me as a developer.


>
>
> Also when I run the “ ./staprun iotop.ko” on target phone,
> the phone is gone to reset .
> Could you help me to resolve this problem ?
Mmmmh, we have hit issues when running several scripts in parallel (on Android, works fine on Ubuntu). Works first time, not 2nd time. Or issues when probing all system calls. But iotop.stp is working fine on my Gingerbread (K2.6.35)

>
> As your reference,
> . the Froyo phone is including the kernel version 2.6.32
> which was built in ubuntu 32bit, . the Gingerbread phone is
> including the kernel version 2.6.35.11 which was built in
> ubuntu 64bit.
We are at kernel 2.6.35. I don't really track the potential incompabilities between kernels and systemtap. We had to modify ptrace.h in the past, I don't remember when we started no longer needing it

> . And both phone is not OMAP-based . ( Should I use the OMAP
> platform ? )
You don't need an OMAP platform. We don't make any specific change for OMAP. Using /data/staphome instead of /home/xxx is totally OK as far as you respect paths on desktop and target, which is the case for you.

Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920




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

* RE: Met Problem on Enable SystemTap on Android
  2011-08-31 16:17             ` Josh Stone
  2011-08-31 21:03               ` Yao,Yanjun
@ 2011-09-01  8:45               ` Turgis, Frederic
  2011-09-26 20:52                 ` Josh Stone
  1 sibling, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-01  8:45 UTC (permalink / raw)
  To: Josh Stone; +Cc: Yao,Yanjun, systemtap

> duplication.  You can more properly override it with the
> SYSTEMTAP_TAPSET environment.
>
> -R should do the right thing, but there is also SYSTEMTAP_RUNTIME.
Good point, internally, we force people to push compiled binary to /home/$USER and use a versioned bash script to compile script. I will make it use env variables rather than -I/-R so that it is spread to everyone (and wiki update ;-) )


> BTW, if you happen to have ssh listening on the target, then
> you may be able to use "--remote $TARGET" to automate the
> copy and staprun.  I'm considering adding a new remote
> scheme, perhaps "--remote adb:..." to let you do this over
> the Android debugging channel too.
We don't have ssh listening by default so an adb scheme would be welcomed.

Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* RE: Met Problem on Enable SystemTap on Android
  2011-08-31 21:03               ` Yao,Yanjun
@ 2011-09-01  9:00                 ` Turgis, Frederic
  2011-09-01 16:09                   ` Josh Stone
  2011-09-01 16:21                   ` Yao,Yanjun
  0 siblings, 2 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-01  9:00 UTC (permalink / raw)
  To: Yao,Yanjun, Josh Stone; +Cc: systemtap

> However, I got the following output:
> WARNING: kernel release/architecture mismatch with host
> forces last-pass 4.
> Input file '-D' is empty or missing.
> Pass 1: parsed user script and 144 library script(s) using
> 74844virt/38848res/2148shr kb, in 170usr/0sys/171real ms.
> Pass 1: parse failed.  Try again with another '--vp 1' option.

When I copy your '-D' onto my terminal, I don't have -D nor _D but something that has sequence 0xe2 0x80 0x93 through hexdump (for 1 character !!!)
So systemtap does not see it as -D option but as file -D. This is probably a language issue.

Some hints to understand issues:
- Pass 1 is command line/script parsing
- Pass 2 is script analysis. For the 2 above passes, you can generally blame only command line, your script .stp and your kernel set-up
- Pass 3 conversion of script into C code
- Pass 4 compilation -> can be toolchain and kernel related


"-D" adds compilation flags to your scripts. We put OMAP_LXX because we have 1 script which code depends on platform. So you don't need this "-D" if you are not using this script.

Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-01  9:00                 ` Turgis, Frederic
@ 2011-09-01 16:09                   ` Josh Stone
  2011-09-01 16:31                     ` Turgis, Frederic
  2011-09-01 16:21                   ` Yao,Yanjun
  1 sibling, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-09-01 16:09 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Yao,Yanjun, systemtap

On 09/01/2011 02:00 AM, Turgis, Frederic wrote:
> When I copy your '-D' onto my terminal, I don't have -D nor _D but
> something that has sequence 0xe2 0x80 0x93 through hexdump (for 1
> character !!!) So systemtap does not see it as -D option but as file
> -D. This is probably a language issue.

Good catch!  His 'D' is fine, but you're right that he had a 3-byte
dash, which is UTF-8 for U+2013 'EN DASH'.  This was probably a
copy-paste from your wiki's example command line for iotop, which has
the same Unicode sequence.

Thanks,
Josh

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-01  9:00                 ` Turgis, Frederic
  2011-09-01 16:09                   ` Josh Stone
@ 2011-09-01 16:21                   ` Yao,Yanjun
  2011-09-01 16:44                     ` Turgis, Frederic
  1 sibling, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-01 16:21 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Josh Stone, systemtap

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

Thanks Turgis.

The fixed the -D problem. However, new problem comes out.

I tried to cross-compile the syscall_by_pid.stp but stuck on phase 4.
So I tried the most simple script helloworld.stp, but it still does
not work. I reinstalled the systemtap host and target tools, and I
double checked the ptrace.h and kernel compilation flags. Nothing
seems to be wrong.

The commands I run are:
./stap -gv -a arm -D OMAP_L25 -B
CROSS_COMPILE=~/Downloads/arm-2008q3/bin/arm-none-linux-gnueabi- -r
/home/lwan1/WORKING_DIRECTORY/kernel -I
/data/systemtap-1.5-macharm/share/systemtap/tapset/ -R
/data/systemtap-1.5-macharm/share/systemtap/runtime/ -m
syscalls_by_pid ~/Downloads/syscalls_by_pid.stp

and

./stap -gv -a arm -D OMAP_L25 -B
CROSS_COMPILE=~/Downloads/arm-2008q3/bin/arm-none-linux-gnueabi- -r
/home/lwan1/WORKING_DIRECTORY/kernel -I
/data/systemtap-1.5-macharm/share/systemtap/tapset/ -R
/data/systemtap-1.5-macharm/share/systemtap/runtime/ -m helloworld
~/Downloads/helloworld.stp

As the error message is too long, I saved them in .txt files and
attached them here.

Please check them up, and help me get through this procedure.

Any hint would be warmly welcomed.

Thank you very much.

Yours
Sincerely

[-- Attachment #2: syscall_by_pid_error.txt --]
[-- Type: text/plain, Size: 16138 bytes --]

WARNING: kernel release/architecture mismatch with host forces last-pass 4.
Pass 1: parsed user script and 144 library script(s) using 74868virt/38868res/2128shr kb, in 170usr/0sys/174real ms.
semantic error: ELF machine |x86_64 (code 62) mismatch with target arm in '/home/lwan1/WORKING_DIRECTORY/kernel/vmlinux'
semantic error: no match while resolving probe point _syscall.accept
semantic error: no match while resolving probe point kernel.function("sys_access").call
semantic error: no match while resolving probe point kernel.function("sys_adjtimex").call
semantic error: no match while resolving probe point kernel.function("sys_brk").call
semantic error: no match while resolving probe point kernel.function("sys_capget").call
semantic error: no match while resolving probe point kernel.function("sys_capset").call
semantic error: no match while resolving probe point kernel.function("sys_chdir").call
semantic error: no match while resolving probe point kernel.function("sys_chmod").call
semantic error: no match while resolving probe point kernel.function("sys_chown").call
semantic error: no match while resolving probe point kernel.function("sys_chroot").call
semantic error: no match while resolving probe point kernel.function("sys_clock_getres").call
semantic error: no match while resolving probe point kernel.function("sys_clock_gettime").call
semantic error: no match while resolving probe point kernel.function("sys_clock_nanosleep").call
semantic error: no match while resolving probe point kernel.function("sys_clock_settime").call
semantic error: no match while resolving probe point kernel.function("sys_close").call
semantic error: no match while resolving probe point kernel.function("sys_dup").call
semantic error: no match while resolving probe point kernel.function("sys_dup2").call
semantic error: no match while resolving probe point kernel.function("do_execve").call
semantic error: no match while resolving probe point kernel.function("do_exit").call
semantic error: no match while resolving probe point kernel.function("sys_exit_group").call
semantic error: no match while resolving probe point kernel.function("sys_fchdir").call
semantic error: no match while resolving probe point kernel.function("sys_fchmod").call
semantic error: no match while resolving probe point kernel.function("sys_fchown").call
semantic error: no match while resolving probe point kernel.function("sys_fdatasync").call
semantic error: no match while resolving probe point kernel.function("sys_fgetxattr").call
semantic error: no match while resolving probe point kernel.function("sys_flistxattr").call
semantic error: no match while resolving probe point kernel.function("sys_flock").call
semantic error: no match while resolving probe point kernel.function("do_fork").call
semantic error: no match while resolving probe point kernel.function("sys_fremovexattr").call
semantic error: no match while resolving probe point kernel.function("sys_fsetxattr").call
semantic error: no match while resolving probe point kernel.function("sys_fstatfs").call
semantic error: no match while resolving probe point kernel.function("sys_fsync").call
semantic error: no match while resolving probe point kernel.function("sys_ftruncate").call
semantic error: no match while resolving probe point kernel.function("sys_getcwd").call
semantic error: no match while resolving probe point kernel.function("sys_getegid").call
semantic error: no match while resolving probe point kernel.function("sys_geteuid").call
semantic error: no match while resolving probe point kernel.function("sys_getgid").call
semantic error: no match while resolving probe point kernel.function("sys_getitimer").call
semantic error: no match while resolving probe point kernel.function("sys_getpgid").call
semantic error: no match while resolving probe point kernel.function("sys_getpid").call
semantic error: no match while resolving probe point kernel.function("sys_getppid").call
semantic error: no match while resolving probe point kernel.function("sys_getpriority").call
semantic error: no match while resolving probe point kernel.function("sys_getresgid").call
semantic error: no match while resolving probe point kernel.function("sys_getresuid").call
semantic error: no match while resolving probe point kernel.function("sys_getrusage").call
semantic error: no match while resolving probe point kernel.function("sys_getsid").call
semantic error: no match while resolving probe point kernel.function("sys_gettid").call
semantic error: no match while resolving probe point kernel.function("sys_gettimeofday").call
semantic error: no match while resolving probe point kernel.function("sys_getuid").call
semantic error: no match while resolving probe point kernel.function("sys_getxattr").call
semantic error: no match while resolving probe point kernel.function("sys_io_cancel").call
semantic error: no match while resolving probe point kernel.function("sys_io_destroy").call
semantic error: no match while resolving probe point kernel.function("sys_io_setup").call
semantic error: no match while resolving probe point kernel.function("sys_io_submit").call
semantic error: no match while resolving probe point kernel.function("sys_kill").call
semantic error: no match while resolving probe point kernel.function("sys_lchown").call
semantic error: no match while resolving probe point kernel.function("sys_lgetxattr").call
semantic error: no match while resolving probe point kernel.function("sys_link").call
semantic error: no match while resolving probe point kernel.function("sys_listxattr").call
semantic error: no match while resolving probe point kernel.function("sys_llistxattr").call
semantic error: no match while resolving probe point kernel.function("sys_lremovexattr").call
semantic error: no match while resolving probe point kernel.function("sys_lseek").call
semantic error: no match while resolving probe point kernel.function("sys_lsetxattr").call
semantic error: no match while resolving probe point kernel.function("sys_mkdir").call
semantic error: no match while resolving probe point kernel.function("sys_mknod").call
semantic error: no match while resolving probe point kernel.function("sys_mount").call
semantic error: no match while resolving probe point kernel.function("sys_munmap").call
semantic error: no match while resolving probe point kernel.function("sys_nanosleep").call
semantic error: no match while resolving probe point kernel.function("sys_ni_syscall").call
semantic error: no match while resolving probe point kernel.function("sys_personality").call
semantic error: no match while resolving probe point kernel.function("sys_pipe").call
semantic error: no match while resolving probe point kernel.function("sys_pivot_root").call
semantic error: no match while resolving probe point kernel.function("sys_poll").call
semantic error: no match while resolving probe point kernel.function("sys_prctl").call
semantic error: no match while resolving probe point kernel.function("sys_pread64").call
semantic error: no match while resolving probe point kernel.function("sys_pwrite64").call
semantic error: no match while resolving probe point kernel.function("sys_read").call
semantic error: no match while resolving probe point kernel.function("sys_readahead").call
semantic error: no match while resolving probe point kernel.function("sys_readlink").call
semantic error: no match while resolving probe point kernel.function("sys_readv").call
semantic error: no match while resolving probe point kernel.function("sys_reboot").call
semantic error: no match while resolving probe point kernel.function("sys_removexattr").call
semantic error: no match while resolving probe point kernel.function("sys_rename").call
semantic error: no match while resolving probe point kernel.function("sys_restart_syscall").call
semantic error: no match while resolving probe point kernel.function("sys_rmdir").call
semantic error: no match while resolving probe point kernel.function("sys_rt_sigqueueinfo").call
semantic error: no match while resolving probe point kernel.function("sys_rt_sigtimedwait").call
semantic error: no match while resolving probe point kernel.function("sys_sched_get_priority_max").call
semantic error: no match while resolving probe point kernel.function("sys_sched_get_priority_min").call
semantic error: no match while resolving probe point kernel.function("sys_sched_getaffinity").call
semantic error: no match while resolving probe point kernel.function("sys_sched_getparam").call
semantic error: no match while resolving probe point kernel.function("sys_sched_getscheduler").call
semantic error: no match while resolving probe point kernel.function("sys_sched_rr_get_interval").call
semantic error: no match while resolving probe point kernel.function("sys_sched_setaffinity").call
semantic error: no match while resolving probe point kernel.function("sys_sched_yield").call
semantic error: no match while resolving probe point kernel.function("sys_select").call
semantic error: no match while resolving probe point kernel.function("sys_set_tid_address").call
semantic error: no match while resolving probe point kernel.function("sys_setdomainname").call
semantic error: no match while resolving probe point kernel.function("sys_sethostname").call
semantic error: no match while resolving probe point kernel.function("sys_setitimer").call
semantic error: no match while resolving probe point kernel.function("sys_setpgid").call
semantic error: no match while resolving probe point kernel.function("sys_setpriority").call
semantic error: no match while resolving probe point kernel.function("sys_setregid").call
semantic error: no match while resolving probe point kernel.function("sys_setresgid").call
semantic error: no match while resolving probe point kernel.function("sys_setresuid").call
semantic error: no match while resolving probe point kernel.function("sys_setreuid").call
semantic error: no match while resolving probe point kernel.function("sys_setrlimit").call
semantic error: no match while resolving probe point kernel.function("sys_setsid").call
semantic error: no match while resolving probe point kernel.function("sys_settimeofday").call
semantic error: no match while resolving probe point kernel.function("sys_setuid").call
semantic error: no match while resolving probe point kernel.function("sys_setxattr").call
semantic error: no match while resolving probe point kernel.function("sys_symlink").call
semantic error: no match while resolving probe point kernel.function("sys_sync").call
semantic error: no match while resolving probe point kernel.function("sys_sysfs").call
semantic error: no match while resolving probe point kernel.function("sys_sysinfo").call
semantic error: no match while resolving probe point kernel.function("sys_syslog").call
semantic error: no match while resolving probe point kernel.function("sys_tgkill").call
semantic error: no match while resolving probe point kernel.function("sys_timer_create").call
semantic error: no match while resolving probe point kernel.function("sys_timer_delete").call
semantic error: no match while resolving probe point kernel.function("sys_timer_getoverrun").call
semantic error: no match while resolving probe point kernel.function("sys_timer_gettime").call
semantic error: no match while resolving probe point kernel.function("sys_timer_settime").call
semantic error: no match while resolving probe point kernel.function("sys_tkill").call
semantic error: no match while resolving probe point kernel.function("sys_umask").call
semantic error: no match while resolving probe point kernel.function("sys_umount").call
semantic error: no match while resolving probe point kernel.function("sys_unlink").call
semantic error: no match while resolving probe point kernel.function("sys_uselib").call
semantic error: no match while resolving probe point kernel.function("sys_ustat").call
semantic error: no match while resolving probe point kernel.function("sys_utimes").call
semantic error: no match while resolving probe point kernel.function("sys_vhangup").call
semantic error: no match while resolving probe point kernel.function("sys_wait4").call
semantic error: no match while resolving probe point kernel.function("sys_waitid").call
semantic error: no match while resolving probe point kernel.function("sys_write").call
semantic error: no match while resolving probe point kernel.function("sys_writev").call
semantic error: probe point mismatch at position 1  (alternatives:  accept access acct add_key adjtimex alarm bdflush bind brk capget capset chdir chmod chown chown16 chroot clock_getres clock_gettime clock_nanosleep clock_settime close compat_adjtimex compat_clock_nanosleep compat_execve compat_futex compat_futimesat compat_getitimer compat_io_setup compat_io_submit compat_nanosleep compat_ppoll compat_pselect6 compat_pselect7 compat_recvmmsg compat_select compat_setitimer compat_signalfd compat_sys_msgctl compat_sys_msgrcv compat_sys_msgsnd compat_sys_recvmsg compat_sys_semctl compat_sys_semtimedop compat_sys_sendmsg compat_sys_shmat compat_sys_shmctl compat_sys_utimes compat_utime compat_utimensat compat_vmsplice connect creat delete_module dup dup2 epoll_create epoll_ctl epoll_pwait epoll_wait eventfd execve exit exit_group faccessat fadvise64 fadvise64_64 fchdir fchmod fchmodat fchown fchown16 fchownat fcntl fdatasync fgetxattr flistxattr flock fork fremovexattr fsetxattr fstat fstatat fstatfs fstatfs64 fsync ftruncate ftruncate64 futex futimesat get_mempolicy getcwd getdents getegid geteuid getgid getgroups gethostname getitimer getpeername getpgid getpgrp getpid getppid getpriority getresgid getresuid getrlimit getrusage getsid getsockname getsockopt gettid gettimeofday getuid getxattr init_module inotify_add_watch inotify_init inotify_rm_watch io_cancel io_destroy io_getevents io_setup io_submit ioctl ioperm ioprio_get ioprio_set kexec_load keyctl kill lchown lchown16 lgetxattr link linkat listen listxattr llistxattr llseek lookup_dcookie lremovexattr lseek lsetxattr lstat madvise mbind migrate_pages mincore mkdir mkdirat mknod mknodat mlock mlockall mmap2 modify_ldt mount move_pages mprotect mq_getsetattr mq_notify mq_open mq_timedreceive mq_timedsend mq_unlink mremap msgctl msgget msgrcv msgsnd msync munlock munlockall munmap nanosleep ni_syscall nice open openat pause personality pipe pivot_root poll ppoll prctl pread pselect6 pselect7 ptrace pwrite pwrite32 quotactl read readahead readdir readlink readlinkat readv reboot recv recvfrom recvmmsg recvmsg remap_file_pages removexattr rename renameat request_key restart_syscall rmdir rt_sigaction rt_sigaction32 rt_sigpending rt_sigprocmask rt_sigqueueinfo rt_sigreturn rt_sigsuspend rt_sigtimedwait sched_get_priority_max sched_get_priority_min sched_getaffinity sched_getparam sched_getscheduler sched_rr_get_interval sched_setaffinity sched_setparam sched_setscheduler sched_yield select semctl semget semop semtimedop send sendfile sendmsg sendto set_mempolicy set_tid_address setdomainname setfsgid setfsuid setgid setgroups sethostname setitimer setpgid setpriority setregid setregid16 setresgid setresgid16 setresuid setresuid16 setreuid setreuid16 setrlimit setsid setsockopt settimeofday settimeofday32 setuid setxattr sgetmask shmat shmctl shmdt shmget shutdown sigaction sigaction32 signal signalfd sigpending sigprocmask sigreturn sigsuspend socket socketpair splice ssetmask stat statfs statfs64 stime swapoff swapon symlink symlinkat sync sysctl sysfs sysinfo syslog tee tgkill time timer_create timer_delete timer_getoverrun timer_gettime timer_settime timerfd times tkill truncate tux umask umount uname unlink unlinkat unshare uselib ustat ustat32 utime utimensat utimes vhangup vmsplice wait4 waitid write writev) didn't find any wildcard matches: identifier '*' at /home/lwan1/Downloads/syscalls_by_pid.stp:16:15 while resolving probe point syscall.*
        source: probe syscall.* {
                              ^
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 1 global(s) using 211776virt/40892res/2504shr kb, in 30usr/20sys/43real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.


[-- Attachment #3: helloworld_error.txt --]
[-- Type: text/plain, Size: 34538 bytes --]

WARNING: kernel release/architecture mismatch with host forces last-pass 4.
Pass 1: parsed user script and 144 library script(s) using 74860virt/39008res/2128shr kb, in 170usr/10sys/176real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 75388virt/39800res/2348shr kb, in 0usr/0sys/5real ms.
Pass 3: translated to C into "/tmp/stapdnBiq0/helloworld.c" using 75388virt/39800res/2348shr kb, in 0usr/0sys/0real ms.
In file included from /tmp/stapdnBiq0/helloworld.c:14:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/types.h:17:1: error: "BITS_PER_LONG" redefined
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/bitsperlong.h:1,
                 from include/asm-generic/int-ll64.h:11,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/types.h:4,
                 from /tmp/stapdnBiq0/helloworld.c:14:
include/asm-generic/bitsperlong.h:18:1: error: this is the location of the previous definition
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:7,
                 from include/linux/module.h:9,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/processor.h:94:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/processor.h:114:5: error: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/irqflags.h:57,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:61,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/irqflags.h:11:5: error: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:112:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:118:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:122:35: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:255:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:262:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:330:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/system.h:333:2: error: #error "SMP is not supported on this platform"
In file included from include/linux/module.h:9,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/list.h: In function 'list_del':
include/linux/list.h:103: error: implicit declaration of function '_AC'
cc1: warnings being treated as errors
include/linux/list.h:103: error: integer constant is too large for 'long' type
include/linux/list.h:103: error: 'UL' undeclared (first use in this function)
include/linux/list.h:103: error: (Each undeclared identifier is reported only once
include/linux/list.h:103: error: for each function it appears in.)
include/linux/list.h:104: error: integer constant is too large for 'long' type
include/linux/list.h: In function 'hlist_del':
include/linux/list.h:597: error: integer constant is too large for 'long' type
include/linux/list.h:597: error: 'UL' undeclared (first use in this function)
include/linux/list.h:598: error: integer constant is too large for 'long' type
In file included from include/linux/bitops.h:22,
                 from include/linux/kernel.h:17,
                 from include/linux/cache.h:4,
                 from include/linux/time.h:7,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/bitops.h:237:5: error: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/kernel.h:17,
                 from include/linux/cache.h:4,
                 from include/linux/time.h:7,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/bitops.h: At top level:
include/linux/bitops.h:148: error: conflicting types for '_find_first_bit_le'
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/bitops.h:162: error: previous declaration of '_find_first_bit_le' was here
include/linux/bitops.h:158: error: conflicting types for '_find_first_zero_bit_le'
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/bitops.h:160: error: previous declaration of '_find_first_zero_bit_le' was here
include/linux/bitops.h:182: error: conflicting types for '_find_next_bit_le'
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/bitops.h:163: error: previous declaration of '_find_next_bit_le' was here
include/linux/bitops.h:192: error: conflicting types for '_find_next_zero_bit_le'
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/bitops.h:161: error: previous declaration of '_find_next_zero_bit_le' was here
In file included from include/linux/swab.h:6,
                 from include/linux/byteorder/little_endian.h:12,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/byteorder.h:21,
                 from include/linux/kernel.h:21,
                 from include/linux/cache.h:4,
                 from include/linux/time.h:7,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/swab.h:25:28: error: "__LINUX_ARM_ARCH__" is not defined
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:56,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/fpstate.h:32:5: error: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:86,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/spinlock.h:4:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/spinlock.h:5:2: error: #error SMP not supported on pre-ARMv6 CPUs
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/spinlock.h:10:5: error: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:386,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/atomic.h:30:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/atomic.h:153:2: error: #error SMP not supported on pre-ARMv6 CPUs
In file included from include/linux/spinlock.h:386,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/atomic.h:241: error: conflicting types for 'atomic64_t'
include/linux/types.h:213: error: previous declaration of 'atomic64_t' was here
In file included from include/linux/time.h:9,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/math64.h: In function 'div_u64_rem':
include/linux/math64.h:43: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/page.h:26,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/glue.h:119:2: error: #error Unknown data abort handler type
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/glue.h:160:2: error: #error Unknown prefetch abort handler type
In file included from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/page.h:116:2: error: #error Unknown user operations model
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/page.h:202,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:18:25: error: mach/memory.h: No such file or directory
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:54:1: error: "CONFIG_PAGE_OFFSETUL" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:54:1: error: "CONFIG_PAGE_OFFSETUL" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:54:30: error: the right operand of ">" changes sign when promoted
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/page.h:202,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h: In function 'virt_to_phys':
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:193: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:193: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h: In function 'phys_to_virt':
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:198: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:198: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h: In function 'virt_to_bus':
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:223: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:223: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h: In function 'bus_to_virt':
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:228: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/memory.h:228: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/mmzone.h: At top level:
include/linux/mmzone.h:73: error: 'CONFIG_ARM_L1_CACHE_SHIFT' undeclared here (not in a function)
include/linux/mmzone.h:73: error: requested alignment is not a constant
include/linux/mmzone.h:419: error: requested alignment is not a constant
In file included from include/linux/notifier.h:14,
                 from include/linux/memory_hotplug.h:6,
                 from include/linux/mmzone.h:649,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/rwsem.h:22:65: error: asm/rwsem.h: No such file or directory
In file included from include/linux/memory_hotplug.h:6,
                 from include/linux/mmzone.h:649,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/notifier.h:62: error: field 'rwsem' has incomplete type
In file included from include/linux/mmzone.h:908,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/sparsemem.h:21:2: error: #error Sparsemem is not supported on this platform
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/mmzone.h:947:36: error: "SECTION_SIZE_BITS" is not defined
include/linux/mmzone.h:948:2: error: #error Allocator MAX_ORDER exceeds SECTION_SIZE
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/mmzone.h:991: error: 'MAX_PHYSMEM_BITS' undeclared here (not in a function)
include/linux/mmzone.h:991: error: 'SECTION_SIZE_BITS' undeclared here (not in a function)
In file included from include/linux/smp.h:36,
                 from include/linux/topology.h:33,
                 from include/linux/gfp.h:7,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/smp.h:17:22: error: mach/smp.h: No such file or directory
In file included from include/linux/timex.h:173,
                 from include/linux/jiffies.h:8,
                 from include/linux/ktime.h:25,
                 from include/linux/timer.h:5,
                 from include/linux/workqueue.h:8,
                 from include/linux/kmod.h:26,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/timex.h:15:24: error: mach/timex.h: No such file or directory
In file included from include/linux/ktime.h:25,
                 from include/linux/timer.h:5,
                 from include/linux/workqueue.h:8,
                 from include/linux/kmod.h:26,
                 from include/linux/module.h:13,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:14,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
In file included from include/linux/sched.h:63,
                 from include/linux/ptrace.h:100,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/kprobes.h:20,
                 from include/linux/kprobes.h:42,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/mm_types.h:240: error: field 'mmap_sem' has incomplete type
In file included from include/linux/sched.h:71,
                 from include/linux/ptrace.h:100,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/kprobes.h:20,
                 from include/linux/kprobes.h:42,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/sem.h:96: error: requested alignment is not a constant
In file included from include/linux/sched.h:80,
                 from include/linux/ptrace.h:100,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/kprobes.h:20,
                 from include/linux/kprobes.h:42,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/seccomp.h:8:25: error: asm/seccomp.h: No such file or directory
In file included from include/linux/sched.h:80,
                 from include/linux/ptrace.h:100,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/kprobes.h:20,
                 from include/linux/kprobes.h:42,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/seccomp.h: In function 'secure_computing':
include/linux/seccomp.h:15: error: 'TIF_SECCOMP' undeclared (first use in this function)
In file included from include/linux/sched.h:82,
                 from include/linux/ptrace.h:100,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/kprobes.h:20,
                 from include/linux/kprobes.h:42,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/rculist.h: In function 'list_del_rcu':
include/linux/rculist.h:97: error: integer constant is too large for 'unsigned long' type
include/linux/rculist.h: In function 'list_replace_rcu':
include/linux/rculist.h:143: error: integer constant is too large for 'unsigned long' type
include/linux/rculist.h: In function 'hlist_del_rcu':
include/linux/rculist.h:300: error: integer constant is too large for 'unsigned long' type
include/linux/rculist.h: In function 'hlist_replace_rcu':
include/linux/rculist.h:320: error: integer constant is too large for 'unsigned long' type
In file included from include/linux/cred.h:17,
                 from include/linux/sched.h:93,
                 from include/linux/ptrace.h:100,
                 from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/kprobes.h:20,
                 from include/linux/kprobes.h:42,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/key.h: At top level:
include/linux/key.h:129: error: field 'sem' has incomplete type
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:21,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/kprobes.h:270: error: field 'optinsn' has incomplete type
In file included from include/linux/slab.h:168,
                 from include/linux/proc_fs.h:4,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:22,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/slub_def.h:109:35: error: "CONFIG_ARM_L1_CACHE_SHIFT" is not defined
In file included from include/linux/fs.h:471,
                 from include/linux/proc_fs.h:5,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:22,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/quota.h:396: error: field 'dqptr_sem' has incomplete type
In file included from include/linux/proc_fs.h:5,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:22,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/fs.h:750: error: field 'i_alloc_sem' has incomplete type
In file included from include/linux/proc_fs.h:5,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:22,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/fs.h:1108: error: 'struct flock64' declared inside parameter list
include/linux/fs.h:1108: error: its scope is only this definition or declaration, which is probably not what you want
include/linux/fs.h:1110: error: 'struct flock64' declared inside parameter list
include/linux/fs.h:1333: error: field 's_umount' has incomplete type
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:26,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/irq.h:4:23: error: mach/irqs.h: No such file or directory
In file included from include/linux/hardirq.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:26,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/hardirq.h:11: error: requested alignment is not a constant
In file included from include/linux/hardirq.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:26,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/hardirq.h:15:5: error: "NR_IRQS" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/hardirq.h:17:7: error: "NR_IRQS" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/hardirq.h:28:27: error: "NR_IRQS" is not defined
In file included from include/linux/mm.h:40,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:32,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/pgtable.h:23:26: error: mach/vmalloc.h: No such file or directory
In file included from include/linux/mm.h:40,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:32,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/pgtable.h: In function 'pmd_page_vaddr':
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/pgtable.h:354: error: 'PHYS_OFFSET' undeclared (first use in this function)
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/pgtable.h:354: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/pgtable.h:447,
                 from include/linux/mm.h:40,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:32,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/asm-generic/pgtable.h: In function 'ptep_set_wrprotect':
include/asm-generic/pgtable.h:98: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
include/asm-generic/pgtable.h:227: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:32,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/mm.h: In function 'is_vmalloc_addr':
include/linux/mm.h:293: error: 'VMALLOC_END' undeclared (first use in this function)
include/linux/mm.h: In function 'virt_to_head_page':
include/linux/mm.h:328: error: 'vmemmap' undeclared (first use in this function)
include/linux/mm.h:328: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
include/linux/mm.h:328: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:32,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/mm.h: In function 'lowmem_page_address':
include/linux/mm.h:603: error: 'vmemmap' undeclared (first use in this function)
include/linux/mm.h:603: error: 'PHYS_OFFSET' undeclared (first use in this function)
include/linux/mm.h:603: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
In file included from /tmp/stapdnBiq0/helloworld.c:59:
/data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h: At top level:
/data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:100: error: requested alignment is not a constant
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:127,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/data/systemtap-1.5-macharm/share/systemtap/runtime/alloc.c: In function '_stp_alloc_percpu':
/data/systemtap-1.5-macharm/share/systemtap/runtime/alloc.c:379: error: too few arguments to function '__alloc_percpu'
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/print.c:16,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:128,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/data/systemtap-1.5-macharm/share/systemtap/runtime/vsprintf.c: In function 'number':
/data/systemtap-1.5-macharm/share/systemtap/runtime/vsprintf.c:70: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
/data/systemtap-1.5-macharm/share/systemtap/runtime/vsprintf.c: In function 'number_size':
/data/systemtap-1.5-macharm/share/systemtap/runtime/vsprintf.c:167: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/transport/relay_v2.c:32,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/transport/transport.c:53,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/print.c:18,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:128,
                 from /tmp/stapdnBiq0/helloworld.c:59:
include/linux/relay.h: At top level:
include/linux/relay.h:53: error: requested alignment is not a constant
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/runtime.h:138,
                 from /tmp/stapdnBiq0/helloworld.c:59:
/data/systemtap-1.5-macharm/share/systemtap/runtime/sym.c: In function '_stp_build_id_check':
/data/systemtap-1.5-macharm/share/systemtap/runtime/sym.c:259: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
In file included from /data/systemtap-1.5-macharm/share/systemtap/runtime/stat.c:41,
                 from /tmp/stapdnBiq0/helloworld.c:61:
/data/systemtap-1.5-macharm/share/systemtap/runtime/stat-common.c: In function 'needed_space':
/data/systemtap-1.5-macharm/share/systemtap/runtime/stat-common.c:52: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
/data/systemtap-1.5-macharm/share/systemtap/runtime/stat-common.c: In function '_stp_stat_print_histogram_buf':
/data/systemtap-1.5-macharm/share/systemtap/runtime/stat-common.c:193: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
/data/systemtap-1.5-macharm/share/systemtap/runtime/stat-common.c: In function '__stp_stat_add':
/data/systemtap-1.5-macharm/share/systemtap/runtime/stat-common.c:318: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/cacheflush.h:15,
                 from include/linux/highmem.h:9,
                 from include/linux/pagemap.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/access_process_vm.h:6,
                 from /tmp/stapdnBiq0/helloworld.c:72:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/glue.h:119:2: error: #error Unknown data abort handler type
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/glue.h:160:2: error: #error Unknown prefetch abort handler type
In file included from /home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/cacheflush.h:17,
                 from include/linux/highmem.h:9,
                 from include/linux/pagemap.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/access_process_vm.h:6,
                 from /tmp/stapdnBiq0/helloworld.c:72:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/cachetype.h:24:5: error: "__LINUX_ARM_ARCH__" is not defined
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/cachetype.h:26:7: error: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/highmem.h:9,
                 from include/linux/pagemap.h:10,
                 from /data/systemtap-1.5-macharm/share/systemtap/runtime/access_process_vm.h:6,
                 from /tmp/stapdnBiq0/helloworld.c:72:
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/cacheflush.h:136:2: error: #error Unknown cache maintainence model
/home/lwan1/WORKING_DIRECTORY/kernel/arch/arm/include/asm/cacheflush.h:374:30: error: "__LINUX_ARM_ARCH__" is not defined
make[1]: *** [/tmp/stapdnBiq0/helloworld.o] Error 1
make: *** [_module_/tmp/stapdnBiq0] Error 2
Pass 4: compiled C into "helloworld.ko" in 1090usr/90sys/1773real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.


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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-01 16:09                   ` Josh Stone
@ 2011-09-01 16:31                     ` Turgis, Frederic
  2011-09-01 17:34                       ` Josh Stone
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-01 16:31 UTC (permalink / raw)
  To: Yao,Yanjun, Josh Stone; +Cc: systemtap

>Good catch!  His 'D' is fine, but you're right that he had a
>3-byte dash, which is UTF-8 for U+2013 'EN DASH'.  This was
>probably a copy-paste from your wiki's example command line
>for iotop, which has the same Unicode sequence.

Error messages were explicit enough, indicating -D was seen as a file. Not the first time people have issues with copy/paste (I the first because I was first to read when my colleague wrote the page). I think issue is still there because you can't simply erase -D and retype it, area is still in that Unicode.
I could modify the wiki, it shall be fine now.

Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-01 16:21                   ` Yao,Yanjun
@ 2011-09-01 16:44                     ` Turgis, Frederic
  2011-09-07 21:46                       ` Yao,Yanjun
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-01 16:44 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: Josh Stone, systemtap

>I tried to cross-compile the syscall_by_pid.stp

There is an error at Pass1 => semantic error: ELF machine |x86_64 (code 62) mismatch with target arm in '/home/lwan1/WORKING_DIRECTORY/kernel/vmlinux' => it means you want to go for an ARM arch but your kernel has been compiled for x86_64. Try "file xxx/vmlinux", it will confirm.

Have you compiled it yourself ? You then forgot the ARCH=arm and CROSS_COMPILE=arm-none-gnuxxxxx variables


>So I tried the most simple script helloworld.stp, but it still
>does not work.

It is quite the same. It will try to compile for an ARM arch with kernel configuration set for x86_64. Therefore compilation flags interact in weird manner with headers.


By the way, we use a 2010 toolchain or more recent, 2008 is quite old but shall still work.
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-01 16:31                     ` Turgis, Frederic
@ 2011-09-01 17:34                       ` Josh Stone
  2011-09-01 21:40                         ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-09-01 17:34 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Yao,Yanjun, systemtap

On 09/01/2011 09:31 AM, Turgis, Frederic wrote:
> Error messages were explicit enough, indicating -D was seen as a
> file. Not the first time people have issues with copy/paste (I the
> first because I was first to read when my colleague wrote the page).
> I think issue is still there because you can't simply erase -D and
> retype it, area is still in that Unicode.

It was seen as a file because getopt only looks for ascii '-' options.
Thus the –D looked like the first non-option argument, which we
interpret as the filename for your script.

I'm not sure what you mean by "issue is still there" -- in stap?
There's not much we could do, nor should do in my opinion.  It should
work just find to retype the -D, as even in Unicode the '-' on your
keyboard will yield U+002D (equivalent to ascii).  It's usually a
WYSIWYG-type editor that translates dash to em-dash, quotes to "smart"
quotes, '...' to ellipsis, etc.

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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-01 17:34                       ` Josh Stone
@ 2011-09-01 21:40                         ` Turgis, Frederic
  0 siblings, 0 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-01 21:40 UTC (permalink / raw)
  To: Josh Stone; +Cc: Yao,Yanjun, systemtap

>I'm not sure what you mean by "issue is still there" -- in stap?
No, on wiki, sorry for confusion. Someone was supposed to have corrected these copy/paste stuff months ago. But when I tried to correct it this morning, retyping -D at same location was not sufficient, so I assume we tried to correct by retyping and did not retest :-(

But as mentioned in previous mail, "I could modify the wiki, it shall be fine now". I typed -D elsewhere, removed -D and did a cut/paste. Weird


Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* RE: Some Problem come out during runing systemtap module on Android phone.
  2011-09-01  8:37               ` Some Problem come out during runing systemtap module on Android phone Turgis, Frederic
@ 2011-09-06  1:30                 ` 최재혁B
  2011-09-06  9:58                   ` Turgis, Frederic
  2011-09-09  1:40                 ` problem during "make install" at Ubuntu64 최재혁B
  1 sibling, 1 reply; 51+ messages in thread
From: 최재혁B @ 2011-09-06  1:30 UTC (permalink / raw)
  To: 'Turgis, Frederic'; +Cc: 'Josh Stone', systemtap

Hi, Frederic.

Thanks for your answer.

After your mail, I have tried to find why systemtap on gingerbread phone is not working.
After all, I got a different point between the several kernel versions which were supplied  by qualcomm,
and I verified my systemtap works fine.

Below is  before, after and original  from the file name "arch/arm/kernel/vmlinux.lds.s, around 99 line" .
>> Before. ( got the problem .)

			*(.gnu.warning)
			*(.rodata)
			*(.rodata.*)
			*(.glue_7)
			*(.glue_7t)
		*(.got)			/* Global offset table		*/
	}
#ifdef CONFIG_STRICT_MEMORY_RWX
	. = ALIGN(1<<SECTION_SHIFT);
#endif

	RO_DATA(PAGE_SIZE)

>> after ( fixed the problem )

			*(.gnu.warning)
			*(.rodata)
			*(.rodata.*)
#ifdef CONFIG_STRICT_MEMORY_RWX
            . = ALIGN(1<<SECTION_SHIFT);
#endif
			*(.glue_7)
			*(.glue_7t)
		*(.got)			/* Global offset table		*/
	}

	RO_DATA(PAGE_SIZE)

>> original kernel version 

			*(.gnu.warning)
			*(.rodata)
			*(.rodata.*)
			*(.glue_7)
			*(.glue_7t)
		*(.got)			/* Global offset table		*/
	}

	RO_DATA(PAGE_SIZE)


Accordinng the above ,   what caused the problem is  the position of ". = ALIGN(1<<SECTION_SHIFT);", 
and the original version  doesn’t have the line.

On your guesswork,  why do you think the qualcomm  inserts the line?


.Other questions.

I want to monitor the CPU time occupation of some process, 
 and also to monitor the reduction of kernel memory which is caused from the abnormal memory usage of some process .

could you share some systemtap codes to me about the above two concern ?
or recommend some samples  among the distribution of systemtap ? 



Best Regars
Jaehyek Choi


-----Original Message-----
From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Turgis, Frederic
Sent: Thursday, September 01, 2011 5:38 PM
To: 최재혁B
Cc: 'Josh Stone'; systemtap@sourceware.org
Subject: RE: Some Problem come out during runing systemtap module on Android phone.

> But the target “android gingerbread phone” is not working.
> when I run the “helloworld.stp”,  an abnormal message comes
> out like below.
>
> /data/staphome/bin# ./staprun helloworld.ko helloworld
> /data/staphome/bin/staprun: No such file or directory (  <-
> abnormal message )
Try first ./staprun to see if "help" is coming out. "printf" shall work ! Try to chmod staprun and stapio, this does not look related to systemtap
I made systemtap work on Froyo and Gingerbread, well this is essentially a kernel related tool on ARM (no time to investigate/code utrace/uprobes on our side :-( ) so it shall work on any pastry, as google does not change that much the kernel. But userspace is killing me as a developer.


>
>
> Also when I run the “ ./staprun iotop.ko” on target phone,
> the phone is gone to reset .
> Could you help me to resolve this problem ?
Mmmmh, we have hit issues when running several scripts in parallel (on Android, works fine on Ubuntu). Works first time, not 2nd time. Or issues when probing all system calls. But iotop.stp is working fine on my Gingerbread (K2.6.35)

>
> As your reference,
> . the Froyo phone is including the kernel version 2.6.32
> which was built in ubuntu 32bit, . the Gingerbread phone is
> including the kernel version 2.6.35.11 which was built in
> ubuntu 64bit.
We are at kernel 2.6.35. I don't really track the potential incompabilities between kernels and systemtap. We had to modify ptrace.h in the past, I don't remember when we started no longer needing it

> . And both phone is not OMAP-based . ( Should I use the OMAP
> platform ? )
You don't need an OMAP platform. We don't make any specific change for OMAP. Using /data/staphome instead of /home/xxx is totally OK as far as you respect paths on desktop and target, which is the case for you.

Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920




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

* RE: Some Problem come out during runing systemtap module on Android phone.
  2011-09-06  1:30                 ` 최재혁B
@ 2011-09-06  9:58                   ` Turgis, Frederic
  0 siblings, 0 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-06  9:58 UTC (permalink / raw)
  To: 최재혁B; +Cc: 'Josh Stone', systemtap


>On your guesswork,  why do you think the qualcomm  inserts the line?

I have unfortunately no clue as I am not really knowledgeable into that part.


>.Other questions.
>
>I want to monitor the CPU time occupation of some process,
>and also to monitor the reduction of kernel memory which is
>caused from the abnormal memory usage of some process .

We never really tracked memory with systemtap but http://sourceware.org/systemtap/examples/ provides several examples in memory/ (kmalloc-top, mmfilepage, vm.tracepoints, ...). Mmmmh I assume you have to know a bit about memory allocation (which I am also not really versed into ;-) ). Generally I have a good look to tapset, it helps (tapset/memory.stp here)

For CPU time, frankly, "top" is accurate enough for time occupation (and Android one has been rewritten in 200 lines, which makes it easy to add features or more precision to %). We use systemtap mostly to study sequences and observe pre-emptions. Processtimes.stp is very interesting but we preferred moving post-processing on host. So we use scheduler.cpu_on and scheduler.wakeup probes in general (to track context switches and differentiate task waiting in Queued or Sleep sate)

We have seen some issues in the past on Android, which were thought as a setup issue so we cheat a bit (unlike Ubuntu, why is Android always an issue ? ;-) ) so we use the function probe rather than the tapset. We shall take time to recheck.

We try to trace the least necessary info possible:
probe kernel.function("finish_task_switch") {
  printf("%d %c %s:%d\n", <some function to get absolute time, 32kHz timer or gettimeofday_us()>, 48 + cpu(), execname(), tid())
}

probe kernel.function("try_to_wake_up") {
  printf("%d %c  Wakeup: %s:%d\n", <some function to get time>, 48 + task_cpu($p), kernel_string($p->comm), $p->pid)
}

You get:
6 1 swapper:0 -> idle task on CPU 1
26 1 systemtap/1:2690 -> hey, systemtap is scheduled on core 1
28 1 swapper:0 -> execution time of systemtap/1 is then 28 - 26
279 0 dsi:301 -> work queue on core 0

It is not different from a scheduler trace (ftrace, perf, ...) but we customize size/content of trace per our needs

Regards
Fred
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920




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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-01 16:44                     ` Turgis, Frederic
@ 2011-09-07 21:46                       ` Yao,Yanjun
  2011-09-08  7:46                         ` Mark Wielaard
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-07 21:46 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Josh Stone, systemtap

Hi,

I recompile the kernel with cross-compiler "arm-none-linux-gnueabi-"
and "make ARCH=arm"

Now, I can get "helloworld.ko" from "helloworld.stp", however, when I
try to cross-compile "syscall_by_pid.stp", I got the following error
message:
./stap -c -gv -a arm -D OMAP_L25 -B
CROSS_COMPILE=~/Downloads/arm-2010q1/bin/arm-none-linux-gnueabi- -r
/home/lwan1/WORKING_DIRECTORY/kernel_1 -I
/data/systemtap-1.5-macharm/share/systemtap/tapset/ -R
/data/systemtap-1.5-macharm/share/systemtap/runtime/ -m
syscalls_by_pid ~/Downloads/syscalls_by_pid.stp -c "sleep 0.2"
WARNING: kernel release/architecture mismatch with host forces last-pass 4.
semantic error: unresolved arity-4 function: identifier
'_arch_ptrace_argstr' at
/data/systemtap-1.5-ubuntu/share/systemtap/tapset/aux_syscalls.stp:2234:9
        source:     retval=_arch_ptrace_argstr(request, pid, addr, data)
                           ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

I thought it was the problem of the tapset, so I reinstalled the
systemtap, but the problem is still there.

Any hint would be welcome.

Thanks.

Yours
Sincerely

2011/9/1 Turgis, Frederic <f-turgis@ti.com>
>
> >I tried to cross-compile the syscall_by_pid.stp
>
> There is an error at Pass1 => semantic error: ELF machine |x86_64 (code 62) mismatch with target arm in '/home/lwan1/WORKING_DIRECTORY/kernel/vmlinux' => it means you want to go for an ARM arch but your kernel has been compiled for x86_64. Try "file xxx/vmlinux", it will confirm.
>
> Have you compiled it yourself ? You then forgot the ARCH=arm and CROSS_COMPILE=arm-none-gnuxxxxx variables
>
>
> >So I tried the most simple script helloworld.stp, but it still
> >does not work.
>
> It is quite the same. It will try to compile for an ARM arch with kernel configuration set for x86_64. Therefore compilation flags interact in weird manner with headers.
>
>
> By the way, we use a 2010 toolchain or more recent, 2008 is quite old but shall still work.
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
>
>
>

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-07 21:46                       ` Yao,Yanjun
@ 2011-09-08  7:46                         ` Mark Wielaard
  2011-09-08 17:12                           ` Yao,Yanjun
  0 siblings, 1 reply; 51+ messages in thread
From: Mark Wielaard @ 2011-09-08  7:46 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: Turgis, Frederic, Josh Stone, systemtap

On Wed, Sep 07, 2011 at 05:45:57PM -0400, Yao,Yanjun wrote:
> Hi,
> 
> I recompile the kernel with cross-compiler "arm-none-linux-gnueabi-"
> and "make ARCH=arm"
> 
> Now, I can get "helloworld.ko" from "helloworld.stp", however, when I
> try to cross-compile "syscall_by_pid.stp", I got the following error
> message:
> ./stap -c -gv -a arm -D OMAP_L25 -B
> CROSS_COMPILE=~/Downloads/arm-2010q1/bin/arm-none-linux-gnueabi- -r
> /home/lwan1/WORKING_DIRECTORY/kernel_1 -I
> /data/systemtap-1.5-macharm/share/systemtap/tapset/ -R
> /data/systemtap-1.5-macharm/share/systemtap/runtime/ -m
> syscalls_by_pid ~/Downloads/syscalls_by_pid.stp -c "sleep 0.2"
> WARNING: kernel release/architecture mismatch with host forces last-pass 4.
> semantic error: unresolved arity-4 function: identifier
> '_arch_ptrace_argstr' at
> /data/systemtap-1.5-ubuntu/share/systemtap/tapset/aux_syscalls.stp:2234:9
>         source:     retval=_arch_ptrace_argstr(request, pid, addr, data)
>                            ^
> Pass 2: analysis failed.  Try again with another '--vp 01' option.
> 
> I thought it was the problem of the tapset, so I reinstalled the
> systemtap, but the problem is still there.
> 
> Any hint would be welcome.

This was fixed in current systemtap git sources by:

commit 0c3087cc827a9e79abcf573e1a7ebfbc0be60c0e
Author: William Cohen <wcohen@redhat.com>
Date:   Tue Jul 19 17:38:52 2011 -0400

    Add tapset/arm/aux_syscalls.stp
    
    The ARM processor needs to have _arch_ptrace_argstr() function defined
    so the kernel-debuginfo smoke test used for the "make installcheck" works.

Cheers,

Mark

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-08  7:46                         ` Mark Wielaard
@ 2011-09-08 17:12                           ` Yao,Yanjun
  2011-09-09 11:35                             ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-08 17:12 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: Turgis, Frederic, Josh Stone, systemtap

Thanks Mark. I can get the syscall_by_pid.ko successfully.

However, when I run it in the "adb shell", I still got the syntax
error as following:
     # ./staprun syscalls_by_pid.ko
     ./staprun: 1: Syntax error: "(" unexpected

I know the reason is that my staprun is in x86 format. However, I do
follow the instructions on:
http://omappedia.org/wiki/Systemtap#Systemtap%201.5%20code%20update%20for%20OMAP%20ARM%20platforms

I run the following configuration before make install:
ac_cv_file__usr_include_avahi_common=no
ac_cv_file__usr_include_avahi_client=no
ac_cv_file__usr_include_nspr=no ac_cv_file__usr_include_nspr4=no
ac_cv_file__usr_include_nss=no ac_cv_file__usr_include_nss3=no
ac_cv_func_malloc_0_nonnull=yes ./configure
--exec-prefix=/data/systemtap-1.5-macharm
--prefix=/data/systemtap-1.5-macharm --host=arm-none-linux-gnueabi
CXXFLAGS=-static CFLAGS=-static --disable-translator --disable-docs
--disable-refdocs --disable-grapher --without-rpm
--with-elfutils=/home/lwan1/elfutils-0.143

However, the installed file is still in the format as following:
lwan1@ubuntu:/data$ file systemtap-1.5-macharm/bin/staprun
systemtap-1.5-macharm/bin/staprun: ELF 64-bit LSB executable, x86-64,
version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.15, from
'p)', not stripped

Any hints about why this is happening would be warmly welcomed.

Thank you very much.

Yours
Sincerely


2011/9/8 Mark Wielaard <mark@klomp.org>:
> On Wed, Sep 07, 2011 at 05:45:57PM -0400, Yao,Yanjun wrote:
>> Hi,
>>
>> I recompile the kernel with cross-compiler "arm-none-linux-gnueabi-"
>> and "make ARCH=arm"
>>
>> Now, I can get "helloworld.ko" from "helloworld.stp", however, when I
>> try to cross-compile "syscall_by_pid.stp", I got the following error
>> message:
>> ./stap -c -gv -a arm -D OMAP_L25 -B
>> CROSS_COMPILE=~/Downloads/arm-2010q1/bin/arm-none-linux-gnueabi- -r
>> /home/lwan1/WORKING_DIRECTORY/kernel_1 -I
>> /data/systemtap-1.5-macharm/share/systemtap/tapset/ -R
>> /data/systemtap-1.5-macharm/share/systemtap/runtime/ -m
>> syscalls_by_pid ~/Downloads/syscalls_by_pid.stp -c "sleep 0.2"
>> WARNING: kernel release/architecture mismatch with host forces last-pass 4.
>> semantic error: unresolved arity-4 function: identifier
>> '_arch_ptrace_argstr' at
>> /data/systemtap-1.5-ubuntu/share/systemtap/tapset/aux_syscalls.stp:2234:9
>>         source:     retval=_arch_ptrace_argstr(request, pid, addr, data)
>>                            ^
>> Pass 2: analysis failed.  Try again with another '--vp 01' option.
>>
>> I thought it was the problem of the tapset, so I reinstalled the
>> systemtap, but the problem is still there.
>>
>> Any hint would be welcome.
>
> This was fixed in current systemtap git sources by:
>
> commit 0c3087cc827a9e79abcf573e1a7ebfbc0be60c0e
> Author: William Cohen <wcohen@redhat.com>
> Date:   Tue Jul 19 17:38:52 2011 -0400
>
>    Add tapset/arm/aux_syscalls.stp
>
>    The ARM processor needs to have _arch_ptrace_argstr() function defined
>    so the kernel-debuginfo smoke test used for the "make installcheck" works.
>
> Cheers,
>
> Mark
>

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

* problem during "make install" at Ubuntu64.
  2011-09-01  8:37               ` Some Problem come out during runing systemtap module on Android phone Turgis, Frederic
  2011-09-06  1:30                 ` 최재혁B
@ 2011-09-09  1:40                 ` 최재혁B
  2011-09-09  9:47                   ` Mark Wielaard
  1 sibling, 1 reply; 51+ messages in thread
From: 최재혁B @ 2011-09-09  1:40 UTC (permalink / raw)
  To: 'Turgis, Frederic'; +Cc: 'Josh Stone', systemtap

[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]

Hi.

I have built the systemtap in ubuntu 32  successfully.
So I can run the stap at ubuntu 32 and   the staprun  at Android phone.

But  I can't build the systemtap in ubuntu 64 ver 11.04  for host PC , not for target phone.

Then environment is 
- reference website : http://www.omappedia.org/wiki/Systemtap
- systemtap ver : 1.6
- configure command line :
   ./configure  --exec-prefix=/data/staphome  --prefix=/data/staphome  --with-elfutils=/data/elfutils-0.152
- and next command 
   ./make  install

And then, next error message is 
----------------------------------------------------------------------------------------------------------------------------
test -z "/data/staphome/share/man/man1" || /bin/mkdir -p "/data/staphome/share/man/man1"
 /usr/bin/install -c -m 644 dtrace.1 stap-merge.1 stap.1 '/data/staphome/share/man/man1'
test -z "/data/staphome/share/man/man3" || /bin/mkdir -p "/data/staphome/share/man/man3"
 /usr/bin/install -c -m 644 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap '/data/staphome/share/man/man3'
test -z "/data/staphome/share/man/man7" || /bin/mkdir -p "/data/staphome/share/man/man7"
 /usr/bin/install -c -m 644 stappaths.7 '/data/staphome/share/man/man7'
test -z "/data/staphome/share/man/man8" || /bin/mkdir -p "/data/staphome/share/man/man8"
test -z "/data/staphome/include/sys" || /bin/mkdir -p "/data/staphome/include/sys"
 /usr/bin/install -c -m 644 includes/sys/sdt.h includes/sys/sdt-config.h '/data/staphome/include/sys'
make[3]: Leaving directory `/data/stapbuild'
make[2]: Leaving directory `/data/stapbuild'
Making install in runtime/staprun
make[2]: Entering directory `/data/stapbuild/runtime/staprun'
  CC     staprun-staprun.o
  CC     staprun-staprun_funcs.o
  CC     staprun-ctl.o
  CC     staprun-common.o
  CC     staprun-modverify.o
modverify.c:26:18: fatal error: nspr.h: no such file or directory
compilation terminated.
make[2]: *** [staprun-modverify.o] error 1
make[2]: Leaving directory `/data/stapbuild/runtime/staprun'
make[1]: *** [install-recursive] error 1
make[1]: Leaving directory `/data/stapbuild'
make: *** [install] error 2
jaehyek@jaehyek-A505-64:/data/stapbuild$
--------------------------------------------------------------------------------------------------------------------------------
The attach is log for ./configure command .

Please help me to resolve that problem .


Best Regards
Jaehyek Choi


[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 60140 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by systemtap configure 1.6, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  $ ./configure --exec-prefix=/data/staphome --prefix=/data/staphome --with-elfutils=/data/elfutils-0.152

## --------- ##
## Platform. ##
## --------- ##

hostname = jaehyek-A505-64
uname -m = x86_64
uname -r = 2.6.38-10-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: .
PATH: /home/jaehyek/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /home/jaehyek/myexe
PATH: /home/jaehyek/bin
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/platform-tools
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/tools
PATH: /opt/CodeSourcery/Sourcery_G++_Lite/bin
PATH: .
PATH: /usr/lib/jvm/java-6-sun/bin
PATH: /usr/lib/jvm/java-6-sun/jre/bin
PATH: /home/jaehyek/eclipse/android-ndk-r6


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2509: checking for a BSD-compatible install
configure:2577: result: /usr/bin/install -c
configure:2588: checking whether build environment is sane
configure:2638: result: yes
configure:2779: checking for a thread-safe mkdir -p
configure:2818: result: /bin/mkdir -p
configure:2831: checking for gawk
configure:2847: found /usr/bin/gawk
configure:2858: result: gawk
configure:2869: checking whether make sets $(MAKE)
configure:2891: result: yes
configure:2972: checking whether to enable maintainer-specific portions of Makefiles
configure:2981: result: no
configure:3020: checking for style of include used by make
configure:3048: result: GNU
configure:3118: checking for gcc
configure:3134: found /usr/bin/gcc
configure:3145: result: gcc
configure:3374: checking for C compiler version
configure:3383: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3394: $? = 0
configure:3383: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:3394: $? = 0
configure:3383: gcc -V >&5
gcc: '-V' option must have argument
configure:3394: $? = 1
configure:3383: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3394: $? = 1
configure:3414: checking whether the C compiler works
configure:3436: gcc    conftest.c  >&5
configure:3440: $? = 0
configure:3488: result: yes
configure:3491: checking for C compiler default output file name
configure:3493: result: a.out
configure:3499: checking for suffix of executables
configure:3506: gcc -o conftest    conftest.c  >&5
configure:3510: $? = 0
configure:3532: result: 
configure:3554: checking whether we are cross compiling
configure:3562: gcc -o conftest    conftest.c  >&5
configure:3566: $? = 0
configure:3573: ./conftest
configure:3577: $? = 0
configure:3592: result: no
configure:3597: checking for suffix of object files
configure:3619: gcc -c   conftest.c >&5
configure:3623: $? = 0
configure:3644: result: o
configure:3648: checking whether we are using the GNU C compiler
configure:3667: gcc -c   conftest.c >&5
configure:3667: $? = 0
configure:3676: result: yes
configure:3685: checking whether gcc accepts -g
configure:3705: gcc -c -g  conftest.c >&5
configure:3705: $? = 0
configure:3746: result: yes
configure:3763: checking for gcc option to accept ISO C89
configure:3827: gcc  -c -g -O2  conftest.c >&5
configure:3827: $? = 0
configure:3840: result: none needed
configure:3862: checking dependency style of gcc
configure:3972: result: gcc3
configure:3993: checking how to run the C preprocessor
configure:4024: gcc -E  conftest.c
configure:4024: $? = 0
configure:4038: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4038: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4063: result: gcc -E
configure:4083: gcc -E  conftest.c
configure:4083: $? = 0
configure:4097: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4097: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4126: checking for grep that handles long lines and -e
configure:4184: result: /bin/grep
configure:4189: checking for egrep
configure:4251: result: /bin/grep -E
configure:4256: checking for ANSI C header files
configure:4276: gcc -c -g -O2  conftest.c >&5
configure:4276: $? = 0
configure:4349: gcc -o conftest -g -O2   conftest.c  >&5
configure:4349: $? = 0
configure:4349: ./conftest
configure:4349: $? = 0
configure:4360: result: yes
configure:4373: checking for sys/types.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for sys/stat.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for stdlib.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for string.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for memory.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for strings.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for inttypes.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for stdint.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4373: checking for unistd.h
configure:4373: gcc -c -g -O2  conftest.c >&5
configure:4373: $? = 0
configure:4373: result: yes
configure:4386: checking minix/config.h usability
configure:4386: gcc -c -g -O2  conftest.c >&5
conftest.c:54:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:4386: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:4386: result: no
configure:4386: checking minix/config.h presence
configure:4386: gcc -E  conftest.c
conftest.c:21:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:4386: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <minix/config.h>
configure:4386: result: no
configure:4386: checking for minix/config.h
configure:4386: result: no
configure:4407: checking whether it is safe to define __EXTENSIONS__
configure:4425: gcc -c -g -O2  conftest.c >&5
configure:4425: $? = 0
configure:4432: result: yes
configure:4453: checking whether ln -s works
configure:4457: result: yes
configure:4512: checking for gcc
configure:4539: result: gcc
configure:4768: checking for C compiler version
configure:4777: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4788: $? = 0
configure:4777: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:4788: $? = 0
configure:4777: gcc -V >&5
gcc: '-V' option must have argument
configure:4788: $? = 1
configure:4777: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4788: $? = 1
configure:4792: checking whether we are using the GNU C compiler
configure:4820: result: yes
configure:4829: checking whether gcc accepts -g
configure:4890: result: yes
configure:4907: checking for gcc option to accept ISO C89
configure:4984: result: none needed
configure:5006: checking dependency style of gcc
configure:5116: result: gcc3
configure:5189: checking for g++
configure:5205: found /usr/bin/g++
configure:5216: result: g++
configure:5243: checking for C++ compiler version
configure:5252: g++ --version >&5
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5263: $? = 0
configure:5252: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:5263: $? = 0
configure:5252: g++ -V >&5
g++: '-V' option must have argument
configure:5263: $? = 1
configure:5252: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:5263: $? = 1
configure:5267: checking whether we are using the GNU C++ compiler
configure:5286: g++ -c   conftest.cpp >&5
configure:5286: $? = 0
configure:5295: result: yes
configure:5304: checking whether g++ accepts -g
configure:5324: g++ -c -g  conftest.cpp >&5
configure:5324: $? = 0
configure:5365: result: yes
configure:5390: checking dependency style of g++
configure:5500: result: gcc3
configure:5520: checking how to run the C preprocessor
configure:5590: result: gcc -E
configure:5610: gcc -E  conftest.c
configure:5610: $? = 0
configure:5624: gcc -E  conftest.c
conftest.c:26:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5624: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5700: checking for gcc
configure:5727: result: gcc
configure:5956: checking for C compiler version
configure:5965: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5976: $? = 0
configure:5965: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:5976: $? = 0
configure:5965: gcc -V >&5
gcc: '-V' option must have argument
configure:5976: $? = 1
configure:5965: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:5976: $? = 1
configure:5980: checking whether we are using the GNU C compiler
configure:6008: result: yes
configure:6017: checking whether gcc accepts -g
configure:6078: result: yes
configure:6095: checking for gcc option to accept ISO C89
configure:6172: result: none needed
configure:6194: checking dependency style of gcc
configure:6304: result: gcc3
configure:6323: checking whether gcc and cc understand -c and -o together
configure:6354: gcc -c conftest.c -o conftest2.o >&5
configure:6358: $? = 0
configure:6364: gcc -c conftest.c -o conftest2.o >&5
configure:6368: $? = 0
configure:6379: cc -c conftest.c >&5
configure:6383: $? = 0
configure:6391: cc -c conftest.c -o conftest2.o >&5
configure:6395: $? = 0
configure:6401: cc -c conftest.c -o conftest2.o >&5
configure:6405: $? = 0
configure:6423: result: yes
configure:6448: checking for function prototypes
configure:6451: result: yes
configure:6474: checking for string.h
configure:6474: result: yes
configure:6528: checking for ranlib
configure:6544: found /usr/bin/ranlib
configure:6555: result: ranlib
configure:6580: checking whether make sets $(MAKE)
configure:6602: result: yes
configure:6614: checking whether NLS is requested
configure:6623: result: yes
configure:6664: checking for msgfmt
configure: trying /usr/bin/msgfmt...
0 translated messages.
configure:6696: result: /usr/bin/msgfmt
configure:6705: checking for gmsgfmt
configure:6736: result: /usr/bin/msgfmt
configure:6787: checking for xgettext
configure: trying /usr/bin/xgettext...
/usr/bin/xgettext: warning: file `/dev/null' extension `' is unknown; will try C
configure:6819: result: /usr/bin/xgettext
configure:6865: checking for msgmerge
configure: trying /usr/bin/msgmerge...
configure:6896: result: /usr/bin/msgmerge
configure:6933: checking build system type
configure:6947: result: x86_64-unknown-linux-gnu
configure:6967: checking host system type
configure:6980: result: x86_64-unknown-linux-gnu
configure:7024: checking for ld used by GCC
configure:7088: result: /usr/bin/ld
configure:7095: checking if the linker (/usr/bin/ld) is GNU ld
configure:7108: result: yes
configure:7115: checking for shared library run path origin
configure:7128: result: done
configure:7735: checking for GNU gettext in libc
configure:7755: gcc -o conftest -g -O2   conftest.c  >&5
configure:7755: $? = 0
configure:7764: result: yes
configure:8555: checking whether to use NLS
configure:8557: result: yes
configure:8560: checking where the gettext function comes from
configure:8571: result: libc
configure:8631: checking for ppoll
configure:8631: gcc -o conftest -g -O2   conftest.c  >&5
configure:8631: $? = 0
configure:8631: result: yes
configure:8642: checking to see if prologue searching should be the default
configure:8651: result: no
configure:8694: gcc -c -g -O2 -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:8694: $? = 0
configure:8696: Compiling with gcc -fstack-protector-all et al.
configure:8770: checking for sqlite3_open in -lsqlite3
configure:8795: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lsqlite3   >&5
/usr/bin/ld: cannot find -lsqlite3
collect2: ld returned 1 exit status
configure:8795: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char sqlite3_open ();
| int
| main ()
| {
| return sqlite3_open ();
|   ;
|   return 0;
| }
configure:8804: result: no
configure:8890: checking for latex
configure:8918: result: no
configure:8928: checking for dvips
configure:8956: result: no
configure:8966: checking for ps2pdf
configure:8982: found /usr/bin/ps2pdf
configure:8994: result: yes
configure:9004: checking for latex2html
configure:9032: result: no
configure:9045: WARNING: will not build documentation, cannot find all tools
configure:9074: checking for publican
configure:9102: result: no
configure:9151: checking for xmlto
configure:9179: result: no
configure:9268: checking for /usr/include/nss3
configure:9281: result: yes
configure:9309: checking for /usr/include/nspr4
configure:9322: result: no
configure:9328: checking for /usr/include/nspr
configure:9341: result: no
configure:9376: checking for PR_Connect in -lnspr4
configure:9401: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lnspr4   >&5
configure:9401: $? = 0
configure:9410: result: yes
configure:9414: checking for SSL_ReHandshake in -lssl3
configure:9439: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lssl3   >&5
configure:9439: $? = 0
configure:9448: result: yes
configure:9481: WARNING: will not build systemtap compile server, cannot find nss/nspr headers
configure:9499: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr headers
configure:9507: checking for /usr/include/avahi-client
configure:9520: result: yes
configure:9526: checking for /usr/include/avahi-common
configure:9539: result: yes
configure:9550: checking avahi-client/client.h usability
configure:9550: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking avahi-client/client.h presence
configure:9550: gcc -E  conftest.c
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking for avahi-client/client.h
configure:9550: result: yes
configure:9550: checking avahi-client/lookup.h usability
configure:9550: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking avahi-client/lookup.h presence
configure:9550: gcc -E  conftest.c
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking for avahi-client/lookup.h
configure:9550: result: yes
configure:9550: checking avahi-common/simple-watch.h usability
configure:9550: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking avahi-common/simple-watch.h presence
configure:9550: gcc -E  conftest.c
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking for avahi-common/simple-watch.h
configure:9550: result: yes
configure:9550: checking avahi-common/malloc.h usability
configure:9550: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking avahi-common/malloc.h presence
configure:9550: gcc -E  conftest.c
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking for avahi-common/malloc.h
configure:9550: result: yes
configure:9550: checking avahi-common/error.h usability
configure:9550: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking avahi-common/error.h presence
configure:9550: gcc -E  conftest.c
configure:9550: $? = 0
configure:9550: result: yes
configure:9550: checking for avahi-common/error.h
configure:9550: result: yes
configure:9564: checking for avahi_client_new in -lavahi-client
configure:9589: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lavahi-client   >&5
configure:9589: $? = 0
configure:9598: result: yes
configure:9601: checking for avahi_strerror in -lavahi-common
configure:9626: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lavahi-common   >&5
configure:9626: $? = 0
configure:9635: result: yes
configure:9724: checking for pkg-config
configure:9742: found /usr/bin/pkg-config
configure:9754: result: /usr/bin/pkg-config
configure:9779: checking pkg-config is at least version 0.9.0
configure:9782: result: yes
configure:9796: checking how to run the C++ preprocessor
configure:9823: g++ -E  conftest.cpp
configure:9823: $? = 0
configure:9837: g++ -E  conftest.cpp
conftest.cpp:40:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:9837: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:9862: result: g++ -E
configure:9882: g++ -E  conftest.cpp
configure:9882: $? = 0
configure:9896: g++ -E  conftest.cpp
conftest.cpp:40:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:9896: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:9929: checking for gtkmm
configure:9936: $PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0"
Package gtkmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.4' found
configure:9939: $? = 1
configure:9952: $PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0"
Package gtkmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.4' found
configure:9955: $? = 1
configure:9968: result: no
No package 'gtkmm-2.4' found
configure:10003: checking for libglade
configure:10010: $PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7"
Package libglademm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglademm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglademm-2.4' found
configure:10013: $? = 1
configure:10026: $PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7"
Package libglademm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglademm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglademm-2.4' found
configure:10029: $? = 1
configure:10042: result: no
No package 'libglademm-2.4' found
configure:10085: checking boost/algorithm/string.hpp usability
configure:10085: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
conftest.cpp:73:38: fatal error: boost/algorithm/string.hpp: No such file or directory
compilation terminated.
configure:10085: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/algorithm/string.hpp>
configure:10085: result: no
configure:10085: checking boost/algorithm/string.hpp presence
configure:10085: g++ -E  conftest.cpp
conftest.cpp:40:38: fatal error: boost/algorithm/string.hpp: No such file or directory
compilation terminated.
configure:10085: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <boost/algorithm/string.hpp>
configure:10085: result: no
configure:10085: checking for boost/algorithm/string.hpp
configure:10085: result: no
configure:10085: checking boost/range.hpp usability
configure:10085: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
conftest.cpp:73:27: fatal error: boost/range.hpp: No such file or directory
compilation terminated.
configure:10085: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/range.hpp>
configure:10085: result: no
configure:10085: checking boost/range.hpp presence
configure:10085: g++ -E  conftest.cpp
conftest.cpp:40:27: fatal error: boost/range.hpp: No such file or directory
compilation terminated.
configure:10085: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <boost/range.hpp>
configure:10085: result: no
configure:10085: checking for boost/range.hpp
configure:10085: result: no
configure:10136: checking for rpmtsInitIterator in -lrpm
configure:10161: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lrpm   >&5
/usr/bin/ld: cannot find -lrpm
collect2: ld returned 1 exit status
configure:10161: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char rpmtsInitIterator ();
| int
| main ()
| {
| return rpmtsInitIterator ();
|   ;
|   return 0;
| }
configure:10170: result: no
configure:10183: checking for rpmFreeCrypto in -lrpmio
configure:10208: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lrpmio   >&5
/usr/bin/ld: cannot find -lrpmio
collect2: ld returned 1 exit status
configure:10208: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char rpmFreeCrypto ();
| int
| main ()
| {
| return rpmFreeCrypto ();
|   ;
|   return 0;
| }
configure:10217: result: no
configure:10422: stap will link  -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf
configure:10448: checking tr1/unordered_map usability
configure:10448: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
configure:10448: $? = 0
configure:10448: result: yes
configure:10448: checking tr1/unordered_map presence
configure:10448: g++ -E  conftest.cpp
configure:10448: $? = 0
configure:10448: result: yes
configure:10448: checking for tr1/unordered_map
configure:10448: result: yes
configure:10460: checking tr1/memory usability
configure:10460: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
configure:10460: $? = 0
configure:10460: result: yes
configure:10460: checking tr1/memory presence
configure:10460: g++ -E  conftest.cpp
configure:10460: $? = 0
configure:10460: result: yes
configure:10460: checking for tr1/memory
configure:10460: result: yes
configure:10472: checking boost/shared_ptr.hpp usability
configure:10472: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
conftest.cpp:76:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
configure:10472: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| #define DATE "2011-09-09"
| #define HAVE_TR1_UNORDERED_MAP 1
| #define HAVE_TR1_MEMORY 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/shared_ptr.hpp>
configure:10472: result: no
configure:10472: checking boost/shared_ptr.hpp presence
configure:10472: g++ -E  conftest.cpp
conftest.cpp:43:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
configure:10472: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_AVAHI_CLIENT_CLIENT_H 1
| #define HAVE_AVAHI_CLIENT_LOOKUP_H 1
| #define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
| #define HAVE_AVAHI_COMMON_MALLOC_H 1
| #define HAVE_AVAHI_COMMON_ERROR_H 1
| #define HAVE_AVAHI 1
| #define DATE "2011-09-09"
| #define HAVE_TR1_UNORDERED_MAP 1
| #define HAVE_TR1_MEMORY 1
| /* end confdefs.h.  */
| #include <boost/shared_ptr.hpp>
configure:10472: result: no
configure:10472: checking for boost/shared_ptr.hpp
configure:10472: result: no
configure:10490: checking for assembler .section "?" flags support
configure:10510: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wa,--fatal-warnings  conftest.c >&5
configure:10510: $? = 0
configure:10518: result: yes
configure:10533: running /data/elfutils-0.152/configure
configure:10545: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -fgnu89-inline  conftest.c >&5
configure:10545: $? = 0
configure:10547: Compiling elfutils with gcc -fgnu89-inline
configure:10807: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by systemtap config.status 1.6, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on jaehyek-A505-64

config.status:988: creating includes/sys/sdt-config.h
config.status:988: creating po/Makefile.in
config.status:988: creating Makefile
config.status:988: creating doc/Makefile
config.status:988: creating doc/beginners/Makefile
config.status:988: creating doc/SystemTap_Tapset_Reference/Makefile
config.status:988: creating grapher/Makefile
config.status:988: creating grapher/stapgraph.1
config.status:988: creating stappaths.7
config.status:988: creating initscript/systemtap
config.status:988: creating initscript/stap-server
config.status:988: creating run-stap
config.status:988: creating dtrace
config.status:988: creating doc/beginners/publican.cfg
config.status:988: creating config.h
config.status:1168: config.h is unchanged
config.status:1216: executing depfiles commands
config.status:1216: executing po-directories commands
config.status:1216: executing doc/beginners commands
configure:12331: === configuring in testsuite (/data/stapbuild/testsuite)
configure:12394: running /bin/sh ./configure --disable-option-checking '--prefix=/data/staphome'  '--exec-prefix=/data/staphome' '--with-elfutils=/data/elfutils-0.152' --cache-file=/dev/null --srcdir=.
configure:12331: === configuring in runtime/staprun (/data/stapbuild/runtime/staprun)
configure:12394: running /bin/sh ./configure --disable-option-checking '--prefix=/data/staphome'  '--exec-prefix=/data/staphome' '--with-elfutils=/data/elfutils-0.152' --cache-file=/dev/null --srcdir=.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_gtkmm_CFLAGS_set=
ac_cv_env_gtkmm_CFLAGS_value=
ac_cv_env_gtkmm_LIBS_set=
ac_cv_env_gtkmm_LIBS_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_libglade_CFLAGS_set=
ac_cv_env_libglade_CFLAGS_value=
ac_cv_env_libglade_LIBS_set=
ac_cv_env_libglade_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_file__usr_include_avahi_client=yes
ac_cv_file__usr_include_avahi_common=yes
ac_cv_file__usr_include_nspr4=no
ac_cv_file__usr_include_nspr=no
ac_cv_file__usr_include_nss3=yes
ac_cv_func_ppoll=yes
ac_cv_header_avahi_client_client_h=yes
ac_cv_header_avahi_client_lookup_h=yes
ac_cv_header_avahi_common_error_h=yes
ac_cv_header_avahi_common_malloc_h=yes
ac_cv_header_avahi_common_simple_watch_h=yes
ac_cv_header_boost_algorithm_string_hpp=no
ac_cv_header_boost_range_hpp=no
ac_cv_header_boost_shared_ptr_hpp=no
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_tr1_memory=yes
ac_cv_header_tr1_unordered_map=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_avahi_client_avahi_client_new=yes
ac_cv_lib_avahi_common_avahi_strerror=yes
ac_cv_lib_nspr4_PR_Connect=yes
ac_cv_lib_rpm_rpmtsInitIterator=no
ac_cv_lib_rpmio_rpmFreeCrypto=no
ac_cv_lib_sqlite3_sqlite3_open=no
ac_cv_lib_ssl3_SSL_ReHandshake=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_GREP=/bin/grep
ac_cv_path_MSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGMERGE=/usr/bin/msgmerge
ac_cv_path_XGETTEXT=/usr/bin/xgettext
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_have_dvips=no
ac_cv_prog_have_latex2html=no
ac_cv_prog_have_latex=no
ac_cv_prog_have_ps2pdf=yes
ac_cv_prog_have_publican=no
ac_cv_prog_have_xmlto=no
ac_cv_prog_make_make_set=yes
ac_cv_safe_to_define___extensions__=yes
acl_cv_hardcode_direct=no
acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
acl_cv_hardcode_libdir_separator=
acl_cv_hardcode_minus_L=no
acl_cv_libext=a
acl_cv_libname_spec='lib$name'
acl_cv_library_names_spec='$libname$shrext'
acl_cv_path_LD=/usr/bin/ld
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
acl_cv_shlibext=so
acl_cv_wl=-Wl,
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_prog_cc_stdc=
gt_cv_func_gnugettext1_libc=yes
stap_cv_sectionq=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /data/stapbuild/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /data/stapbuild/missing --run tar'
AM_BACKSLASH='\'
AM_DEFAULT_VERBOSITY='0'
ANSI2KNR=''
AUTOCONF='${SHELL} /data/stapbuild/missing --run autoconf'
AUTOHEADER='${SHELL} /data/stapbuild/missing --run autoheader'
AUTOMAKE='${SHELL} /data/stapbuild/missing --run automake-1.11'
AWK='gawk'
BUILD_CRASHMOD_FALSE=''
BUILD_CRASHMOD_TRUE='#'
BUILD_DOCS_FALSE=''
BUILD_DOCS_TRUE='#'
BUILD_ELFUTILS_FALSE='#'
BUILD_ELFUTILS_TRUE=''
BUILD_GRAPHER_FALSE=''
BUILD_GRAPHER_TRUE='#'
BUILD_PDFREFDOCS_FALSE=''
BUILD_PDFREFDOCS_TRUE='#'
BUILD_PUBLICAN_FALSE=''
BUILD_PUBLICAN_TRUE='#'
BUILD_REFDOCS_FALSE=''
BUILD_REFDOCS_TRUE='#'
BUILD_SERVER_FALSE=''
BUILD_SERVER_TRUE='#'
BUILD_TRANSLATOR_FALSE='#'
BUILD_TRANSLATOR_TRUE=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2'
CYGPATH_W='echo'
DATE='2011-09-09'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ENABLE_NLS='yes'
EXEEXT=''
GETTEXT_MACRO_VERSION='0.18'
GMSGFMT='/usr/bin/msgfmt'
GMSGFMT_015='/usr/bin/msgfmt'
GREP='/bin/grep'
HAVE_AVAHI_FALSE='#'
HAVE_AVAHI_TRUE=''
HAVE_NSS_FALSE=''
HAVE_NSS_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
LDFLAGS=''
LIBICONV='-liconv'
LIBINTL=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LOCALEDIR='${datarootdir}/locale'
LTLIBICONV='-liconv'
LTLIBINTL=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /data/stapbuild/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MSGFMT='/usr/bin/msgfmt'
MSGFMT_015='/usr/bin/msgfmt'
MSGMERGE='/usr/bin/msgmerge'
OBJEXT='o'
PACKAGE='systemtap'
PACKAGE_BUGREPORT='systemtap@sourceware.org'
PACKAGE_NAME='systemtap'
PACKAGE_STRING='systemtap 1.6'
PACKAGE_TARNAME='systemtap'
PACKAGE_URL=''
PACKAGE_VERSION='1.6'
PATH_SEPARATOR=':'
PIECFLAGS=''
PIECXXFLAGS=''
PIELDFLAGS=''
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
POSUB='po'
PUBLICAN_BRAND='common'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STAP_PREFIX='/data/staphome'
STRIP=''
U=''
USE_NLS='yes'
VERSION='1.6'
XGETTEXT='/usr/bin/xgettext'
XGETTEXT_015='/usr/bin/xgettext'
XGETTEXT_EXTRA_OPTIONS=''
XMLTO_STRINGPARAM_FALSE=''
XMLTO_STRINGPARAM_TRUE='#'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
elfutils_abs_srcdir='/data/elfutils-0.152'
exec_prefix='/data/staphome'
gtkmm_CFLAGS=''
gtkmm_LIBS=''
have_dvips='no'
have_latex2html='no'
have_latex='no'
have_ps2pdf='yes'
have_publican='no'
have_xmlto='no'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /data/stapbuild/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libglade_CFLAGS=''
libglade_LIBS=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
nspr_CFLAGS=''
nss_CFLAGS=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/staphome'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sqlite3_LIBS=''
stap_LIBS=' -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf'
staplog_CPPFLAGS=''
subdirs=' testsuite runtime/staprun'
support_section_question='1'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "systemtap"
#define PACKAGE_TARNAME "systemtap"
#define PACKAGE_VERSION "1.6"
#define PACKAGE_STRING "systemtap 1.6"
#define PACKAGE_BUGREPORT "systemtap@sourceware.org"
#define PACKAGE_URL ""
#define PACKAGE "systemtap"
#define VERSION "1.6"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define PROTOTYPES 1
#define __PROTOTYPES 1
#define HAVE_STRING_H 1
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_PPOLL 1
#define ENABLE_SDT_PROBES 1
#define HAVE_AVAHI_CLIENT_CLIENT_H 1
#define HAVE_AVAHI_CLIENT_LOOKUP_H 1
#define HAVE_AVAHI_COMMON_SIMPLE_WATCH_H 1
#define HAVE_AVAHI_COMMON_MALLOC_H 1
#define HAVE_AVAHI_COMMON_ERROR_H 1
#define HAVE_AVAHI 1
#define DATE "2011-09-09"
#define HAVE_TR1_UNORDERED_MAP 1
#define HAVE_TR1_MEMORY 1
#define STAP_PREFIX "/data/staphome"

configure: exit 0

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

* Re: problem during "make install" at Ubuntu64.
  2011-09-09  1:40                 ` problem during "make install" at Ubuntu64 최재혁B
@ 2011-09-09  9:47                   ` Mark Wielaard
  2011-09-09 10:38                     ` Turgis, Frederic
  2011-09-15  0:19                     ` 최재혁B
  0 siblings, 2 replies; 51+ messages in thread
From: Mark Wielaard @ 2011-09-09  9:47 UTC (permalink / raw)
  To: 최재혁B
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

On Fri, 2011-09-09 at 10:40 +0900, 최재혁B wrote:
> make[2]: Entering directory `/data/stapbuild/runtime/staprun'
>   CC     staprun-staprun.o
>   CC     staprun-staprun_funcs.o
>   CC     staprun-ctl.o
>   CC     staprun-common.o
>   CC     staprun-modverify.o
> modverify.c:26:18: fatal error: nspr.h: no such file or directory
> compilation terminated.
> make[2]: *** [staprun-modverify.o] error 1
> make[2]: Leaving directory `/data/stapbuild/runtime/staprun'
> make[1]: *** [install-recursive] error 1
> make[1]: Leaving directory `/data/stapbuild'
> make: *** [install] error 2

There must be a bug in our config setup.
I see you don't have nspr installed in your config.log:

> configure:9481: WARNING: will not build systemtap compile server, cannot find nss/nspr headers
> configure:9499: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr headers

So I would assume that modverify.c wouldn't even be build because we
have the following in runtime/staprun/Makefile.am:

if HAVE_NSS
staprun_SOURCES += modverify.c ../../nsscommon.cxx ../../util.cxx
staprun_CFLAGS += $(nss_CFLAGS)
staprun_CXXFLAGS += $(nss_CFLAGS)
staprun_LDADD += $(nss_LIBS)
endif

O..., I see we have two NSS checks, one in the top-level configure.ac
and one in the runtime/staprun/configure.ac, and they are slightly
different. hmmmm.

Could you also send your runtime/staprun/config.log file?

Thanks,

Mark

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

* RE: problem during "make install" at Ubuntu64.
  2011-09-09  9:47                   ` Mark Wielaard
@ 2011-09-09 10:38                     ` Turgis, Frederic
  2011-09-15  0:19                     ` 최재혁B
  1 sibling, 0 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-09 10:38 UTC (permalink / raw)
  To: Mark Wielaard, 최재혁B; +Cc: 'Josh Stone', systemtap

>So I would assume that modverify.c wouldn't even be build
>because we have the following in runtime/staprun/Makefile.am:

On a successful build (I suggest to look at ubunt 32bit log) on my side, I don't compile modverify. But I don't have any nss/nspr stuff:
My config.log
configure:9268: checking for /usr/include/nss3
configure:9281: result: no
configure:9287: checking for /usr/include/nss
configure:9300: result: no
configure:9309: checking for /usr/include/nspr4
configure:9322: result: no
configure:9328: checking for /usr/include/nspr
configure:9341: result: no

while you have some. And it eventually does not check include/nss. May be explaining issue.
yours
configure:9268: checking for /usr/include/nss3
configure:9281: result: yes
configure:9309: checking for /usr/include/nspr4
configure:9322: result: no
configure:9328: checking for /usr/include/nspr
configure:9341: result: no

Regards
Fred
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920




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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-08 17:12                           ` Yao,Yanjun
@ 2011-09-09 11:35                             ` Turgis, Frederic
  2011-09-09 15:27                               ` Yao,Yanjun
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-09 11:35 UTC (permalink / raw)
  To: Yao,Yanjun, Mark Wielaard; +Cc: Josh Stone, systemtap

>I know the reason is that my staprun is in x86 format.

Good to know, I think I missed the mail where you confirmed the issue was this one.

>However, I do follow the instructions on:
>http://omappedia.org/wiki/Systemtap#Systemtap%201.5%20code%20up
>date%20for%20OMAP%20ARM%20platforms

This shall come from this recommendation on wiki page (in red): "You need to have codesourcery inside your PATH"

1 - Please check that in the log, you see:
checking for arm-none-linux-gnueabi-gcc... arm-none-linux-gnueabi-gcc
checking whether the C compiler works... Yes

And not:
checking for arm-none-linux-gnueabi-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes

2 - what shall be in the path is not simply arm-xxx but arm-xxx/bin

By the way, I see in the log
configure: WARNING: if you wanted to set the --build type, don't use --host.

Mmmmh some homework for TI to clarify I guess ;-)

Regards
Fred



Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-09 11:35                             ` Turgis, Frederic
@ 2011-09-09 15:27                               ` Yao,Yanjun
  2011-09-09 15:52                                 ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-09 15:27 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Mark Wielaard, Josh Stone, systemtap

Thanks Turgis.

I fixed the problem after I set "export
PATH=$PATH:~/Downloads/arm-2010q1/bin/" before "configure" and "make
install".

However, after I uploading the code to the phone, I met a weird problem:
# ./staprun helloworld.ko
Couldn't create /mnt/relay: Read-only file system

I know it is because my "/mnt" is read only, and I was trying to
change it to rw.

I first ran "mount" and got the following outputs:
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /acct cgroup rw,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 rw 0 0
/dev/block/mtdblock1 /data yaffs2 rw 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/vold/179:0 /mnt/sdcard vfat
rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0
/dev/block/vold/179:0 /mnt/secure/asec vfat
rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,size=0k,mode=000 0 0

It seems that "/mnt" itself is not mounted, but the sub-devices such
as sdcard and secure are. But I noticed that the root is ro, so I ran
"mount -o rw,remount rootfs /".

However, at this time, I got a new error:
# ./staprun helloworld.ko
ERROR: Couldn't mount /mnt/relay: No such device

Do I need to install a device named "relay"?

Any hints why this is happening would be really thankful.

Yours
Sincerely


2011/9/9 Turgis, Frederic <f-turgis@ti.com>:
>>I know the reason is that my staprun is in x86 format.
>
> Good to know, I think I missed the mail where you confirmed the issue was this one.
>
>>However, I do follow the instructions on:
>>http://omappedia.org/wiki/Systemtap#Systemtap%201.5%20code%20up
>>date%20for%20OMAP%20ARM%20platforms
>
> This shall come from this recommendation on wiki page (in red): "You need to have codesourcery inside your PATH"
>
> 1 - Please check that in the log, you see:
> checking for arm-none-linux-gnueabi-gcc... arm-none-linux-gnueabi-gcc
> checking whether the C compiler works... Yes
>
> And not:
> checking for arm-none-linux-gnueabi-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
>
> 2 - what shall be in the path is not simply arm-xxx but arm-xxx/bin
>
> By the way, I see in the log
> configure: WARNING: if you wanted to set the --build type, don't use --host.
>
> Mmmmh some homework for TI to clarify I guess ;-)
>
> Regards
> Fred
>
>
>
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
>
>
>
>

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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-09 15:27                               ` Yao,Yanjun
@ 2011-09-09 15:52                                 ` Turgis, Frederic
  2011-09-14 20:20                                   ` Yao,Yanjun
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-09 15:52 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: Mark Wielaard, Josh Stone, systemtap

Hi,

>However, after I uploading the code to the phone, I met a
>weird problem:
># ./staprun helloworld.ko
>Couldn't create /mnt/relay: Read-only file system

I think you need debugfs to be mounted so that relayfs does not try to go to /mnt/relay

Should be "mount -t debugfs none /sys/kernel/debug"

Then you get:
 /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0

Systemtap create files in /sys/kernel/debug/systemtap

Regards
Fred
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-09 15:52                                 ` Turgis, Frederic
@ 2011-09-14 20:20                                   ` Yao,Yanjun
  2011-09-14 20:33                                     ` Mark Wielaard
  2011-09-14 20:38                                     ` David Smith
  0 siblings, 2 replies; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-14 20:20 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: Mark Wielaard, Josh Stone, systemtap

Thanks Turgis,

I got the problem fixed as what you said.

One last question, in my implementation, we want to know what system
calls each program made. However, in SystemTap tutorial or examples,
people already know what to probe, then they go to probe that file.

What's in my mind is like:
probe syscall.* {
   //print out the * part of the target "syscall.*"
}

May I ask how can I do that?

Thank you very much

Yours
Sincerely

2011/9/9 Turgis, Frederic <f-turgis@ti.com>:
> Hi,
>
>>However, after I uploading the code to the phone, I met a
>>weird problem:
>># ./staprun helloworld.ko
>>Couldn't create /mnt/relay: Read-only file system
>
> I think you need debugfs to be mounted so that relayfs does not try to go to /mnt/relay
>
> Should be "mount -t debugfs none /sys/kernel/debug"
>
> Then you get:
>  /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
>
> Systemtap create files in /sys/kernel/debug/systemtap
>
> Regards
> Fred
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
>
>
>
>

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-14 20:20                                   ` Yao,Yanjun
@ 2011-09-14 20:33                                     ` Mark Wielaard
  2011-09-14 20:38                                     ` David Smith
  1 sibling, 0 replies; 51+ messages in thread
From: Mark Wielaard @ 2011-09-14 20:33 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: Turgis, Frederic, Josh Stone, systemtap

On Wed, Sep 14, 2011 at 04:20:05PM -0400, Yao,Yanjun wrote:
> One last question, in my implementation, we want to know what system
> calls each program made. However, in SystemTap tutorial or examples,
> people already know what to probe, then they go to probe that file.
> 
> What's in my mind is like:
> probe syscall.* {
>    //print out the * part of the target "syscall.*"
> }
> 
> May I ask how can I do that?

See the top of tapset/syscall.stp:

/* Each syscall returns the calls parameters. In addition, the following
* variables are set:
*
* name - generally the syscall name minus the "sys_".
*
* argstr - a string containing the decoded args in an easy-to-read format.
*          It doesn't need to contain everything, but should have all the
*          important args. Set in entry probes only. Values enclosed in
*          square brackets are user-space pointers. Values in curly
*          braces are decoded structs.
*
* retstr - a string containing the return value in an easy-to-read format.
*          Set in return probes only.
*/

So, what you probably want is something like:

stap -e 'probe syscall.* { printf("%s (%d): %s\n", execname(), pid(), name) }'

Which will print out the executable name, its process id and the syscall
name for each syscall probe hit.

Cheers,

Mark

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-14 20:20                                   ` Yao,Yanjun
  2011-09-14 20:33                                     ` Mark Wielaard
@ 2011-09-14 20:38                                     ` David Smith
  2011-09-14 20:40                                       ` Yao,Yanjun
  1 sibling, 1 reply; 51+ messages in thread
From: David Smith @ 2011-09-14 20:38 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: Turgis, Frederic, Mark Wielaard, Josh Stone, systemtap

On 09/14/2011 03:20 PM, Yao,Yanjun wrote:

> Thanks Turgis,
> 
> I got the problem fixed as what you said.
> 
> One last question, in my implementation, we want to know what system
> calls each program made. However, in SystemTap tutorial or examples,
> people already know what to probe, then they go to probe that file.
> 
> What's in my mind is like:
> probe syscall.* {
>    //print out the * part of the target "syscall.*"
> }
> 
> May I ask how can I do that?


Like this:

probe syscall.* { printf("%s: %s (%s) = ", execname(), name, argstr) }

If you want to get fancier and see the return values also, do this (this
is from testsuite/buildok/syscall.stp):

probe syscall.*, syscall.*.return {

    if (retstr != "")
	printf("%s\n", retstr)
    else
        printf("%s: %s (%s) = ", execname(), name, argstr)
}


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

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-14 20:38                                     ` David Smith
@ 2011-09-14 20:40                                       ` Yao,Yanjun
  2011-09-15  7:15                                         ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-14 20:40 UTC (permalink / raw)
  To: David Smith; +Cc: Turgis, Frederic, Mark Wielaard, Josh Stone, systemtap

Thanks a lot.

This just fits what I want.

Yours
Sincerely

2011/9/14 David Smith <dsmith@redhat.com>:
> On 09/14/2011 03:20 PM, Yao,Yanjun wrote:
>
>> Thanks Turgis,
>>
>> I got the problem fixed as what you said.
>>
>> One last question, in my implementation, we want to know what system
>> calls each program made. However, in SystemTap tutorial or examples,
>> people already know what to probe, then they go to probe that file.
>>
>> What's in my mind is like:
>> probe syscall.* {
>>    //print out the * part of the target "syscall.*"
>> }
>>
>> May I ask how can I do that?
>
>
> Like this:
>
> probe syscall.* { printf("%s: %s (%s) = ", execname(), name, argstr) }
>
> If you want to get fancier and see the return values also, do this (this
> is from testsuite/buildok/syscall.stp):
>
> probe syscall.*, syscall.*.return {
>
>    if (retstr != "")
>        printf("%s\n", retstr)
>    else
>        printf("%s: %s (%s) = ", execname(), name, argstr)
> }
>
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)
>

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

* RE: problem during "make install" at Ubuntu64.
  2011-09-09  9:47                   ` Mark Wielaard
  2011-09-09 10:38                     ` Turgis, Frederic
@ 2011-09-15  0:19                     ` 최재혁B
  2011-09-15  6:05                       ` 'Mark Wielaard'
  1 sibling, 1 reply; 51+ messages in thread
From: 최재혁B @ 2011-09-15  0:19 UTC (permalink / raw)
  To: 'Mark Wielaard'
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

[-- Attachment #1: Type: text/plain, Size: 1899 bytes --]

Hi Mark.


I attached the "runtime/staprun/config.log"

Please review my problem.

Thanks
Jaehyek Choi

-----Original Message-----
From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Mark Wielaard
Sent: Friday, September 09, 2011 6:47 PM
To: 최재혁B
Cc: 'Turgis, Frederic'; 'Josh Stone'; systemtap@sourceware.org
Subject: Re: problem during "make install" at Ubuntu64.

On Fri, 2011-09-09 at 10:40 +0900, 최재혁B wrote:
> make[2]: Entering directory `/data/stapbuild/runtime/staprun'
>   CC     staprun-staprun.o
>   CC     staprun-staprun_funcs.o
>   CC     staprun-ctl.o
>   CC     staprun-common.o
>   CC     staprun-modverify.o
> modverify.c:26:18: fatal error: nspr.h: no such file or directory
> compilation terminated.
> make[2]: *** [staprun-modverify.o] error 1
> make[2]: Leaving directory `/data/stapbuild/runtime/staprun'
> make[1]: *** [install-recursive] error 1
> make[1]: Leaving directory `/data/stapbuild'
> make: *** [install] error 2

There must be a bug in our config setup.
I see you don't have nspr installed in your config.log:

> configure:9481: WARNING: will not build systemtap compile server, cannot find nss/nspr headers
> configure:9499: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr headers

So I would assume that modverify.c wouldn't even be build because we
have the following in runtime/staprun/Makefile.am:

if HAVE_NSS
staprun_SOURCES += modverify.c ../../nsscommon.cxx ../../util.cxx
staprun_CFLAGS += $(nss_CFLAGS)
staprun_CXXFLAGS += $(nss_CFLAGS)
staprun_LDADD += $(nss_LIBS)
endif

O..., I see we have two NSS checks, one in the top-level configure.ac
and one in the runtime/staprun/configure.ac, and they are slightly
different. hmmmm.

Could you also send your runtime/staprun/config.log file?

Thanks,

Mark

[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 24507 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by systemtap configure 1.6, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  $ ./configure --disable-option-checking --prefix=/data/staphome --exec-prefix=/data/staphome --with-elfutils=/data/elfutils-0.152 --cache-file=/dev/null --srcdir=.

## --------- ##
## Platform. ##
## --------- ##

hostname = jaehyek-A505-64
uname -m = x86_64
uname -r = 2.6.38-10-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: .
PATH: /home/jaehyek/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /home/jaehyek/myexe
PATH: /home/jaehyek/bin
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/platform-tools
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/tools
PATH: /opt/CodeSourcery/Sourcery_G++_Lite/bin
PATH: .
PATH: /usr/lib/jvm/java-6-sun/bin
PATH: /usr/lib/jvm/java-6-sun/jre/bin
PATH: /home/jaehyek/eclipse/android-ndk-r6


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2177: checking for a BSD-compatible install
configure:2245: result: /usr/bin/install -c
configure:2256: checking whether build environment is sane
configure:2306: result: yes
configure:2447: checking for a thread-safe mkdir -p
configure:2486: result: /bin/mkdir -p
configure:2499: checking for gawk
configure:2515: found /usr/bin/gawk
configure:2526: result: gawk
configure:2537: checking whether make sets $(MAKE)
configure:2559: result: yes
configure:2640: checking whether to enable maintainer-specific portions of Makefiles
configure:2649: result: no
configure:2724: checking for gcc
configure:2740: found /usr/bin/gcc
configure:2751: result: gcc
configure:2980: checking for C compiler version
configure:2989: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3000: $? = 0
configure:2989: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:3000: $? = 0
configure:2989: gcc -V >&5
gcc: '-V' option must have argument
configure:3000: $? = 1
configure:2989: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3000: $? = 1
configure:3020: checking whether the C compiler works
configure:3042: gcc    conftest.c  >&5
configure:3046: $? = 0
configure:3094: result: yes
configure:3097: checking for C compiler default output file name
configure:3099: result: a.out
configure:3105: checking for suffix of executables
configure:3112: gcc -o conftest    conftest.c  >&5
configure:3116: $? = 0
configure:3138: result: 
configure:3160: checking whether we are cross compiling
configure:3168: gcc -o conftest    conftest.c  >&5
configure:3172: $? = 0
configure:3179: ./conftest
configure:3183: $? = 0
configure:3198: result: no
configure:3203: checking for suffix of object files
configure:3225: gcc -c   conftest.c >&5
configure:3229: $? = 0
configure:3250: result: o
configure:3254: checking whether we are using the GNU C compiler
configure:3273: gcc -c   conftest.c >&5
configure:3273: $? = 0
configure:3282: result: yes
configure:3291: checking whether gcc accepts -g
configure:3311: gcc -c -g  conftest.c >&5
configure:3311: $? = 0
configure:3352: result: yes
configure:3369: checking for gcc option to accept ISO C89
configure:3433: gcc  -c -g -O2  conftest.c >&5
configure:3433: $? = 0
configure:3446: result: none needed
configure:3477: checking for style of include used by make
configure:3505: result: GNU
configure:3530: checking dependency style of gcc
configure:3640: result: gcc3
configure:3713: checking for g++
configure:3729: found /usr/bin/g++
configure:3740: result: g++
configure:3767: checking for C++ compiler version
configure:3776: g++ --version >&5
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3787: $? = 0
configure:3776: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:3787: $? = 0
configure:3776: g++ -V >&5
g++: '-V' option must have argument
configure:3787: $? = 1
configure:3776: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:3787: $? = 1
configure:3791: checking whether we are using the GNU C++ compiler
configure:3810: g++ -c   conftest.cpp >&5
configure:3810: $? = 0
configure:3819: result: yes
configure:3828: checking whether g++ accepts -g
configure:3848: g++ -c -g  conftest.cpp >&5
configure:3848: $? = 0
configure:3889: result: yes
configure:3914: checking dependency style of g++
configure:4024: result: gcc3
configure:4087: checking for gcc
configure:4114: result: gcc
configure:4343: checking for C compiler version
configure:4352: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4363: $? = 0
configure:4352: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:4363: $? = 0
configure:4352: gcc -V >&5
gcc: '-V' option must have argument
configure:4363: $? = 1
configure:4352: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4363: $? = 1
configure:4367: checking whether we are using the GNU C compiler
configure:4395: result: yes
configure:4404: checking whether gcc accepts -g
configure:4465: result: yes
configure:4482: checking for gcc option to accept ISO C89
configure:4559: result: none needed
configure:4581: checking dependency style of gcc
configure:4691: result: gcc3
configure:4710: checking whether gcc and cc understand -c and -o together
configure:4741: gcc -c conftest.c -o conftest2.o >&5
configure:4745: $? = 0
configure:4751: gcc -c conftest.c -o conftest2.o >&5
configure:4755: $? = 0
configure:4766: cc -c conftest.c >&5
configure:4770: $? = 0
configure:4778: cc -c conftest.c -o conftest2.o >&5
configure:4782: $? = 0
configure:4788: cc -c conftest.c -o conftest2.o >&5
configure:4792: $? = 0
configure:4810: result: yes
configure:4844: checking for special C compiler options needed for large files
configure:4889: result: no
configure:4895: checking for _FILE_OFFSET_BITS value needed for large files
configure:4920: gcc -c -g -O2  conftest.c >&5
configure:4920: $? = 0
configure:4952: result: no
configure:5150: checking for pkg-config
configure:5168: found /usr/bin/pkg-config
configure:5180: result: /usr/bin/pkg-config
configure:5205: checking pkg-config is at least version 0.9.0
configure:5208: result: yes
configure:5218: checking for nss
configure:5225: $PKG_CONFIG --exists --print-errors "nss >= 3"
configure:5228: $? = 0
configure:5241: $PKG_CONFIG --exists --print-errors "nss >= 3"
configure:5244: $? = 0
configure:5281: result: yes
configure:5320: checking how to run the C preprocessor
configure:5351: gcc -E  conftest.c
configure:5351: $? = 0
configure:5365: gcc -E  conftest.c
conftest.c:14:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5365: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5390: result: gcc -E
configure:5410: gcc -E  conftest.c
configure:5410: $? = 0
configure:5424: gcc -E  conftest.c
conftest.c:14:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5424: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5453: checking for grep that handles long lines and -e
configure:5511: result: /bin/grep
configure:5516: checking for egrep
configure:5578: result: /bin/grep -E
configure:5583: checking for ANSI C header files
configure:5603: gcc -c -g -O2  conftest.c >&5
configure:5603: $? = 0
configure:5676: gcc -o conftest -g -O2   conftest.c  >&5
configure:5676: $? = 0
configure:5676: ./conftest
configure:5676: $? = 0
configure:5687: result: yes
configure:5700: checking for sys/types.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for sys/stat.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for stdlib.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for string.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for memory.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for strings.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for inttypes.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for stdint.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5700: checking for unistd.h
configure:5700: gcc -c -g -O2  conftest.c >&5
configure:5700: $? = 0
configure:5700: result: yes
configure:5714: checking libelf.h usability
configure:5714: gcc -c -g -O2  conftest.c >&5
conftest.c:57:20: fatal error: libelf.h: No such file or directory
compilation terminated.
configure:5714: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libelf.h>
configure:5714: result: no
configure:5714: checking libelf.h presence
configure:5714: gcc -E  conftest.c
conftest.c:24:20: fatal error: libelf.h: No such file or directory
compilation terminated.
configure:5714: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <libelf.h>
configure:5714: result: no
configure:5714: checking for libelf.h
configure:5714: result: no
configure:5726: checking for elf_getshdrstrndx in -lelf
configure:5751: gcc -o conftest -g -O2   conftest.c -lelf   >&5
/usr/bin/ld: skipping incompatible /usr/lib64/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib64/libelf.a when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/local/lib/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/local/lib/libelf.a when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/libelf.a when searching for -lelf
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
configure:5751: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "systemtap 1.6"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.6"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char elf_getshdrstrndx ();
| int
| main ()
| {
| return elf_getshdrstrndx ();
|   ;
|   return 0;
| }
configure:5760: result: no
configure:5773: staprun will link  -lelf
configure:5917: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by systemtap config.status 1.6, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on jaehyek-A505-64

config.status:877: creating Makefile
config.status:877: creating run-staprun
config.status:877: creating config.h
config.status:1105: executing depfiles commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_nss_CFLAGS_set=
ac_cv_env_nss_CFLAGS_value=
ac_cv_env_nss_LIBS_set=
ac_cv_env_nss_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_libelf_h=no
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_elf_elf_getshdrstrndx=no
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_sys_file_offset_bits=no
ac_cv_sys_largefile_CC=no
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_prog_cc_stdc=
pkg_cv_nss_CFLAGS=
pkg_cv_nss_LIBS=

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /data/stapbuild/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /data/stapbuild/missing --run tar'
AM_BACKSLASH='\'
AM_DEFAULT_VERBOSITY='0'
AUTOCONF='${SHELL} /data/stapbuild/missing --run autoconf'
AUTOHEADER='${SHELL} /data/stapbuild/missing --run autoheader'
AUTOMAKE='${SHELL} /data/stapbuild/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GREP='/bin/grep'
HAVE_NSS_FALSE='#'
HAVE_NSS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LOCALEDIR='${datarootdir}/locale'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /data/stapbuild/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='systemtap'
PACKAGE_BUGREPORT='systemtap@sourceware.org'
PACKAGE_NAME='systemtap'
PACKAGE_STRING='systemtap 1.6'
PACKAGE_TARNAME='systemtap'
PACKAGE_URL=''
PACKAGE_VERSION='1.6'
PATH_SEPARATOR=':'
PIECFLAGS=''
PIECXXFLAGS=''
PIELDFLAGS=''
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.6'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/data/staphome'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /data/stapbuild/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
nss_CFLAGS=''
nss_LIBS=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/staphome'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
staprun_LIBS=' -lelf'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "systemtap"
#define PACKAGE_TARNAME "systemtap"
#define PACKAGE_VERSION "1.6"
#define PACKAGE_STRING "systemtap 1.6"
#define PACKAGE_BUGREPORT "systemtap@sourceware.org"
#define PACKAGE_URL ""
#define PACKAGE "systemtap"
#define VERSION "1.6"
#define ENABLE_SDT_PROBES 1
#define HAVE_NSS 1
#define ENABLE_NLS 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1

configure: exit 0

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

* Re: problem during "make install" at Ubuntu64.
  2011-09-15  0:19                     ` 최재혁B
@ 2011-09-15  6:05                       ` 'Mark Wielaard'
  2011-09-16  8:08                         ` 최재혁B
  2011-09-16  8:20                         ` How can I trace when the allocated memory is free after kmalloc ? 최재혁B
  0 siblings, 2 replies; 51+ messages in thread
From: 'Mark Wielaard' @ 2011-09-15  6:05 UTC (permalink / raw)
  To: 최재혁B
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

On Thu, Sep 15, 2011 at 09:19:18AM +0900, 최재혁B wrote:
> I attached the "runtime/staprun/config.log"
> 
> Please review my problem.

This problem should be fixed with latest systemtap in git:

commit 2cf32f06fb5d880ce4f5a9abbd4f9d3874a0b852
Author: Turgis, Frederic <f-turgis@ti.com>
Date:   Tue Sep 6 19:38:08 2011 +0200

    runtime/staprun/configure.ac: AC_CHECK_LIB before adding -lelf.

Cheers,

Mark

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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-14 20:40                                       ` Yao,Yanjun
@ 2011-09-15  7:15                                         ` Turgis, Frederic
  2011-09-20 19:50                                           ` Yao,Yanjun
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-15  7:15 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: systemtap

Hi,

I would also suggest for any topic to have a look at http://sourceware.org/systemtap -> documentation (top right) -> all examples (by keyword).
For example, in SYSCALL keyword, you will find lots of examples showing how to dump immediately syscalls or accumulate in arrays and dump at the end. This page + tapset are a big source inspiration (thanks to all contributors)
Depending on the needs, it can be interesting to accumulate internally rather than tracing everything (but you may then lose some info)

Example from http://sources.redhat.com/ml/systemtap/2011-q3/msg00085.html:

global starttime, timebycall
probe begin { printf("Collecting data - type Ctrl-C to print output and exit... %d\n", get_32k()) }

probe syscall.* { starttime[name, tid()] = <function to get time> }

probe syscall.*.return {
    # Skip if we have not seen this before
    if (!([name, tid()] in starttime)) next
    delta = <function to get time> - starttime[name, tid()]
    timebycall[name, tid(), execname()] <<< delta
    delete starttime[name, tid()]
}

function print_header() {
        printf("%22s %16s:%-6s %10s %12s %12s %12s %12s\n",
               "System Call", "execname", "pid", "Count", "Total 32K",
               "Avg 32K", "Min 32K", "Max 32K")
}

probe end {
  printf("END TIME %d\n", <function to get time>)

  printf("\nTimes for XXX:\n\n")
  print_header()
  foreach ([call, pidt+, exe] in timebycall)
    printf("%22s %16s:%-6d %10d %12d %12d %12d %12d\n", call, exe, pidt,
      @count(timebycall[call, pidt, exe]),
      @sum(timebycall[call, pidt, exe]),
      @avg(timebycall[call, pidt, exe]),
      @min(timebycall[call, pidt, exe]),
      @max(timebycall[call, pidt, exe]))


  delete timebycall
}

Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

>From: Yao,Yanjun [mailto:jiaoyang28@gmail.com]
>Sent: Wednesday, September 14, 2011 10:41 PM
>To: David Smith
>Cc: Turgis, Frederic; Mark Wielaard; Josh Stone;
>systemtap@sourceware.org
>Subject: Re: Met Problem on Enable SystemTap on Android
>
>Thanks a lot.
>
>This just fits what I want.
>
>Yours
>Sincerely
>
>2011/9/14 David Smith <dsmith@redhat.com>:
>> On 09/14/2011 03:20 PM, Yao,Yanjun wrote:
>>
>>> Thanks Turgis,
>>>
>>> I got the problem fixed as what you said.
>>>
>>> One last question, in my implementation, we want to know
>what system
>>> calls each program made. However, in SystemTap tutorial or
>examples,
>>> people already know what to probe, then they go to probe that file.
>>>
>>> What's in my mind is like:
>>> probe syscall.* {
>>>    //print out the * part of the target "syscall.*"
>>> }
>>>
>>> May I ask how can I do that?
>>
>>
>> Like this:
>>
>> probe syscall.* { printf("%s: %s (%s) = ", execname(), name,
>argstr) }
>>
>> If you want to get fancier and see the return values also, do this
>> (this is from testsuite/buildok/syscall.stp):
>>
>> probe syscall.*, syscall.*.return {
>>
>>    if (retstr != "")
>>        printf("%s\n", retstr)
>>    else
>>        printf("%s: %s (%s) = ", execname(), name, argstr) }
>>
>>
>> --
>> David Smith
>> dsmith@redhat.com
>> Red Hat
>> http://www.redhat.com
>> 256.217.0141 (direct)
>> 256.837.0057 (fax)
>>
>

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

* RE: problem during "make install" at Ubuntu64.
  2011-09-15  6:05                       ` 'Mark Wielaard'
@ 2011-09-16  8:08                         ` 최재혁B
  2011-09-16  9:53                           ` Mark Wielaard
  2011-09-16  8:20                         ` How can I trace when the allocated memory is free after kmalloc ? 최재혁B
  1 sibling, 1 reply; 51+ messages in thread
From: 최재혁B @ 2011-09-16  8:08 UTC (permalink / raw)
  To: 'Mark Wielaard'
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

[-- Attachment #1: Type: text/plain, Size: 2538 bytes --]

Hi Mark.

I have still a problem  during "make install" like below 
Systemtap ver  is "systemtap-20110910.tar.bz2"
I also am attaching the config.log .

--------------------------------------------------------------------------
make[2]: Leaving directory `/data/stapbuild/build-elfutils/backends'
/bin/sh /data/elfutils-0.152/config/install-sh -d /data/stapbuild/lib-elfutils/systemtap
for m in i386 sh x86_64 ia64 alpha arm sparc ppc ppc64 s390; do \
	  /usr/bin/install -c libebl_${m}.so /data/stapbuild/lib-elfutils/systemtap/libebl_${m}-0.152.so; \
	  ln -fs libebl_${m}-0.152.so /data/stapbuild/lib-elfutils/systemtap/libebl_${m}.so; \
	done
make[1]: Leaving directory `/data/stapbuild/build-elfutils/backends'
make  -j1 -C build-elfutils install-pkgincludeHEADERS;
make[1]: Entering directory `/data/stapbuild/build-elfutils'
test -z "/data/stapbuild/include-elfutils/elfutils" || /bin/mkdir -p "/data/stapbuild/include-elfutils/elfutils"
 /usr/bin/install -c -m 644 version.h '/data/stapbuild/include-elfutils/elfutils'
make[1]: Leaving directory `/data/stapbuild/build-elfutils'
touch stamp-elfutils
make  install-recursive
make[1]: Entering directory `/data/stapbuild'
Making install in .
make[2]: Entering directory `/data/stapbuild'
  CXX    stap-main.o
In file included from csclient.h:12:0,
                 from main.cxx:24:
cscommon.h:8:17: fatal error: ssl.h: no such file or directory.
compilation terminated.
make[2]: *** [stap-main.o] error 1
make[2]: Leaving directory `/data/stapbuild'
make[1]: *** [install-recursive] error 1
make[1]: Leaving directory `/data/stapbuild'
make: *** [install] error 2
jaehyek@jaehyek-A505-64:/data/stapbuild$
--------------------------------------------------------------------------










-----Original Message-----
From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of 'Mark Wielaard'
Sent: Thursday, September 15, 2011 3:05 PM
To: 최재혁B
Cc: 'Turgis, Frederic'; 'Josh Stone'; systemtap@sourceware.org
Subject: Re: problem during "make install" at Ubuntu64.

On Thu, Sep 15, 2011 at 09:19:18AM +0900, 최재혁B wrote:
> I attached the "runtime/staprun/config.log"
> 
> Please review my problem.

This problem should be fixed with latest systemtap in git:

commit 2cf32f06fb5d880ce4f5a9abbd4f9d3874a0b852
Author: Turgis, Frederic <f-turgis@ti.com>
Date:   Tue Sep 6 19:38:08 2011 +0200

    runtime/staprun/configure.ac: AC_CHECK_LIB before adding -lelf.

Cheers,

Mark

[-- Attachment #2: config.log --]
[-- Type: application/octet-stream, Size: 54930 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by systemtap configure 1.7, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --exec-prefix=/data/staphome --prefix=/data/staphome --with-elfutils=/data/elfutils-0.152

## --------- ##
## Platform. ##
## --------- ##

hostname = jaehyek-A505-64
uname -m = x86_64
uname -r = 2.6.38-10-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: .
PATH: /home/jaehyek/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /home/jaehyek/myexe
PATH: /home/jaehyek/bin
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/platform-tools
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/tools
PATH: /opt/CodeSourcery/Sourcery_G++_Lite/bin
PATH: .
PATH: /usr/lib/jvm/java-6-sun/bin
PATH: /usr/lib/jvm/java-6-sun/jre/bin
PATH: /home/jaehyek/eclipse/android-ndk-r6


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2533: checking for a BSD-compatible install
configure:2601: result: /usr/bin/install -c
configure:2612: checking whether build environment is sane
configure:2662: result: yes
configure:2803: checking for a thread-safe mkdir -p
configure:2842: result: /bin/mkdir -p
configure:2855: checking for gawk
configure:2871: found /usr/bin/gawk
configure:2882: result: gawk
configure:2893: checking whether make sets $(MAKE)
configure:2915: result: yes
configure:2996: checking whether to enable maintainer-specific portions of Makefiles
configure:3005: result: no
configure:3044: checking for style of include used by make
configure:3072: result: GNU
configure:3142: checking for gcc
configure:3158: found /usr/bin/gcc
configure:3169: result: gcc
configure:3398: checking for C compiler version
configure:3407: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3418: $? = 0
configure:3407: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:3418: $? = 0
configure:3407: gcc -V >&5
gcc: '-V' option must have argument
configure:3418: $? = 1
configure:3407: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3418: $? = 1
configure:3438: checking whether the C compiler works
configure:3460: gcc    conftest.c  >&5
configure:3464: $? = 0
configure:3512: result: yes
configure:3515: checking for C compiler default output file name
configure:3517: result: a.out
configure:3523: checking for suffix of executables
configure:3530: gcc -o conftest    conftest.c  >&5
configure:3534: $? = 0
configure:3556: result: 
configure:3578: checking whether we are cross compiling
configure:3586: gcc -o conftest    conftest.c  >&5
configure:3590: $? = 0
configure:3597: ./conftest
configure:3601: $? = 0
configure:3616: result: no
configure:3621: checking for suffix of object files
configure:3643: gcc -c   conftest.c >&5
configure:3647: $? = 0
configure:3668: result: o
configure:3672: checking whether we are using the GNU C compiler
configure:3691: gcc -c   conftest.c >&5
configure:3691: $? = 0
configure:3700: result: yes
configure:3709: checking whether gcc accepts -g
configure:3729: gcc -c -g  conftest.c >&5
configure:3729: $? = 0
configure:3770: result: yes
configure:3787: checking for gcc option to accept ISO C89
configure:3851: gcc  -c -g -O2  conftest.c >&5
configure:3851: $? = 0
configure:3864: result: none needed
configure:3886: checking dependency style of gcc
configure:3996: result: gcc3
configure:4017: checking how to run the C preprocessor
configure:4048: gcc -E  conftest.c
configure:4048: $? = 0
configure:4062: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4062: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4087: result: gcc -E
configure:4107: gcc -E  conftest.c
configure:4107: $? = 0
configure:4121: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:4121: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4150: checking for grep that handles long lines and -e
configure:4208: result: /bin/grep
configure:4213: checking for egrep
configure:4275: result: /bin/grep -E
configure:4280: checking for ANSI C header files
configure:4300: gcc -c -g -O2  conftest.c >&5
configure:4300: $? = 0
configure:4373: gcc -o conftest -g -O2   conftest.c  >&5
configure:4373: $? = 0
configure:4373: ./conftest
configure:4373: $? = 0
configure:4384: result: yes
configure:4397: checking for sys/types.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for sys/stat.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for stdlib.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for string.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for memory.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for strings.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for inttypes.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for stdint.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4397: checking for unistd.h
configure:4397: gcc -c -g -O2  conftest.c >&5
configure:4397: $? = 0
configure:4397: result: yes
configure:4410: checking minix/config.h usability
configure:4410: gcc -c -g -O2  conftest.c >&5
conftest.c:54:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:4410: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:4410: result: no
configure:4410: checking minix/config.h presence
configure:4410: gcc -E  conftest.c
conftest.c:21:26: fatal error: minix/config.h: No such file or directory
compilation terminated.
configure:4410: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <minix/config.h>
configure:4410: result: no
configure:4410: checking for minix/config.h
configure:4410: result: no
configure:4431: checking whether it is safe to define __EXTENSIONS__
configure:4449: gcc -c -g -O2  conftest.c >&5
configure:4449: $? = 0
configure:4456: result: yes
configure:4477: checking whether ln -s works
configure:4481: result: yes
configure:4536: checking for gcc
configure:4563: result: gcc
configure:4792: checking for C compiler version
configure:4801: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4812: $? = 0
configure:4801: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:4812: $? = 0
configure:4801: gcc -V >&5
gcc: '-V' option must have argument
configure:4812: $? = 1
configure:4801: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4812: $? = 1
configure:4816: checking whether we are using the GNU C compiler
configure:4844: result: yes
configure:4853: checking whether gcc accepts -g
configure:4914: result: yes
configure:4931: checking for gcc option to accept ISO C89
configure:5008: result: none needed
configure:5030: checking dependency style of gcc
configure:5140: result: gcc3
configure:5213: checking for g++
configure:5229: found /usr/bin/g++
configure:5240: result: g++
configure:5267: checking for C++ compiler version
configure:5276: g++ --version >&5
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5287: $? = 0
configure:5276: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:5287: $? = 0
configure:5276: g++ -V >&5
g++: '-V' option must have argument
configure:5287: $? = 1
configure:5276: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:5287: $? = 1
configure:5291: checking whether we are using the GNU C++ compiler
configure:5310: g++ -c   conftest.cpp >&5
configure:5310: $? = 0
configure:5319: result: yes
configure:5328: checking whether g++ accepts -g
configure:5348: g++ -c -g  conftest.cpp >&5
configure:5348: $? = 0
configure:5389: result: yes
configure:5414: checking dependency style of g++
configure:5524: result: gcc3
configure:5544: checking how to run the C preprocessor
configure:5614: result: gcc -E
configure:5634: gcc -E  conftest.c
configure:5634: $? = 0
configure:5648: gcc -E  conftest.c
conftest.c:26:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5724: checking for gcc
configure:5751: result: gcc
configure:5980: checking for C compiler version
configure:5989: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:6000: $? = 0
configure:5989: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:6000: $? = 0
configure:5989: gcc -V >&5
gcc: '-V' option must have argument
configure:6000: $? = 1
configure:5989: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:6000: $? = 1
configure:6004: checking whether we are using the GNU C compiler
configure:6032: result: yes
configure:6041: checking whether gcc accepts -g
configure:6102: result: yes
configure:6119: checking for gcc option to accept ISO C89
configure:6196: result: none needed
configure:6218: checking dependency style of gcc
configure:6328: result: gcc3
configure:6347: checking whether gcc and cc understand -c and -o together
configure:6378: gcc -c conftest.c -o conftest2.o >&5
configure:6382: $? = 0
configure:6388: gcc -c conftest.c -o conftest2.o >&5
configure:6392: $? = 0
configure:6403: cc -c conftest.c >&5
configure:6407: $? = 0
configure:6415: cc -c conftest.c -o conftest2.o >&5
configure:6419: $? = 0
configure:6425: cc -c conftest.c -o conftest2.o >&5
configure:6429: $? = 0
configure:6447: result: yes
configure:6472: checking for function prototypes
configure:6475: result: yes
configure:6498: checking for string.h
configure:6498: result: yes
configure:6552: checking for ranlib
configure:6568: found /usr/bin/ranlib
configure:6579: result: ranlib
configure:6604: checking whether make sets $(MAKE)
configure:6626: result: yes
configure:6638: checking whether NLS is requested
configure:6647: result: yes
configure:6688: checking for msgfmt
configure: trying /usr/bin/msgfmt...
0 translated messages.
configure:6720: result: /usr/bin/msgfmt
configure:6729: checking for gmsgfmt
configure:6760: result: /usr/bin/msgfmt
configure:6811: checking for xgettext
configure: trying /usr/bin/xgettext...
/usr/bin/xgettext: warning: file `/dev/null' extension `' is unknown; will try C
configure:6843: result: /usr/bin/xgettext
configure:6889: checking for msgmerge
configure: trying /usr/bin/msgmerge...
configure:6920: result: /usr/bin/msgmerge
configure:6957: checking build system type
configure:6971: result: x86_64-unknown-linux-gnu
configure:6991: checking host system type
configure:7004: result: x86_64-unknown-linux-gnu
configure:7048: checking for ld used by GCC
configure:7112: result: /usr/bin/ld
configure:7119: checking if the linker (/usr/bin/ld) is GNU ld
configure:7132: result: yes
configure:7139: checking for shared library run path origin
configure:7152: result: done
configure:7759: checking for GNU gettext in libc
configure:7779: gcc -o conftest -g -O2   conftest.c  >&5
configure:7779: $? = 0
configure:7788: result: yes
configure:8579: checking whether to use NLS
configure:8581: result: yes
configure:8584: checking where the gettext function comes from
configure:8595: result: libc
configure:8655: checking for ppoll
configure:8655: gcc -o conftest -g -O2   conftest.c  >&5
configure:8655: $? = 0
configure:8655: result: yes
configure:8666: checking to see if prologue searching should be the default
configure:8675: result: no
configure:8692: checking to see if sdt probes should be the default
configure:8701: result: yes
configure:8733: gcc -c -g -O2 -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.c >&5
configure:8733: $? = 0
configure:8735: Compiling with gcc -fstack-protector-all et al.
configure:8809: checking for sqlite3_open in -lsqlite3
configure:8834: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lsqlite3   >&5
/usr/bin/ld: cannot find -lsqlite3
collect2: ld returned 1 exit status
configure:8834: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char sqlite3_open ();
| int
| main ()
| {
| return sqlite3_open ();
|   ;
|   return 0;
| }
configure:8843: result: no
configure:8929: checking for latex
configure:8957: result: no
configure:8967: checking for dvips
configure:8995: result: no
configure:9005: checking for ps2pdf
configure:9021: found /usr/bin/ps2pdf
configure:9033: result: yes
configure:9043: checking for latex2html
configure:9071: result: no
configure:9084: WARNING: will not build documentation, cannot find all tools
configure:9113: checking for publican
configure:9141: result: no
configure:9190: checking for xmlto
configure:9218: result: no
configure:9367: checking for pkg-config
configure:9385: found /usr/bin/pkg-config
configure:9397: result: /usr/bin/pkg-config
configure:9422: checking pkg-config is at least version 0.9.0
configure:9425: result: yes
configure:9437: checking for nss
configure:9444: $PKG_CONFIG --exists --print-errors "nss >= 3"
configure:9447: $? = 0
configure:9460: $PKG_CONFIG --exists --print-errors "nss >= 3"
configure:9463: $? = 0
configure:9500: result: yes
configure:9561: checking for avahi
configure:9568: $PKG_CONFIG --exists --print-errors "avahi-client"
configure:9571: $? = 0
configure:9584: $PKG_CONFIG --exists --print-errors "avahi-client"
configure:9587: $? = 0
configure:9624: result: yes
configure:9663: checking how to run the C++ preprocessor
configure:9690: g++ -E  conftest.cpp
configure:9690: $? = 0
configure:9704: g++ -E  conftest.cpp
conftest.cpp:36:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:9704: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:9729: result: g++ -E
configure:9749: g++ -E  conftest.cpp
configure:9749: $? = 0
configure:9763: g++ -E  conftest.cpp
conftest.cpp:36:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:9763: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:9796: checking for gtkmm
configure:9803: $PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0"
Package gtkmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.4' found
configure:9806: $? = 1
configure:9819: $PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0"
Package gtkmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkmm-2.4' found
configure:9822: $? = 1
configure:9835: result: no
No package 'gtkmm-2.4' found
configure:9870: checking for libglade
configure:9877: $PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7"
Package libglademm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglademm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglademm-2.4' found
configure:9880: $? = 1
configure:9893: $PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7"
Package libglademm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglademm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglademm-2.4' found
configure:9896: $? = 1
configure:9909: result: no
No package 'libglademm-2.4' found
configure:9952: checking boost/algorithm/string.hpp usability
configure:9952: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
conftest.cpp:69:38: fatal error: boost/algorithm/string.hpp: No such file or directory
compilation terminated.
configure:9952: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/algorithm/string.hpp>
configure:9952: result: no
configure:9952: checking boost/algorithm/string.hpp presence
configure:9952: g++ -E  conftest.cpp
conftest.cpp:36:38: fatal error: boost/algorithm/string.hpp: No such file or directory
compilation terminated.
configure:9952: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <boost/algorithm/string.hpp>
configure:9952: result: no
configure:9952: checking for boost/algorithm/string.hpp
configure:9952: result: no
configure:9952: checking boost/range.hpp usability
configure:9952: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
conftest.cpp:69:27: fatal error: boost/range.hpp: No such file or directory
compilation terminated.
configure:9952: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/range.hpp>
configure:9952: result: no
configure:9952: checking boost/range.hpp presence
configure:9952: g++ -E  conftest.cpp
conftest.cpp:36:27: fatal error: boost/range.hpp: No such file or directory
compilation terminated.
configure:9952: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| #include <boost/range.hpp>
configure:9952: result: no
configure:9952: checking for boost/range.hpp
configure:9952: result: no
configure:10003: checking for rpmtsInitIterator in -lrpm
configure:10028: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lrpm   >&5
/usr/bin/ld: cannot find -lrpm
collect2: ld returned 1 exit status
configure:10028: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char rpmtsInitIterator ();
| int
| main ()
| {
| return rpmtsInitIterator ();
|   ;
|   return 0;
| }
configure:10037: result: no
configure:10050: checking for rpmFreeCrypto in -lrpmio
configure:10075: gcc -o conftest -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2   conftest.c -lrpmio   >&5
/usr/bin/ld: cannot find -lrpmio
collect2: ld returned 1 exit status
configure:10075: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char rpmFreeCrypto ();
| int
| main ()
| {
| return rpmFreeCrypto ();
|   ;
|   return 0;
| }
configure:10084: result: no
configure:10289: stap will link  -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf
configure:10315: checking tr1/unordered_map usability
configure:10315: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
configure:10315: $? = 0
configure:10315: result: yes
configure:10315: checking tr1/unordered_map presence
configure:10315: g++ -E  conftest.cpp
configure:10315: $? = 0
configure:10315: result: yes
configure:10315: checking for tr1/unordered_map
configure:10315: result: yes
configure:10327: checking tr1/memory usability
configure:10327: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
configure:10327: $? = 0
configure:10327: result: yes
configure:10327: checking tr1/memory presence
configure:10327: g++ -E  conftest.cpp
configure:10327: $? = 0
configure:10327: result: yes
configure:10327: checking for tr1/memory
configure:10327: result: yes
configure:10339: checking boost/shared_ptr.hpp usability
configure:10339: g++ -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2  conftest.cpp >&5
conftest.cpp:72:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
configure:10339: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| #define DATE "2011-09-16"
| #define HAVE_TR1_UNORDERED_MAP 1
| #define HAVE_TR1_MEMORY 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <boost/shared_ptr.hpp>
configure:10339: result: no
configure:10339: checking boost/shared_ptr.hpp presence
configure:10339: g++ -E  conftest.cpp
conftest.cpp:39:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
configure:10339: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| #define HAVE_STRING_H 1
| #define ENABLE_NLS 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define HAVE_PPOLL 1
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define HAVE_AVAHI 1
| #define DATE "2011-09-16"
| #define HAVE_TR1_UNORDERED_MAP 1
| #define HAVE_TR1_MEMORY 1
| /* end confdefs.h.  */
| #include <boost/shared_ptr.hpp>
configure:10339: result: no
configure:10339: checking for boost/shared_ptr.hpp
configure:10339: result: no
configure:10357: checking for assembler .section "?" flags support
configure:10377: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wa,--fatal-warnings  conftest.c >&5
configure:10377: $? = 0
configure:10385: result: yes
configure:10400: running /data/elfutils-0.152/configure
configure:10412: gcc -c -g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -fgnu89-inline  conftest.c >&5
configure:10412: $? = 0
configure:10414: Compiling elfutils with gcc -fgnu89-inline
configure:10685: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by systemtap config.status 1.7, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on jaehyek-A505-64

config.status:995: creating includes/sys/sdt-config.h
config.status:995: creating po/Makefile.in
config.status:995: creating Makefile
config.status:995: creating doc/Makefile
config.status:995: creating doc/beginners/Makefile
config.status:995: creating doc/SystemTap_Tapset_Reference/Makefile
config.status:995: creating grapher/Makefile
config.status:995: creating grapher/stapgraph.1
config.status:995: creating stappaths.7
config.status:995: creating initscript/systemtap
config.status:995: creating initscript/stap-server
config.status:995: creating run-stap
config.status:995: creating dtrace
config.status:995: creating doc/beginners/publican.cfg
config.status:995: creating config.h
config.status:1224: executing depfiles commands
config.status:1224: executing po-directories commands
config.status:1224: executing doc/beginners commands
configure:12219: === configuring in testsuite (/data/stapbuild/testsuite)
configure:12282: running /bin/sh ./configure --disable-option-checking '--prefix=/data/staphome'  '--exec-prefix=/data/staphome' '--with-elfutils=/data/elfutils-0.152' --cache-file=/dev/null --srcdir=.
configure:12219: === configuring in runtime/staprun (/data/stapbuild/runtime/staprun)
configure:12282: running /bin/sh ./configure --disable-option-checking '--prefix=/data/staphome'  '--exec-prefix=/data/staphome' '--with-elfutils=/data/elfutils-0.152' --cache-file=/dev/null --srcdir=.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_avahi_CFLAGS_set=
ac_cv_env_avahi_CFLAGS_value=
ac_cv_env_avahi_LIBS_set=
ac_cv_env_avahi_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_gtkmm_CFLAGS_set=
ac_cv_env_gtkmm_CFLAGS_value=
ac_cv_env_gtkmm_LIBS_set=
ac_cv_env_gtkmm_LIBS_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_libglade_CFLAGS_set=
ac_cv_env_libglade_CFLAGS_value=
ac_cv_env_libglade_LIBS_set=
ac_cv_env_libglade_LIBS_value=
ac_cv_env_nss_CFLAGS_set=
ac_cv_env_nss_CFLAGS_value=
ac_cv_env_nss_LIBS_set=
ac_cv_env_nss_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_ppoll=yes
ac_cv_header_boost_algorithm_string_hpp=no
ac_cv_header_boost_range_hpp=no
ac_cv_header_boost_shared_ptr_hpp=no
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_tr1_memory=yes
ac_cv_header_tr1_unordered_map=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_rpm_rpmtsInitIterator=no
ac_cv_lib_rpmio_rpmFreeCrypto=no
ac_cv_lib_sqlite3_sqlite3_open=no
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_GREP=/bin/grep
ac_cv_path_MSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGMERGE=/usr/bin/msgmerge
ac_cv_path_XGETTEXT=/usr/bin/xgettext
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_have_dvips=no
ac_cv_prog_have_latex2html=no
ac_cv_prog_have_latex=no
ac_cv_prog_have_ps2pdf=yes
ac_cv_prog_have_publican=no
ac_cv_prog_have_xmlto=no
ac_cv_prog_make_make_set=yes
ac_cv_safe_to_define___extensions__=yes
acl_cv_hardcode_direct=no
acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
acl_cv_hardcode_libdir_separator=
acl_cv_hardcode_minus_L=no
acl_cv_libext=a
acl_cv_libname_spec='lib$name'
acl_cv_library_names_spec='$libname$shrext'
acl_cv_path_LD=/usr/bin/ld
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
acl_cv_shlibext=so
acl_cv_wl=-Wl,
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_prog_cc_stdc=
gt_cv_func_gnugettext1_libc=yes
pkg_cv_avahi_CFLAGS='-D_REENTRANT  '
pkg_cv_avahi_LIBS='-L/usr/lib/x86_64-linux-gnu -lavahi-common -lavahi-client  '
pkg_cv_nss_CFLAGS=
pkg_cv_nss_LIBS=
stap_cv_sectionq=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /data/stapbuild/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /data/stapbuild/missing --run tar'
AM_BACKSLASH='\'
AM_DEFAULT_VERBOSITY='0'
ANSI2KNR=''
AUTOCONF='${SHELL} /data/stapbuild/missing --run autoconf'
AUTOHEADER='${SHELL} /data/stapbuild/missing --run autoheader'
AUTOMAKE='${SHELL} /data/stapbuild/missing --run automake-1.11'
AWK='gawk'
BUILD_CRASHMOD_FALSE=''
BUILD_CRASHMOD_TRUE='#'
BUILD_DOCS_FALSE=''
BUILD_DOCS_TRUE='#'
BUILD_ELFUTILS_FALSE='#'
BUILD_ELFUTILS_TRUE=''
BUILD_GRAPHER_FALSE=''
BUILD_GRAPHER_TRUE='#'
BUILD_PDFREFDOCS_FALSE=''
BUILD_PDFREFDOCS_TRUE='#'
BUILD_PUBLICAN_FALSE=''
BUILD_PUBLICAN_TRUE='#'
BUILD_REFDOCS_FALSE=''
BUILD_REFDOCS_TRUE='#'
BUILD_SERVER_FALSE='#'
BUILD_SERVER_TRUE=''
BUILD_TRANSLATOR_FALSE='#'
BUILD_TRANSLATOR_TRUE=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2'
CYGPATH_W='echo'
DATE='2011-09-16'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ENABLE_NLS='yes'
EXEEXT=''
GETTEXT_MACRO_VERSION='0.18'
GMSGFMT='/usr/bin/msgfmt'
GMSGFMT_015='/usr/bin/msgfmt'
GREP='/bin/grep'
HAVE_AVAHI_FALSE='#'
HAVE_AVAHI_TRUE=''
HAVE_NSS_FALSE='#'
HAVE_NSS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
LDFLAGS=''
LIBICONV='-liconv'
LIBINTL=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LOCALEDIR='${datarootdir}/locale'
LTLIBICONV='-liconv'
LTLIBINTL=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /data/stapbuild/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MSGFMT='/usr/bin/msgfmt'
MSGFMT_015='/usr/bin/msgfmt'
MSGMERGE='/usr/bin/msgmerge'
OBJEXT='o'
PACKAGE='systemtap'
PACKAGE_BUGREPORT='systemtap@sourceware.org'
PACKAGE_NAME='systemtap'
PACKAGE_STRING='systemtap 1.7'
PACKAGE_TARNAME='systemtap'
PACKAGE_URL=''
PACKAGE_VERSION='1.7'
PATH_SEPARATOR=':'
PIECFLAGS=''
PIECXXFLAGS=''
PIELDFLAGS=''
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
POSUB='po'
PUBLICAN_BRAND='common'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STAP_PREFIX='/data/staphome'
STRIP=''
U=''
USE_NLS='yes'
VERSION='1.7'
XGETTEXT='/usr/bin/xgettext'
XGETTEXT_015='/usr/bin/xgettext'
XGETTEXT_EXTRA_OPTIONS=''
XMLTO_STRINGPARAM_FALSE=''
XMLTO_STRINGPARAM_TRUE='#'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
avahi_CFLAGS='-D_REENTRANT  '
avahi_LIBS='-L/usr/lib/x86_64-linux-gnu -lavahi-common -lavahi-client  '
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
elfutils_abs_srcdir='/data/elfutils-0.152'
exec_prefix='/data/staphome'
gtkmm_CFLAGS=''
gtkmm_LIBS=''
have_dvips='no'
have_latex2html='no'
have_latex='no'
have_ps2pdf='yes'
have_publican='no'
have_xmlto='no'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /data/stapbuild/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libglade_CFLAGS=''
libglade_LIBS=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
nss_CFLAGS=''
nss_LIBS=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/staphome'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sqlite3_LIBS=''
stap_LIBS=' -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf'
staplog_CPPFLAGS=''
subdirs=' testsuite runtime/staprun'
support_section_question='1'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "systemtap"
#define PACKAGE_TARNAME "systemtap"
#define PACKAGE_VERSION "1.7"
#define PACKAGE_STRING "systemtap 1.7"
#define PACKAGE_BUGREPORT "systemtap@sourceware.org"
#define PACKAGE_URL ""
#define PACKAGE "systemtap"
#define VERSION "1.7"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define PROTOTYPES 1
#define __PROTOTYPES 1
#define HAVE_STRING_H 1
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_PPOLL 1
#define ENABLE_SDT_PROBES 1
#define HAVE_NSS 1
#define HAVE_AVAHI 1
#define DATE "2011-09-16"
#define HAVE_TR1_UNORDERED_MAP 1
#define HAVE_TR1_MEMORY 1
#define STAP_PREFIX "/data/staphome"

configure: exit 0

[-- Attachment #3: runtime.staprun.config.log --]
[-- Type: application/octet-stream, Size: 24495 bytes --]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by systemtap configure 1.7, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --disable-option-checking --prefix=/data/staphome --exec-prefix=/data/staphome --with-elfutils=/data/elfutils-0.152 --cache-file=/dev/null --srcdir=.

## --------- ##
## Platform. ##
## --------- ##

hostname = jaehyek-A505-64
uname -m = x86_64
uname -r = 2.6.38-10-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: .
PATH: /home/jaehyek/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /home/jaehyek/myexe
PATH: /home/jaehyek/bin
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/platform-tools
PATH: /home/jaehyek/eclipse/android-sdk-linux_x86/tools
PATH: /opt/CodeSourcery/Sourcery_G++_Lite/bin
PATH: .
PATH: /usr/lib/jvm/java-6-sun/bin
PATH: /usr/lib/jvm/java-6-sun/jre/bin
PATH: /home/jaehyek/eclipse/android-ndk-r6


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2186: checking for a BSD-compatible install
configure:2254: result: /usr/bin/install -c
configure:2265: checking whether build environment is sane
configure:2315: result: yes
configure:2456: checking for a thread-safe mkdir -p
configure:2495: result: /bin/mkdir -p
configure:2508: checking for gawk
configure:2524: found /usr/bin/gawk
configure:2535: result: gawk
configure:2546: checking whether make sets $(MAKE)
configure:2568: result: yes
configure:2649: checking whether to enable maintainer-specific portions of Makefiles
configure:2658: result: no
configure:2733: checking for gcc
configure:2749: found /usr/bin/gcc
configure:2760: result: gcc
configure:2989: checking for C compiler version
configure:2998: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3009: $? = 0
configure:2998: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:3009: $? = 0
configure:2998: gcc -V >&5
gcc: '-V' option must have argument
configure:3009: $? = 1
configure:2998: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3009: $? = 1
configure:3029: checking whether the C compiler works
configure:3051: gcc    conftest.c  >&5
configure:3055: $? = 0
configure:3103: result: yes
configure:3106: checking for C compiler default output file name
configure:3108: result: a.out
configure:3114: checking for suffix of executables
configure:3121: gcc -o conftest    conftest.c  >&5
configure:3125: $? = 0
configure:3147: result: 
configure:3169: checking whether we are cross compiling
configure:3177: gcc -o conftest    conftest.c  >&5
configure:3181: $? = 0
configure:3188: ./conftest
configure:3192: $? = 0
configure:3207: result: no
configure:3212: checking for suffix of object files
configure:3234: gcc -c   conftest.c >&5
configure:3238: $? = 0
configure:3259: result: o
configure:3263: checking whether we are using the GNU C compiler
configure:3282: gcc -c   conftest.c >&5
configure:3282: $? = 0
configure:3291: result: yes
configure:3300: checking whether gcc accepts -g
configure:3320: gcc -c -g  conftest.c >&5
configure:3320: $? = 0
configure:3361: result: yes
configure:3378: checking for gcc option to accept ISO C89
configure:3442: gcc  -c -g -O2  conftest.c >&5
configure:3442: $? = 0
configure:3455: result: none needed
configure:3486: checking for style of include used by make
configure:3514: result: GNU
configure:3539: checking dependency style of gcc
configure:3649: result: gcc3
configure:3722: checking for g++
configure:3738: found /usr/bin/g++
configure:3749: result: g++
configure:3776: checking for C++ compiler version
configure:3785: g++ --version >&5
g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3796: $? = 0
configure:3785: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:3796: $? = 0
configure:3785: g++ -V >&5
g++: '-V' option must have argument
configure:3796: $? = 1
configure:3785: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:3796: $? = 1
configure:3800: checking whether we are using the GNU C++ compiler
configure:3819: g++ -c   conftest.cpp >&5
configure:3819: $? = 0
configure:3828: result: yes
configure:3837: checking whether g++ accepts -g
configure:3857: g++ -c -g  conftest.cpp >&5
configure:3857: $? = 0
configure:3898: result: yes
configure:3923: checking dependency style of g++
configure:4033: result: gcc3
configure:4096: checking for gcc
configure:4123: result: gcc
configure:4352: checking for C compiler version
configure:4361: gcc --version >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4372: $? = 0
configure:4361: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
configure:4372: $? = 0
configure:4361: gcc -V >&5
gcc: '-V' option must have argument
configure:4372: $? = 1
configure:4361: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4372: $? = 1
configure:4376: checking whether we are using the GNU C compiler
configure:4404: result: yes
configure:4413: checking whether gcc accepts -g
configure:4474: result: yes
configure:4491: checking for gcc option to accept ISO C89
configure:4568: result: none needed
configure:4590: checking dependency style of gcc
configure:4700: result: gcc3
configure:4719: checking whether gcc and cc understand -c and -o together
configure:4750: gcc -c conftest.c -o conftest2.o >&5
configure:4754: $? = 0
configure:4760: gcc -c conftest.c -o conftest2.o >&5
configure:4764: $? = 0
configure:4775: cc -c conftest.c >&5
configure:4779: $? = 0
configure:4787: cc -c conftest.c -o conftest2.o >&5
configure:4791: $? = 0
configure:4797: cc -c conftest.c -o conftest2.o >&5
configure:4801: $? = 0
configure:4819: result: yes
configure:4853: checking for special C compiler options needed for large files
configure:4898: result: no
configure:4904: checking for _FILE_OFFSET_BITS value needed for large files
configure:4929: gcc -c -g -O2  conftest.c >&5
configure:4929: $? = 0
configure:4961: result: no
configure:5159: checking for pkg-config
configure:5177: found /usr/bin/pkg-config
configure:5189: result: /usr/bin/pkg-config
configure:5214: checking pkg-config is at least version 0.9.0
configure:5217: result: yes
configure:5227: checking for nss
configure:5234: $PKG_CONFIG --exists --print-errors "nss >= 3"
configure:5237: $? = 0
configure:5250: $PKG_CONFIG --exists --print-errors "nss >= 3"
configure:5253: $? = 0
configure:5290: result: yes
configure:5329: checking how to run the C preprocessor
configure:5360: gcc -E  conftest.c
configure:5360: $? = 0
configure:5374: gcc -E  conftest.c
conftest.c:14:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5374: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5399: result: gcc -E
configure:5419: gcc -E  conftest.c
configure:5419: $? = 0
configure:5433: gcc -E  conftest.c
conftest.c:14:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5433: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5462: checking for grep that handles long lines and -e
configure:5520: result: /bin/grep
configure:5525: checking for egrep
configure:5587: result: /bin/grep -E
configure:5592: checking for ANSI C header files
configure:5612: gcc -c -g -O2  conftest.c >&5
configure:5612: $? = 0
configure:5685: gcc -o conftest -g -O2   conftest.c  >&5
configure:5685: $? = 0
configure:5685: ./conftest
configure:5685: $? = 0
configure:5696: result: yes
configure:5709: checking for sys/types.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for sys/stat.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for stdlib.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for string.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for memory.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for strings.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for inttypes.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for stdint.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5709: checking for unistd.h
configure:5709: gcc -c -g -O2  conftest.c >&5
configure:5709: $? = 0
configure:5709: result: yes
configure:5723: checking libelf.h usability
configure:5723: gcc -c -g -O2  conftest.c >&5
conftest.c:57:20: fatal error: libelf.h: No such file or directory
compilation terminated.
configure:5723: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <libelf.h>
configure:5723: result: no
configure:5723: checking libelf.h presence
configure:5723: gcc -E  conftest.c
conftest.c:24:20: fatal error: libelf.h: No such file or directory
compilation terminated.
configure:5723: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <libelf.h>
configure:5723: result: no
configure:5723: checking for libelf.h
configure:5723: result: no
configure:5735: checking for elf_getshdrstrndx in -lelf
configure:5760: gcc -o conftest -g -O2   conftest.c -lelf   >&5
/usr/bin/ld: skipping incompatible /usr/lib64/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib64/libelf.a when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/local/lib/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/local/lib/libelf.a when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/libelf.a when searching for -lelf
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
configure:5760: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "systemtap"
| #define PACKAGE_TARNAME "systemtap"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "systemtap 1.7"
| #define PACKAGE_BUGREPORT "systemtap@sourceware.org"
| #define PACKAGE_URL ""
| #define PACKAGE "systemtap"
| #define VERSION "1.7"
| #define ENABLE_SDT_PROBES 1
| #define HAVE_NSS 1
| #define ENABLE_NLS 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char elf_getshdrstrndx ();
| int
| main ()
| {
| return elf_getshdrstrndx ();
|   ;
|   return 0;
| }
configure:5769: result: no
configure:5783: staprun will link 
configure:5938: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by systemtap config.status 1.7, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on jaehyek-A505-64

config.status:886: creating Makefile
config.status:886: creating run-staprun
config.status:886: creating config.h
config.status:1115: executing depfiles commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_nss_CFLAGS_set=
ac_cv_env_nss_CFLAGS_value=
ac_cv_env_nss_LIBS_set=
ac_cv_env_nss_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_libelf_h=no
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_elf_elf_getshdrstrndx=no
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_sys_file_offset_bits=no
ac_cv_sys_largefile_CC=no
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_prog_cc_stdc=
pkg_cv_nss_CFLAGS=
pkg_cv_nss_LIBS=

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /data/stapbuild/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /data/stapbuild/missing --run tar'
AM_BACKSLASH='\'
AM_DEFAULT_VERBOSITY='0'
AUTOCONF='${SHELL} /data/stapbuild/missing --run autoconf'
AUTOHEADER='${SHELL} /data/stapbuild/missing --run autoheader'
AUTOMAKE='${SHELL} /data/stapbuild/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GREP='/bin/grep'
HAVE_NSS_FALSE='#'
HAVE_NSS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LOCALEDIR='${datarootdir}/locale'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /data/stapbuild/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT='o'
PACKAGE='systemtap'
PACKAGE_BUGREPORT='systemtap@sourceware.org'
PACKAGE_NAME='systemtap'
PACKAGE_STRING='systemtap 1.7'
PACKAGE_TARNAME='systemtap'
PACKAGE_URL=''
PACKAGE_VERSION='1.7'
PATH_SEPARATOR=':'
PIECFLAGS=''
PIECXXFLAGS=''
PIELDFLAGS=''
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.7'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/data/staphome'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /data/stapbuild/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
nss_CFLAGS=''
nss_LIBS=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/staphome'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
staprun_LIBS=''
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "systemtap"
#define PACKAGE_TARNAME "systemtap"
#define PACKAGE_VERSION "1.7"
#define PACKAGE_STRING "systemtap 1.7"
#define PACKAGE_BUGREPORT "systemtap@sourceware.org"
#define PACKAGE_URL ""
#define PACKAGE "systemtap"
#define VERSION "1.7"
#define ENABLE_SDT_PROBES 1
#define HAVE_NSS 1
#define ENABLE_NLS 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1

configure: exit 0

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

* How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-15  6:05                       ` 'Mark Wielaard'
  2011-09-16  8:08                         ` 최재혁B
@ 2011-09-16  8:20                         ` 최재혁B
  2011-09-16 10:03                           ` Mark Wielaard
       [not found]                           ` <OF28D2A9AC.052504CE-ON4925790F.00483152-4925790F.00483154@lge.com>
  1 sibling, 2 replies; 51+ messages in thread
From: 최재혁B @ 2011-09-16  8:20 UTC (permalink / raw)
  To: 'Mark Wielaard'
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

Hi Mark.

If  "A thead" get a kernel memory by kmalloc, and "B thead" can free the memory, 
how can I trace  when the allocated memory is returned after kmalloc ?


Best Regards.
Jaehyek Choi

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

* RE: problem during "make install" at Ubuntu64.
  2011-09-16  8:08                         ` 최재혁B
@ 2011-09-16  9:53                           ` Mark Wielaard
  0 siblings, 0 replies; 51+ messages in thread
From: Mark Wielaard @ 2011-09-16  9:53 UTC (permalink / raw)
  To: 최재혁B
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

On Fri, 2011-09-16 at 17:07 +0900, 최재혁B wrote:
> I have still a problem  during "make install" like below 
> Systemtap ver  is "systemtap-20110910.tar.bz2"
> I also am attaching the config.log .
> 
> --------------------------------------------------------------------------
> make[2]: Leaving directory `/data/stapbuild/build-elfutils/backends'
> /bin/sh /data/elfutils-0.152/config/install-sh -d /data/stapbuild/lib-elfutils/systemtap
> for m in i386 sh x86_64 ia64 alpha arm sparc ppc ppc64 s390; do \
> 	  /usr/bin/install -c libebl_${m}.so /data/stapbuild/lib-elfutils/systemtap/libebl_${m}-0.152.so; \
> 	  ln -fs libebl_${m}-0.152.so /data/stapbuild/lib-elfutils/systemtap/libebl_${m}.so; \
> 	done
> make[1]: Leaving directory `/data/stapbuild/build-elfutils/backends'
> make  -j1 -C build-elfutils install-pkgincludeHEADERS;
> make[1]: Entering directory `/data/stapbuild/build-elfutils'
> test -z "/data/stapbuild/include-elfutils/elfutils" || /bin/mkdir -p "/data/stapbuild/include-elfutils/elfutils"
>  /usr/bin/install -c -m 644 version.h '/data/stapbuild/include-elfutils/elfutils'
> make[1]: Leaving directory `/data/stapbuild/build-elfutils'
> touch stamp-elfutils
> make  install-recursive
> make[1]: Entering directory `/data/stapbuild'
> Making install in .
> make[2]: Entering directory `/data/stapbuild'
>   CXX    stap-main.o
> In file included from csclient.h:12:0,
>                  from main.cxx:24:
> cscommon.h:8:17: fatal error: ssl.h: no such file or directory.
> compilation terminated.
> make[2]: *** [stap-main.o] error 1

It is better to run make before make install.
But that is most likely not your problem.
I don't fully understand. Somehow our configure check for NSS succeeded,
but ssl.h is still missing. Maybe we need a better check?

Could you run: make V=1
That should give us the full build command.
Could you also look where on your system ssl.h is installed?
locate ssl.h

Thanks,

Mark

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

* Re: How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-16  8:20                         ` How can I trace when the allocated memory is free after kmalloc ? 최재혁B
@ 2011-09-16 10:03                           ` Mark Wielaard
  2011-09-20  0:39                             ` 최재혁B
       [not found]                           ` <OF28D2A9AC.052504CE-ON4925790F.00483152-4925790F.00483154@lge.com>
  1 sibling, 1 reply; 51+ messages in thread
From: Mark Wielaard @ 2011-09-16 10:03 UTC (permalink / raw)
  To: 최재혁B
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

On Fri, 2011-09-16 at 17:19 +0900, 최재혁B wrote:
> Hi Mark.
> 
> If  "A thead" get a kernel memory by kmalloc, and "B thead" can free the memory, 
> how can I trace  when the allocated memory is returned after kmalloc ?

I suppose you can save the address that kmalloc returned and check for
that address while probing kfree. Maybe something like:

global addrs;

probe vm.kmalloc
{
  addrs[ptr] = get_cycles();
}

probe vm.kfree
{
  if (addrs[ptr] != 0)
    {
      printf("%x released after %d cycles\n",
             ptr, get_cycles() - addrs[ptr]);
    }
  delete(addrs[ptr]);
}

That will probably overflow MAXMAPENTRIES pretty quickly though.

Cheers,

Mark

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

* Re: Re : Re: How can I trace  when the allocated memory is free after kmalloc ?
       [not found]                           ` <OF28D2A9AC.052504CE-ON4925790F.00483152-4925790F.00483154@lge.com>
@ 2011-09-18 19:59                             ` Mark Wielaard
  0 siblings, 0 replies; 51+ messages in thread
From: Mark Wielaard @ 2011-09-18 19:59 UTC (permalink / raw)
  To: 최재혁
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

Hi,

On Sun, Sep 18, 2011 at 10:08:32PM +0900, 최재혁 wrote:
> <html>
> <head>
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
> <title>new doc</title>
> <style>
> [...]

Please don't send HTML emails, they are really hard to read.

> <p>Speaking in detail, I have tried only &nbsp;one proble &quot;probe vm.kmalloc&quot; 
> , and it is ok.</p>
> <p>and I have tried the &quot;proble vm.kfree&quot; , and it make my android 
> phone reset.</p>
> <p>Here is the test code.</p>
> <p>&nbsp;</p>
> <p>probe vm.kmalloc { println(&quot;vm.kmalloc&quot;)}</p>
> <p>probe vm.kfreee &nbsp;&nbsp;{ priinln(&quot;vm.kfree&quot;)}</p>
> <p>&nbsp;</p>
> <p>So, could you recommend some way to resolve the problem?</p>
> <p>( probe kerne.function(&quot;kfree&quot;) &nbsp;also make my phone reset 
> . )</p>
> <p>&nbsp;</p>
> <p>Below is the my environment .</p>
> <p>- target : &nbsp;android phone : &nbsp;kernel ver : 2.6.35.11</p>
> <p>- host : ubuntu 11.04 , 64 bit</p>
> <p>- arch=arm</p>

That must be something ubuntu or arm specific.
The same works fine on my x86_64 fedora 2.6.35 kernel based system.

Cheers,

Mark

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

* RE: How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-16 10:03                           ` Mark Wielaard
@ 2011-09-20  0:39                             ` 최재혁B
  2011-09-20  9:12                               ` Mark Wielaard
  0 siblings, 1 reply; 51+ messages in thread
From: 최재혁B @ 2011-09-20  0:39 UTC (permalink / raw)
  To: 'Mark Wielaard'
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

Hi Mark.

Thanks for your help.
But  vm.kfree is not working. ( make target phone reset )
( vm.kmalloc  is ok  .)

Below is my test code .

-------------------------------------
probe vm.kfree { println(vm.kfree \n")}
-------------------------------------


please recommand what I should try .

My environment is 
- target OS :  Android OS  kernel ver 2.6.35.11
- host : Ubuntu 11.04 64bit.
- systemtap ver :systemtap-20110917.tar.bz2





-----Original Message-----
From: Mark Wielaard [mailto:mjw@redhat.com] 
Sent: Friday, September 16, 2011 7:04 PM
To: 최재혁B
Cc: 'Turgis, Frederic'; 'Josh Stone'; systemtap@sourceware.org
Subject: Re: How can I trace when the allocated memory is free after kmalloc ?

On Fri, 2011-09-16 at 17:19 +0900, 최재혁B wrote:
> Hi Mark.
> 
> If  "A thead" get a kernel memory by kmalloc, and "B thead" can free the memory, 
> how can I trace  when the allocated memory is returned after kmalloc ?

I suppose you can save the address that kmalloc returned and check for
that address while probing kfree. Maybe something like:

global addrs;

probe vm.kmalloc
{
  addrs[ptr] = get_cycles();
}

probe vm.kfree
{
  if (addrs[ptr] != 0)
    {
      printf("%x released after %d cycles\n",
             ptr, get_cycles() - addrs[ptr]);
    }
  delete(addrs[ptr]);
}

That will probably overflow MAXMAPENTRIES pretty quickly though.

Cheers,

Mark

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

* RE: How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-20  0:39                             ` 최재혁B
@ 2011-09-20  9:12                               ` Mark Wielaard
  2011-09-20 16:01                                 ` Josh Stone
  0 siblings, 1 reply; 51+ messages in thread
From: Mark Wielaard @ 2011-09-20  9:12 UTC (permalink / raw)
  To: 최재혁B
  Cc: 'Turgis, Frederic', 'Josh Stone', systemtap

On Tue, 2011-09-20 at 09:38 +0900, 최재혁B wrote:
> But  vm.kfree is not working. ( make target phone reset )
> ( vm.kmalloc  is ok  .)
> 
> Below is my test code .
> 
> -------------------------------------
> probe vm.kfree { println(vm.kfree \n")}
> -------------------------------------
>
> please recommand what I should try .

Try getting a serial console to to read out the kernel messages.
I don't know how that works on your android based system, but here are
some generic linux kernel setups:
http://sourceware.org/systemtap/wiki/DeveloperSetupTips

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

* Re: How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-20  9:12                               ` Mark Wielaard
@ 2011-09-20 16:01                                 ` Josh Stone
  2011-09-22 14:11                                   ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-09-20 16:01 UTC (permalink / raw)
  To: 최재혁B
  Cc: Mark Wielaard, 'Turgis, Frederic', systemtap

On 09/20/2011 02:12 AM, Mark Wielaard wrote:
> On Tue, 2011-09-20 at 09:38 +0900, 최재혁B wrote:
>> But  vm.kfree is not working. ( make target phone reset )
>> ( vm.kmalloc  is ok  .)
>>
>> Below is my test code .
>>
>> -------------------------------------
>> probe vm.kfree { println(vm.kfree \n")}
>> -------------------------------------
>>
>> please recommand what I should try .
> 
> Try getting a serial console to to read out the kernel messages.
> I don't know how that works on your android based system, but here are
> some generic linux kernel setups:
> http://sourceware.org/systemtap/wiki/DeveloperSetupTips

In Android, there's usually a /proc/last_kmsg with the kernel buffer
from before the reboot.

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-15  7:15                                         ` Turgis, Frederic
@ 2011-09-20 19:50                                           ` Yao,Yanjun
  2011-09-21  6:42                                             ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Yao,Yanjun @ 2011-09-20 19:50 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: systemtap

I got the SystemTap runs perfectly on the Android Emulator. Thanks all
person that helped.

However, when I try to make this happen on the Nexus S phone, I just
can not upload the files into the "/data" folder.

The following are what I did:
1. Root the phone by following video on link:
        http://theunlockr.com/2010/12/17/how-to-root-the-samsung-nexus-s/
2. Download the Nexus S kernel code by:
        git clone
http://github.com/CyanogenMod/android_kernel_samsung_c1.git kernel
3. Add debug flags and modify ptrace.h as mentioned in:
        http://omappedia.org/wiki/Systemtap#Kernel%20Code
4. Reboot the phone with new kernel:
        fastboot boot zImage

The following are the problems I met:
1. I can not get the Root right of the phone by just using "./adb
shell". Instead, I need to run "su" inside the shell.
2. The "fastboot boot zImage" does not work out, it makes my phone
stays on the screen with big "Google" for ever. So I guess the
customer kernel is not flashed on the phone.
3. When I try to push any file, it either tells me the file does not
exit, or permission denied. For example:
        sudo ./adb push /data/systemtap-1.5-macharm/bin/staprun /data/staprun
        failed to copy '/data/systemtap-1.5-macharm/bin/staprun' to
'/data/staprun': Permission denied
or
        ./adb push /data/systemtap-1.5-macharm/ /data/systemtap-1.5-macharm/
        push: /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
-> /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
        failed to copy
'/data/systemtap-1.5-macharm/libexec/systemtap/stap-env' to
'/data/systemtap-1.5-macharm/libexec/systemtap/stap-env': No such file
or directory

I first guess that is the problem of the "ro" of file systems, so I
remount them to be:
        rootfs / rootfs rw,relatime 0 0
       tmpfs /dev tmpfs rw,relatime,mode=755 0 0
       devpts /dev/pts devpts rw,relatime,mode=600 0 0
       proc /proc proc rw,relatime 0 0
       sysfs /sys sysfs rw,relatime 0 0
       none /acct cgroup rw,relatime,cpuacct 0 0
       tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
       tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
       none /dev/cpuctl cgroup rw,relatime,cpu 0 0
       /dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
       /dev/block/mtdblock6 /efs yaffs2 rw,nosuid,nodev,relatime 0 0
       /dev/block/platform/s3c-sdhci.0/by-name/system /system ext4
rw,relatime,barrier=1,data=ordered 0 0
       /dev/block/platform/s3c-sdhci.0/by-name/userdata /data ext4
rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
       /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
       /dev/block/vold/179:3 /mnt/sdcard vfat
rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0
       /dev/block/vold/179:3 /mnt/secure/asec vfat
rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0
       tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

However, the problem is still there.

Is this the problem of my method of Root the phone? Why I just can not
push the SystemTap tools into the "/data" folder?

Any hint would be warmly welcomed.

Thank you very much.

Yours
Sincerely

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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-20 19:50                                           ` Yao,Yanjun
@ 2011-09-21  6:42                                             ` Turgis, Frederic
  0 siblings, 0 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-21  6:42 UTC (permalink / raw)
  To: Yao,Yanjun; +Cc: systemtap

Unfortunately this looks Nexus S specific. We have less restriction on our dev platforms so I can't really elaborate much as I have no specific need to root phone.

At least you have remounted partitions rw, which shall have been sufficient to push, as this is the only thing I may need to do. You shall try:
- push a simple file from your home directory (no directory, nothing that can be under root ownership, just simple file)
- try to push to different locations: /, /system, /data... All directories may not be persistent but that is a start
- try to put systemtap on Sdcard and remount it rw. Systemtap shall also work from there.

Then I fear only google/forums can be your friend as this is not a systemtap issue :-(

Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

>From: Yao,Yanjun [mailto:jiaoyang28@gmail.com]
>Sent: Tuesday, September 20, 2011 9:50 PM
>To: Turgis, Frederic
>Cc: systemtap@sourceware.org
>Subject: Re: Met Problem on Enable SystemTap on Android
>
>I got the SystemTap runs perfectly on the Android Emulator.
>Thanks all person that helped.
>
>However, when I try to make this happen on the Nexus S phone,
>I just can not upload the files into the "/data" folder.
>
>The following are what I did:
>1. Root the phone by following video on link:
>
>http://theunlockr.com/2010/12/17/how-to-root-the-samsung-nexus-s/
>2. Download the Nexus S kernel code by:
>        git clone
>http://github.com/CyanogenMod/android_kernel_samsung_c1.git
>kernel 3. Add debug flags and modify ptrace.h as mentioned in:
>        http://omappedia.org/wiki/Systemtap#Kernel%20Code
>4. Reboot the phone with new kernel:
>        fastboot boot zImage
>
>The following are the problems I met:
>1. I can not get the Root right of the phone by just using
>"./adb shell". Instead, I need to run "su" inside the shell.
>2. The "fastboot boot zImage" does not work out, it makes my
>phone stays on the screen with big "Google" for ever. So I
>guess the customer kernel is not flashed on the phone.
>3. When I try to push any file, it either tells me the file
>does not exit, or permission denied. For example:
>        sudo ./adb push
>/data/systemtap-1.5-macharm/bin/staprun /data/staprun
>        failed to copy '/data/systemtap-1.5-macharm/bin/staprun' to
>'/data/staprun': Permission denied
>or
>        ./adb push /data/systemtap-1.5-macharm/
>/data/systemtap-1.5-macharm/
>        push: /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
>-> /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
>        failed to copy
>'/data/systemtap-1.5-macharm/libexec/systemtap/stap-env' to
>'/data/systemtap-1.5-macharm/libexec/systemtap/stap-env': No
>such file or directory
>
>I first guess that is the problem of the "ro" of file systems,
>so I remount them to be:
>        rootfs / rootfs rw,relatime 0 0
>       tmpfs /dev tmpfs rw,relatime,mode=755 0 0
>       devpts /dev/pts devpts rw,relatime,mode=600 0 0
>       proc /proc proc rw,relatime 0 0
>       sysfs /sys sysfs rw,relatime 0 0
>       none /acct cgroup rw,relatime,cpuacct 0 0
>       tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
>       tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
>       none /dev/cpuctl cgroup rw,relatime,cpu 0 0
>       /dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
>       /dev/block/mtdblock6 /efs yaffs2 rw,nosuid,nodev,relatime 0 0
>       /dev/block/platform/s3c-sdhci.0/by-name/system /system
>ext4 rw,relatime,barrier=1,data=ordered 0 0
>       /dev/block/platform/s3c-sdhci.0/by-name/userdata /data
>ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
>       /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
>       /dev/block/vold/179:3 /mnt/sdcard vfat
>rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask
=0702,dmask=0702,allow_utime=>0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,er
>rors=remount-ro
>0 0
>       /dev/block/vold/179:3 /mnt/secure/asec vfat
>rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask
=0702,dmask=0702,allow_utime=>0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,er
>rors=remount-ro
>0 0
>       tmpfs /mnt/sdcard/.android_secure tmpfs
>ro,relatime,size=0k,mode=000 0 0
>
>However, the problem is still there.
>
>Is this the problem of my method of Root the phone? Why I just
>can not push the SystemTap tools into the "/data" folder?
>
>Any hint would be warmly welcomed.
>
>Thank you very much.
>
>Yours
>Sincerely
>

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

* RE: How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-20 16:01                                 ` Josh Stone
@ 2011-09-22 14:11                                   ` Turgis, Frederic
  2011-09-23  0:27                                     ` 최재혁B
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-22 14:11 UTC (permalink / raw)
  To: Josh Stone, 최재혁B; +Cc: Mark Wielaard, systemtap

Hi,

I tested probe vm.kfree on Android + kernel 3.0 with systemtap v1.5 and it works fine (prints pointer correctly and tapset "name" variable correctly). With kernels 2.6.35 and 2.6.38, I used to have globally more instabilities so that would require debugging, as mentioned by Mark.

Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

>From: Josh Stone [mailto:jistone@redhat.com]
>Sent: Tuesday, September 20, 2011 6:01 PM
>To: 최재혁B
>Cc: Mark Wielaard; Turgis, Frederic; systemtap@sourceware.org
>Subject: Re: How can I trace when the allocated memory is free
>after kmalloc ?
>
>On 09/20/2011 02:12 AM, Mark Wielaard wrote:
>> On Tue, 2011-09-20 at 09:38 +0900, 최재혁B wrote:
>>> But  vm.kfree is not working. ( make target phone reset ) (
>>> vm.kmalloc  is ok  .)
>>>
>>> Below is my test code .
>>>
>>> -------------------------------------
>>> probe vm.kfree { println(vm.kfree \n")}
>>> -------------------------------------
>>>
>>> please recommand what I should try .
>>
>> Try getting a serial console to to read out the kernel messages.
>> I don't know how that works on your android based system,
>but here are
>> some generic linux kernel setups:
>> http://sourceware.org/systemtap/wiki/DeveloperSetupTips
>
>In Android, there's usually a /proc/last_kmsg with the kernel
>buffer from before the reboot.
>

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

* RE: How can I trace  when the allocated memory is free after kmalloc ?
  2011-09-22 14:11                                   ` Turgis, Frederic
@ 2011-09-23  0:27                                     ` 최재혁B
  0 siblings, 0 replies; 51+ messages in thread
From: 최재혁B @ 2011-09-23  0:27 UTC (permalink / raw)
  To: 'Turgis, Frederic', 'Josh Stone'
  Cc: 'Mark Wielaard', systemtap

Hi.

Thanks for your recommends .

I have resolved it in other way.
That is a way that makes optimization option lower from -O2 to -O1 .
And then ,  the vm.kfree  is working   not to make my android phone reset .
( on my guesss,  I just tried, and  it was fine. )
I don't know the reason exactly.


( -O0(zero) optimization option makes linking-error at build time .  )

Best  Regards
Jaehyek Choi


-----Original Message-----
From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Turgis, Frederic
Sent: Thursday, September 22, 2011 11:11 PM
To: Josh Stone; 최재혁B
Cc: Mark Wielaard; systemtap@sourceware.org
Subject: RE: How can I trace when the allocated memory is free after kmalloc ?

Hi,

I tested probe vm.kfree on Android + kernel 3.0 with systemtap v1.5 and it works fine (prints pointer correctly and tapset "name" variable correctly). With kernels 2.6.35 and 2.6.38, I used to have globally more instabilities so that would require debugging, as mentioned by Mark.

Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

>From: Josh Stone [mailto:jistone@redhat.com]
>Sent: Tuesday, September 20, 2011 6:01 PM
>To: 최재혁B
>Cc: Mark Wielaard; Turgis, Frederic; systemtap@sourceware.org
>Subject: Re: How can I trace when the allocated memory is free
>after kmalloc ?
>
>On 09/20/2011 02:12 AM, Mark Wielaard wrote:
>> On Tue, 2011-09-20 at 09:38 +0900, 최재혁B wrote:
>>> But  vm.kfree is not working. ( make target phone reset ) (
>>> vm.kmalloc  is ok  .)
>>>
>>> Below is my test code .
>>>
>>> -------------------------------------
>>> probe vm.kfree { println(vm.kfree \n")}
>>> -------------------------------------
>>>
>>> please recommand what I should try .
>>
>> Try getting a serial console to to read out the kernel messages.
>> I don't know how that works on your android based system,
>but here are
>> some generic linux kernel setups:
>> http://sourceware.org/systemtap/wiki/DeveloperSetupTips
>
>In Android, there's usually a /proc/last_kmsg with the kernel
>buffer from before the reboot.
>

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-01  8:45               ` Turgis, Frederic
@ 2011-09-26 20:52                 ` Josh Stone
  2011-09-27 14:25                   ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-09-26 20:52 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: SystemTap

On 09/01/2011 01:44 AM, Turgis, Frederic wrote:
>> BTW, if you happen to have ssh listening on the target, then
>> you may be able to use "--remote $TARGET" to automate the
>> copy and staprun.  I'm considering adding a new remote
>> scheme, perhaps "--remote adb:..." to let you do this over
>> the Android debugging channel too.
> We don't have ssh listening by default so an adb scheme would be welcomed.

In case you missed it, I opened a bug for this with a prototype:
http://sourceware.org/bugzilla/show_bug.cgi?id=13194

As noted, I had issues trying to test it -- but I've played around with
a few other commands, and even a simple "adb shell cat" doesn't work.
It appears that adb doesn't pass along stdin when running a remote
command.  Only for the interactive "adb shell" does it fork and read
stdin to pass to the remote.  Since we need two-way communication for
stap, we might have to kludge a two-part solution, spawn an interactive
"adb shell" followed by writing "exec stapsh" to its stdin.

Now that I write that, it doesn't seem so hard, but I haven't had time
to play with it more.  If you're able to try my prototype and enhance it
to actually work, that would be great. :)

Thanks,
Josh

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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-26 20:52                 ` Josh Stone
@ 2011-09-27 14:25                   ` Turgis, Frederic
  2011-09-27 16:14                     ` Josh Stone
  0 siblings, 1 reply; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-27 14:25 UTC (permalink / raw)
  To: Josh Stone; +Cc: SystemTap

Hi,

Not sure this is same use case but "adb shell cat xxx" or "adb shell xxx" performed on my host is expected to run the right thing on target.
For example, I could do "adb shell /data/systemtapxxx/bin/staprun /data/systemtapxxx/test.ko" and get ouput directly on my host (but I prefer dumping in a tmpfs then pull on host). This is silicon vendor dev platform and not phone.

I still have previous mail in my Inbox to have a look but this is not top of my list :-(


Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

>From: Josh Stone [mailto:jistone@redhat.com]
>Sent: Monday, September 26, 2011 10:52 PM
>To: Turgis, Frederic
>Cc: SystemTap
>Subject: Re: Met Problem on Enable SystemTap on Android
>
>On 09/01/2011 01:44 AM, Turgis, Frederic wrote:
>>> BTW, if you happen to have ssh listening on the target,
>then you may
>>> be able to use "--remote $TARGET" to automate the copy and
>staprun.
>>> I'm considering adding a new remote scheme, perhaps "--remote
>>> adb:..." to let you do this over the Android debugging channel too.
>> We don't have ssh listening by default so an adb scheme
>would be welcomed.
>
>In case you missed it, I opened a bug for this with a prototype:
>http://sourceware.org/bugzilla/show_bug.cgi?id=13194
>
>As noted, I had issues trying to test it -- but I've played
>around with a few other commands, and even a simple "adb shell
>cat" doesn't work.
>It appears that adb doesn't pass along stdin when running a
>remote command.  Only for the interactive "adb shell" does it
>fork and read stdin to pass to the remote.  Since we need
>two-way communication for stap, we might have to kludge a
>two-part solution, spawn an interactive "adb shell" followed
>by writing "exec stapsh" to its stdin.
>
>Now that I write that, it doesn't seem so hard, but I haven't
>had time to play with it more.  If you're able to try my
>prototype and enhance it to actually work, that would be great. :)
>
>Thanks,
>Josh
>

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

* Re: Met Problem on Enable SystemTap on Android
  2011-09-27 14:25                   ` Turgis, Frederic
@ 2011-09-27 16:14                     ` Josh Stone
  2011-09-27 18:02                       ` Turgis, Frederic
  0 siblings, 1 reply; 51+ messages in thread
From: Josh Stone @ 2011-09-27 16:14 UTC (permalink / raw)
  To: Turgis, Frederic; +Cc: SystemTap

On 09/27/2011 07:25 AM, Turgis, Frederic wrote:
> Not sure this is same use case but "adb shell cat xxx" or "adb shell
> xxx" performed on my host is expected to run the right thing on
> target.

The difference is whether that remote command needs stdin from the host.
For "adb shell cat" with no file argument, it should be copying stdin to
stdout, but it receives nothing.

> For example, I could do "adb shell /data/systemtapxxx/bin/staprun
> /data/systemtapxxx/test.ko" and get ouput directly on my host (but I
> prefer dumping in a tmpfs then pull on host). This is silicon vendor
> dev platform and not phone.

So when we do stap --remote, we launch a stapsh that needs to go back
and forth with a few queries -- what's your uname, upload this file,
start staprun.  If stdin isn't working, this gets nowhere.

> I still have previous mail in my Inbox to have a look but this is
> not top of my list :-(

No problem, it's just moving back down my list too. :)

Josh

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

* RE: Met Problem on Enable SystemTap on Android
  2011-09-27 16:14                     ` Josh Stone
@ 2011-09-27 18:02                       ` Turgis, Frederic
  0 siblings, 0 replies; 51+ messages in thread
From: Turgis, Frederic @ 2011-09-27 18:02 UTC (permalink / raw)
  To: Josh Stone; +Cc: SystemTap

OK I was a bit lost because I thought we were just executing 1 program remotely and getting back some trace. And so I was focusing on potential bug/restriction of adb. Which is more functionality missing from adb

Regards
Fred

Frederic Turgis
OMAP Platform Business Unit - OMAP System Engineering - Platform Enablement



>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920

-----Original Message-----

>From: Josh Stone [mailto:jistone@redhat.com]
>Sent: Tuesday, September 27, 2011 6:15 PM
>To: Turgis, Frederic
>Cc: SystemTap
>Subject: Re: Met Problem on Enable SystemTap on Android
>
>On 09/27/2011 07:25 AM, Turgis, Frederic wrote:
>> Not sure this is same use case but "adb shell cat xxx" or "adb shell
>> xxx" performed on my host is expected to run the right thing on
>> target.
>
>The difference is whether that remote command needs stdin from
>the host.
>For "adb shell cat" with no file argument, it should be
>copying stdin to stdout, but it receives nothing.
>
>> For example, I could do "adb shell /data/systemtapxxx/bin/staprun
>> /data/systemtapxxx/test.ko" and get ouput directly on my host (but I
>> prefer dumping in a tmpfs then pull on host). This is silicon vendor
>> dev platform and not phone.
>
>So when we do stap --remote, we launch a stapsh that needs to
>go back and forth with a few queries -- what's your uname,
>upload this file, start staprun.  If stdin isn't working, this
>gets nowhere.
>
>> I still have previous mail in my Inbox to have a look but
>this is not
>> top of my list :-(
>
>No problem, it's just moving back down my list too. :)
>
>Josh
>

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

end of thread, other threads:[~2011-09-27 18:02 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 19:11 Met Problem on Enable SystemTap on Android Yao,Yanjun
2011-08-30 19:32 ` Josh Stone
     [not found]   ` <CAFxt-KSZkjb5eYutfEYTxe2=Hru7zLjd-YrBRs814N=VJFWr+A@mail.gmail.com>
2011-08-30 20:14     ` Josh Stone
2011-08-30 21:14       ` Yao,Yanjun
2011-08-30 22:16         ` Josh Stone
2011-08-31  9:05           ` Turgis, Frederic
2011-08-31 16:17             ` Josh Stone
2011-08-31 21:03               ` Yao,Yanjun
2011-09-01  9:00                 ` Turgis, Frederic
2011-09-01 16:09                   ` Josh Stone
2011-09-01 16:31                     ` Turgis, Frederic
2011-09-01 17:34                       ` Josh Stone
2011-09-01 21:40                         ` Turgis, Frederic
2011-09-01 16:21                   ` Yao,Yanjun
2011-09-01 16:44                     ` Turgis, Frederic
2011-09-07 21:46                       ` Yao,Yanjun
2011-09-08  7:46                         ` Mark Wielaard
2011-09-08 17:12                           ` Yao,Yanjun
2011-09-09 11:35                             ` Turgis, Frederic
2011-09-09 15:27                               ` Yao,Yanjun
2011-09-09 15:52                                 ` Turgis, Frederic
2011-09-14 20:20                                   ` Yao,Yanjun
2011-09-14 20:33                                     ` Mark Wielaard
2011-09-14 20:38                                     ` David Smith
2011-09-14 20:40                                       ` Yao,Yanjun
2011-09-15  7:15                                         ` Turgis, Frederic
2011-09-20 19:50                                           ` Yao,Yanjun
2011-09-21  6:42                                             ` Turgis, Frederic
2011-09-01  8:45               ` Turgis, Frederic
2011-09-26 20:52                 ` Josh Stone
2011-09-27 14:25                   ` Turgis, Frederic
2011-09-27 16:14                     ` Josh Stone
2011-09-27 18:02                       ` Turgis, Frederic
     [not found]             ` <003001cc686f$27aeafc0$770c0f40$@choi@lge.com>
2011-09-01  8:37               ` Some Problem come out during runing systemtap module on Android phone Turgis, Frederic
2011-09-06  1:30                 ` 최재혁B
2011-09-06  9:58                   ` Turgis, Frederic
2011-09-09  1:40                 ` problem during "make install" at Ubuntu64 최재혁B
2011-09-09  9:47                   ` Mark Wielaard
2011-09-09 10:38                     ` Turgis, Frederic
2011-09-15  0:19                     ` 최재혁B
2011-09-15  6:05                       ` 'Mark Wielaard'
2011-09-16  8:08                         ` 최재혁B
2011-09-16  9:53                           ` Mark Wielaard
2011-09-16  8:20                         ` How can I trace when the allocated memory is free after kmalloc ? 최재혁B
2011-09-16 10:03                           ` Mark Wielaard
2011-09-20  0:39                             ` 최재혁B
2011-09-20  9:12                               ` Mark Wielaard
2011-09-20 16:01                                 ` Josh Stone
2011-09-22 14:11                                   ` Turgis, Frederic
2011-09-23  0:27                                     ` 최재혁B
     [not found]                           ` <OF28D2A9AC.052504CE-ON4925790F.00483152-4925790F.00483154@lge.com>
2011-09-18 19:59                             ` Re : " Mark Wielaard

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).