Git Product home page Git Product logo

Comments (4)

danielcdh avatar danielcdh commented on April 27, 2024

You just need to have the buildid in the separate .debug file.

from autofdo.

justanerd avatar justanerd commented on April 27, 2024

I now have compiled with buildid but no luck so far.

file /usr/bin/mpv
/usr/bin/mpv: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=b5acb6dffa31e29bdd7e5ea6e8c9d8a5bb64a832, stripped

file /usr/lib64/debug/usr/bin/mpv.debug
/usr/lib64/debug/usr/bin/mpv.debug: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter empty, for GNU/Linux 3.2.0, BuildID[sha1]=b5acb6dffa31e29bdd7e5ea6e8c9d8a5bb64a832, with debug_info, not stripped

create_gcov --binary=/usr/bin/mpv --profile=perf.data --gcov=sort.gcov -gcov_version=1

Log file created at: 2018/02/20 23:04:51
Running on machine: deepspace
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0220 23:04:51.595769 112557 perf_reader.cc:670] Perf data is in normal format.
I0220 23:04:51.596562 112557 perf_reader.cc:1300] Number of events stored: 5597
I0220 23:04:51.596575 112557 perf_reader.cc:1372] Unsupported metadata type, skipping: 16
I0220 23:04:51.613898 112557 perf_parser.cc:194] Parser processed: 2716 MMAP/MMAP2 events, 160 COMM events, 200 FORK events, 200 EXIT events, 2316 SAMPLE events, 2315 of these were mapped
W0220 23:04:51.619182 112557 addr2line.cc:41] File '/usr/bin/mpv' has no .debug_info section.
W0220 23:04:51.619225 112557 addr2line.cc:41] File '/usr/bin/mpv' has no .debug_ranges section.
W0220 23:04:51.619228 112557 addr2line.cc:41] File '/usr/bin/mpv' has no .debug_line section.
W0220 23:04:51.619328 112557 module_grouper.cc:60] Cannot read compilation info from binary. Please use -frecord-compilation-info-in-elf when building the binary

from autofdo.

danielcdh avatar danielcdh commented on April 27, 2024

I think this should have been fixed by #65, pease re-open if otherwise.

from autofdo.

justanerd avatar justanerd commented on April 27, 2024

still seems to be an issue.

/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=ddb86174e0fcba237885c1a472d89f34133f7b8a, stripped
/usr/lib/debug/bin/bash.debug: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter *empty*, for GNU/Linux 3.2.0, BuildID[sha1]=ddb86174e0fcba237885c1a472d89f34133f7b8a, with debug_info, not stripped

create_gcov --binary=/bin/bash --profile=perf.data --gcov=sort.gcov -gcov_version=1
Log file created at: 2018/04/18 11:04:04
Running on machine: deepspace
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
W0418 11:04:04.292893 91105 addr2line.cc:41] File '/bin/bash' has no .debug_info section.  
W0418 11:04:04.292918 91105 addr2line.cc:41] File '/bin/bash' has no .debug_ranges section.  
W0418 11:04:04.292922 91105 addr2line.cc:41] File '/bin/bash' has no .debug_line section.  
W0418 11:04:04.292979 91105 module_grouper.cc:60] Cannot read compilation info from binary. Please use -frecord-compilation-info-in-elf when building the binary

from autofdo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.