[PATCH] D146301: [llvm-exegesis] Make possible to execute snippets without perf counters
Pavel Kosov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 08:12:26 PDT 2023
kpdev42 created this revision.
kpdev42 added reviewers: tstellar, courbet, lebedev.ri.
kpdev42 added a project: LLVM.
Herald added subscribers: StephenFan, mstojanovic.
Herald added a project: All.
kpdev42 requested review of this revision.
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 --benchmark-phase=execute-with-dummy-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.
While this is not strictly a "benchmark phase", it is added to the list
because it is yet another level of gradually disabling parts of the
regular benchmarking flow.
~~
Huawei RRI
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146301
Files:
llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
llvm/tools/llvm-exegesis/lib/LlvmState.cpp
llvm/tools/llvm-exegesis/lib/LlvmState.h
llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
llvm/tools/llvm-exegesis/lib/PerfHelper.h
llvm/tools/llvm-exegesis/lib/Target.cpp
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/llvm-exegesis.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146301.506087.patch
Type: text/x-patch
Size: 12984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230317/a4817583/attachment.bin>
More information about the llvm-commits
mailing list