sprof

sprof “PLTREL not found error”

时光毁灭记忆、已成空白 提交于 2019-12-22 19:13:47
问题 I'm trying to profile our shared library, but whenever I have the environmental variable LD_PROFILE set, I get "PLTREL not found in object ". What gives? Is there some sort of linker flag I'm missing or what? There seems to be no information about this on the internets. The man page for sprof is about 10 words long. 回答1: According to an unanswered question on Google Groups, it looks like you aren't the very first person with this problem. I think pltrel means plt-rel ative; in some ELF design

What is causing sprof to complain about “inconsistency detected by ld.so”?

此生再无相见时 提交于 2019-12-12 09:31:42
问题 I'm trying to use sprof to profile some software (ossim) where almost all the code is in a shared library. I've generated a profiling file, but when I run sprof, I get the following error: > sprof /home/eca7215/usr/lib/libossim.so.1 libossim.so.1.profile -p > log Inconsistency detected by ld.so: dl-open.c: 612: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed! The instructions I was following said that I needed libc version at least 2.5-34, I have

sprof “PLTREL not found error”

时光毁灭记忆、已成空白 提交于 2019-12-06 12:13:39
I'm trying to profile our shared library, but whenever I have the environmental variable LD_PROFILE set, I get "PLTREL not found in object ". What gives? Is there some sort of linker flag I'm missing or what? There seems to be no information about this on the internets. The man page for sprof is about 10 words long. According to an unanswered question on Google Groups , it looks like you aren't the very first person with this problem. I think pltrel means plt-rel ative; in some ELF design notes , There is a .plt section created in the code segment, which is an array of function stubs used to

What is causing sprof to complain about “inconsistency detected by ld.so”?

给你一囗甜甜゛ 提交于 2019-12-04 23:02:24
I'm trying to use sprof to profile some software (ossim) where almost all the code is in a shared library. I've generated a profiling file, but when I run sprof, I get the following error: > sprof /home/eca7215/usr/lib/libossim.so.1 libossim.so.1.profile -p > log Inconsistency detected by ld.so: dl-open.c: 612: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed! The instructions I was following said that I needed libc version at least 2.5-34, I have libc version 2.12.2 (Gentoo, kernel 2.6.36-r5). I can't find any explanation as to what the error means or

How to use sprof?

戏子无情 提交于 2019-12-04 12:25:16
问题 please explain with example? 回答1: From the emails found here and here, I've extracted the following notes: Given an application my_app', which links against a shared object my_sobj', and has been compiled with the '-g' compile flag: #set the environment variable LD_PROFILE to the name of the shared obj export LD_PROFILE=my_obj #run your application my_app #this should create a file /var/tmp/my_sobj.profile #now run sprof sprof my_sobj my_sobj.profile This gives profile information for the

How to use sprof?

独自空忆成欢 提交于 2019-12-03 08:13:29
please explain with example? From the emails found here and here , I've extracted the following notes: Given an application my_app', which links against a shared object my_sobj', and has been compiled with the '-g' compile flag: #set the environment variable LD_PROFILE to the name of the shared obj export LD_PROFILE=my_obj #run your application my_app #this should create a file /var/tmp/my_sobj.profile #now run sprof sprof my_sobj my_sobj.profile This gives profile information for the shared library, not for my_app 来源: https://stackoverflow.com/questions/881074/how-to-use-sprof

gprof : How to generate call graph for functions in shared library that is linked to main program

旧城冷巷雨未停 提交于 2019-11-30 00:07:30
I am working on Linux environment. I have two 'C' source packages train and test_train. train package when compiled generates libtrain.so test_train links to libtrain.so and generates executable train-test Now I want to generate a call graph using gprof which shows calling sequence of functions in main program as well as those inside libtrain.so I am compiling and linking both packages with -pg option and debugging level is o0. After I do ./train-test , gmon.out is generated. Then I do: $ gprof -q ./train-test gmon.out Here, output shows call graph of functions in train-test but not in

gprof : How to generate call graph for functions in shared library that is linked to main program

廉价感情. 提交于 2019-11-28 21:07:58
问题 I am working on Linux environment. I have two 'C' source packages train and test_train. train package when compiled generates libtrain.so test_train links to libtrain.so and generates executable train-test Now I want to generate a call graph using gprof which shows calling sequence of functions in main program as well as those inside libtrain.so I am compiling and linking both packages with -pg option and debugging level is o0. After I do ./train-test , gmon.out is generated. Then I do: $