criu/pie
Cyrill Gorcunov aaef7b7f87 Add ability to compile program with gprof output
To be able to profile CRIU with gprof support we need a special flag
passed to the compiler and linker. But same time we can't build parasite
code with prof support because it'll call for mcount() service routine
for which we don't have any stub yet (and even if we had there are
other tech details involved). Thus PIE code won't be profiled.

To compile with prof support make it as

  make DEBUG=1 GMON=1

The idea to run gprof then over criu sources. Once you've it
compiled with the flags mentioned above -- simply run it (test or whatever,
I've been running sh test/zdtm.st static.maps00).

Then run gprof ./criu gmon.out

Note the gmon.out file lays in directory where criu were running, thus
in case of sh test/zdtm.st static.maps00 the output file will be in test/
directory.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-02-21 23:44:37 +04:00
..
log-simple.c plugin: allow to use logging function in plugins 2013-12-18 21:52:12 +04:00
Makefile Add ability to compile program with gprof output 2014-02-21 23:44:37 +04:00
parasite.c pie: add EOL in the error message 2014-01-23 13:24:33 +04:00
pie.lds.S.in pie: Bump .got table into .crblob section 2013-03-27 15:52:09 +04:00
restorer.c space-before-tab whitespace cleanup 2013-12-12 10:00:53 +04:00
util-fd.c headers: Drop SCM_MAX_FD internal variable 2013-11-14 22:13:32 +04:00
util.c headers: Move fcntl related data to include/fcntl.h 2013-11-14 22:13:10 +04:00