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 report "No buildid found in binary" #7

Closed
ktap opened this issue May 12, 2014 · 3 comments
Closed

create_gcov report "No buildid found in binary" #7

ktap opened this issue May 12, 2014 · 3 comments

Comments

@ktap
Copy link

ktap commented May 12, 2014

Hi,

The create_gcov always report cannot found binary buildid, but my kernel
already compiled with buildid.

[root@localhost autofdo]# ./create_gcov --binary=../linux/vmlinux --profile=../linux/perf.data --gcov=1
E0512 10:06:07.650653 14367 elf_reader.cc:789] Malformed .note.gnu.build-id section.
E0512 10:06:07.657847 14367 sample_reader.cc:233] No buildid found in binary
[root@localhost autofdo]#
[root@localhost autofdo]#
[root@localhost autofdo]# readelf -n ../linux/vmlinux|grep build
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)

@dnovillo
Copy link
Collaborator

On Sun, May 11, 2014 at 10:22 PM, Jovi Zhangwei notifications@github.comwrote:

Hi,

The create_gcov always report cannot found binary buildid, but my kernel
already compiled with buildid.

[root@localhost autofdo]# ./create_gcov --binary=../linux/vmlinux
--profile=../linux/perf.data --gcov=1
E0512 10:06:07.650653 14367 elf_reader.cc:789] Malformed
.note.gnu.build-id section.
E0512 10:06:07.657847 14367 sample_reader.cc:233] No buildid found in
binary
[root@localhost autofdo]#
[root@localhost autofdo]#
[root@localhost autofdo]# readelf -n ../linux/vmlinux|grep build
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)

You can ignore this error. It's harmless. It's a remnant of a string that's
inserted by Google's build system. Dehao is going to remove this soon.

Diego.

@danielcdh
Copy link
Contributor

You can simply ignore this error message (which I'll remove soon). But you need to make sure the binary that is running in the production machine has the same name as your "--binary" parameter, otherwise the tool cannot find the binary to match profile.

@danielcdh
Copy link
Contributor

This should have been fixed by d6834df

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

3 participants