[all-commits] [llvm/llvm-project] f261e2: [profile] Fix writing binary id into profiles

gulfemsavrun via All-commits all-commits at lists.llvm.org
Mon Dec 27 11:42:41 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f261e258ecc0fc5b8e8a70dbe45752d1bb3c2d69
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2021-12-27 (Mon, 27 Dec 2021)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfilingPlatformLinux.c

  Log Message:
  [profile] Fix writing binary id into profiles

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 test were failing in the following cases:
1) sanitizer-x86_64-linux bot
2) OpenSuse Tumbleweed

Differential Revision: https://reviews.llvm.org/D115830

More information about the All-commits mailing list