GithubHelp home page GithubHelp logo

Comments (3)

pchome avatar pchome commented on May 13, 2024

More info: on Gentoo this can be controlled by splitdebug and compressdebug FEATURES flags.
Which will do the following:

local objcopy_flags="--only-keep-debug"
${FEATURES_compressdebug} && objcopy_flags+=" --compress-debug-sections"
${OBJCOPY} ${objcopy_flags} "${x}" "${y}"
${OBJCOPY} --add-gnu-debuglink="${y}" "${x}"

where local y=${ED%/}/usr/lib/debug/${x:${#d_noslash}}.debug.

Generated example: mesa-progs-8.3.0.tar.gz

create_gcov -gcov_version=1 -use_lbr=false -binary=$(which glxgears)

I1107 15:12:50.406280 25129 perf_reader.cc:798] Number of events stored: 13181
I1107 15:12:50.438150 25129 perf_parser.cc:268] Parser processed: 96 MMAP/MMAP2 events, 2 COMM events, 0 FORK events, 1 EXIT events, 13079 SAMPLE events, 13079 of these were mapped
W1107 15:12:50.441745 25129 addr2line.cc:41] File '/usr/bin/glxgears' has no .debug_info section.  
W1107 15:12:50.441792 25129 addr2line.cc:41] File '/usr/bin/glxgears' has no .debug_ranges section.  
W1107 15:12:50.441807 25129 addr2line.cc:41] File '/usr/bin/glxgears' has no .debug_line section.  
W1107 15:12:50.441926 25129 module_grouper.cc:60] Cannot read compilation info from binary. Please use -frecord-compilation-info-in-elf when building the binary

from autofdo.

pchome avatar pchome commented on May 13, 2024

debuglink.c.patch.txt -- a rough patch for elfutils debuglink.c test to print more debuglink info.

$ gcc debuglink.c -lelf -ldw -o debuglink
$ ./debuglink a.out $(which glxgears)  $(which glxinfo)
a.out: <no gnu_debuglink file>
Symbols in:
  module:     module1
  file:       a.out
  debugfile:  (null)
  symbols:    60
/usr/bin/glxgears: glxgears.debug, crc: 1dcf4a9
Symbols in:
  module:     module1
  file:       /usr/bin/glxgears
  debugfile:  /usr/lib/debug/usr/bin/glxgears.debug
  symbols:    179
/usr/bin/glxinfo: glxinfo.debug, crc: 6047213
Symbols in:
  module:     module1
  file:       /usr/bin/glxinfo
  debugfile:  /usr/lib/debug/usr/bin/glxinfo.debug
  symbols:    223

from autofdo.

justanerd avatar justanerd commented on May 13, 2024

This works still only with nostrip applied in gentoo.
Is there any easy fix to get create_gcov to find the debug file in /usr/lib/debug?

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.