Comments (3)
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.
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.
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)
- autofdo doesnt compile. HOT 6
- dwarf2reader.cc:835: Unhandled form type HOT 2
- Huge memory consumption
- couldn't ninja HOT 2
- Disscussion: Does autofdo support .zdebug_{info,line}...
- llvm-16-compile-fix
- Apply PGO to the AutoFDO itself HOT 3
- [bug] No checking about "requires the first loadable segment to be executable". HOT 5
- Don't emit in output profile when sample count is 0. HOT 2
- excessive total_count HOT 1
- sample_reader.cc:102] Error reading from perf_inject_etm_test_loop.data&profile_creator.cc:138] Error reading profile.
- Please allow using system abseil (over bundled abseil)
- Completely broken, will not compile on Clear Linux or other distros I've tried HOT 22
- autofdo needs libprotofbuf-dev
- AutoFDO can not be built with LLVM trunk (LLVM-18)
- Optimization clang with Propeller: create_llvm_prof fails
- Propeller slows down clang ~20% HOT 4
- When support path cloning in propeller
- Build autofdo tool failed for llvm-master HOT 1
- create_gcov can not find binary with buildid and profile_creator can not read profile HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autofdo.