[llvm] [llvm-profgen] Add support for Linux kenrel profile (PR #92831)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 09:38:01 PDT 2024
================
@@ -428,6 +431,14 @@ class ProfiledBinary {
bool usePseudoProbes() const { return UsePseudoProbes; }
bool useFSDiscriminator() const { return UseFSDiscriminator; }
+ bool isKernel() const { return IsKernel; }
+
+ bool isKernelImageName(StringRef BinaryName) const {
----------------
xur-llvm wrote:
getName() would return the binary name of the kernel image, typically vmlinux, or a name with version info, like vmlinux-6.8.0-smp-1201.1.889.0. The image name from perf command is in of the forms in this function.
https://github.com/llvm/llvm-project/pull/92831
More information about the llvm-commits
mailing list