- 论坛徽章:
- 0
|
回复 19# hejianet
jun:/Linux/trouble/tools/systemtap/example # stap -v hello.stp
Pass 1: parsed user script and 89 library script(s) using 70660virt/21520res/2364shr/19816data kb, in 200usr/30sys/476real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 71188virt/22280res/2472shr/20344data kb, in 0usr/0sys/49real ms.
Pass 3: translated to C into "/tmp/stapIGTcfX/stap_8f09c1af3ea1607e23732126905e0e61_964_src.c" using 71188virt/22820res/2960shr/20344data kb, in 0usr/0sys/0real ms.
Pass 4: compiled C into "stap_8f09c1af3ea1607e23732126905e0e61_964.ko" in 10710usr/1690sys/17946real ms.
Pass 5: starting run.
hello world
Pass 5: run completed in 20usr/60sys/387real ms.
jun:/Linux/trouble/tools/systemtap/example # cat hello.stp
probe begin
{
printf("hello world\n")
exit()
}
jun:/Linux/trouble/tools/systemtap/example # stap -v trace_route.stp
Pass 1: parsed user script and 89 library script(s) using 70660virt/21528res/2364shr/19816data kb, in 200usr/20sys/221real ms.
Pass 2: analyzed script: 62 probe(s), 20 function(s), 4 embed(s), 2 global(s) using 254572virt/69488res/3524shr/67292data kb, in 670usr/350sys/8707real ms.
Pass 3: translated to C into "/tmp/stapjiABQJ/stap_2f7c773e1a90df417f431118bb8ecda8_22394_src.c" using 252200virt/72564res/6720shr/67292data kb, in 300usr/10sys/595real ms.
/tmp/stapjiABQJ/stap_2f7c773e1a90df417f431118bb8ecda8_22394_src.c: In function ‘systemtap_module_init’:
/tmp/stapjiABQJ/stap_2f7c773e1a90df417f431118bb8ecda8_22394_src.c:2541:3: error: implicit declaration of function ‘_stp_vma_init’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[3]: *** [/tmp/stapjiABQJ/stap_2f7c773e1a90df417f431118bb8ecda8_22394_src.o] Error 1
make[2]: *** [_module_/tmp/stapjiABQJ] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_2f7c773e1a90df417f431118bb8ecda8_22394.ko" in 2250usr/530sys/2972real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.
|
|