This is an archive of the discontinued LLVM Phabricator instance.

[profile] Fix writing binary id into profiles
ClosedPublic

Authored by gulfem on Dec 15 2021, 2:07 PM.

Details

Summary

This patch adds support to read all the PT_NOTE segments in the
executable to find the binary ids. Previously, it was only reading
the first PT_NOTE segment, and this was missing the cases where
binary id is in the following segments. As a result, binary-id.c
and binary-id-padding.c tests were failing in the following cases:

  1. sanitizer-x86_64-linux bot https://lab.llvm.org/staging/#/builders/97
  2. OpenSuse Tumbleweed https://github.com/llvm/llvm-project/issues/52695

Diff Detail

Event Timeline

gulfem created this revision.Dec 15 2021, 2:07 PM
gulfem requested review of this revision.Dec 15 2021, 2:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2021, 2:07 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
gulfem edited the summary of this revision. (Show Details)Dec 15 2021, 2:08 PM
gulfem edited the summary of this revision. (Show Details)
lbenes added a subscriber: lbenes.Dec 18 2021, 8:31 AM

This patch fixes the 2 failing tests on openSUSE Tumbleweed. Thanks gulfem!

lbenes accepted this revision.Dec 23 2021, 4:20 AM
This revision is now accepted and ready to land.Dec 23 2021, 4:20 AM
This revision was landed with ongoing or failed builds.Dec 27 2021, 11:42 AM
This revision was automatically updated to reflect the committed changes.