[all-commits] [llvm/llvm-project] 8bbdc7: [llvm-profgen] Harden perf script invocation (#212...

Sergey Shcherbinin via All-commits all-commits at lists.llvm.org
Wed Aug 5 05:44:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bbdc73b846a3360cd02f619a3d500dbeb64ffae
      https://github.com/llvm/llvm-project/commit/8bbdc73b846a3360cd02f619a3d500dbeb64ffae
  Author: Sergey Shcherbinin <sscherbinin at nvidia.com>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    A llvm/test/tools/llvm-profgen/X86/perf-invocation-error.test
    A llvm/test/tools/llvm-profgen/X86/perfdata-redirect.test
    M llvm/test/tools/llvm-profgen/lit.local.cfg
    M llvm/tools/llvm-profgen/PerfReader.cpp

  Log Message:
  -----------
  [llvm-profgen] Harden perf script invocation (#212253)

Harden ``llvm-profgen``'s ``perf script`` invocation for ``--perfdata``:
report launch/exit failures, and clear redirect files between the two
invocations so stale stdout/stderr cannot leak. Cover both with lit
tests that inject a mock ``perf`` via ``PATH``.

Assisted by GPT-5



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list