Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_gcov produces invalid output files #82

Open
Garfield-Lewis opened this issue Apr 21, 2019 · 0 comments
Open

create_gcov produces invalid output files #82

Garfield-Lewis opened this issue Apr 21, 2019 · 0 comments

Comments

@Garfield-Lewis
Copy link

Hi,

I've download and built the autofdo project, however, when I do perf run and try to reformat the data using create_gcov the resulting files do not look correct. This is what I am seeing:

[sysprog@nucky ~] $ /usr/local/bin/create_gcov --binary=/usr/bin/lz_batch --profile=/tmp/profiling-data/prof20k-bir.raw -gcov_version 1 --gcov=/tmp/profiling-data/prof20k-bir.afdo
[sysprog@nucky ~] $ ls -ltr /tmp/profiling-data/prof20k-bir.*
-rwxrwxrwx 1 lzsystem lzsystem 1659536340 Apr 20 21:20 /tmp/profiling-data/prof20k-bir.raw
-rw-rw-r-- 1 sysprog  sysprog           0 Apr 20 23:09 /tmp/profiling-data/prof20k-bir.afdo.imports
-rw-rw-r-- 1 sysprog  sysprog        1600 Apr 20 23:09 /tmp/profiling-data/prof20k-bir.afdo

I have tried a number of profile data files but the result is always the same. The imports file is size 0 and the gcov file is 1600 bytes. The beginning of the file looks like the following:

0000000: 6164 6367 0100 0000 0000 0000 0000 00aa  adcg............
0000010: 0300 0000 0100 0000 0100 0000 0000 0000  ................
0000020: 0000 00ac 0100 0000 0000 0000 0000 00ae  ................
0000030: 0100 0000 0000 0000 0000 00af 8001 0000  ................
0000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................

The rest of the file is filled with all 0x0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant