1. 06 Mar, 2014 1 commit
  2. 04 Mar, 2014 2 commits
  3. 28 Feb, 2014 28 commits
  4. 26 Feb, 2014 1 commit
  5. 25 Feb, 2014 2 commits
  6. 24 Feb, 2014 1 commit
  7. 22 Feb, 2014 4 commits
  8. 21 Feb, 2014 1 commit
    • Cyrill Gorcunov's avatar
      Add ability to compile program with gprof output · aaef7b7f
      Cyrill Gorcunov authored
      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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      aaef7b7f