[llvm] [llvm-profgen] Add support for Linux kenrel profile (PR #92831)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 19:08:02 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 {
----------------
WenleiHe wrote:
Why do we need a `BinaryName` parameter given `ProfiledBinary` has a name associated with it (`getName`)?
https://github.com/llvm/llvm-project/pull/92831
More information about the llvm-commits
mailing list