[all-commits] [llvm/llvm-project] b02e2e: [llvm-exegesis] Make possible to execute snippets ...

Pavel Kosov via All-commits all-commits at lists.llvm.org
Thu Apr 6 03:09:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b02e2ed7ac71137430fc9fc8b32bed344f5e7fef
      https://github.com/llvm/llvm-project/commit/b02e2ed7ac71137430fc9fc8b32bed344f5e7fef
  Author: Pavel Kosov <kpdev42 at gmail.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    A llvm/test/tools/llvm-exegesis/X86/latency/dummy-counters.test
    M llvm/tools/llvm-exegesis/lib/LlvmState.cpp
    M llvm/tools/llvm-exegesis/lib/LlvmState.h
    M llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
    M llvm/tools/llvm-exegesis/lib/PerfHelper.h
    M llvm/tools/llvm-exegesis/lib/Target.cpp
    M llvm/tools/llvm-exegesis/lib/Target.h
    M llvm/tools/llvm-exegesis/llvm-exegesis.cpp

  Log Message:
  -----------
  [llvm-exegesis] Make possible to execute snippets without perf counters

Performance counters may be unavailable due to various reasons (such as
access restriction via sysctl properties or the CPU model being unknown
to libpfm). On the other hand, for debugging llvm-exegesis itself it is
still useful to be able to run generated code snippets to ensure that
the snippet does not crash at run time.

The --use-dummy-perf-counters command line option makes llvm-exegesis
behave just as usual except for using fake event counts instead of asking
the kernel for actual values.

~~

Huawei RRI, OS Lab

Reviewed By: courbet

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




More information about the All-commits mailing list