告警清理

Signed-off-by:wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
wenlong12 2024-02-05 16:39:16 +08:00
parent 7351c54e2f
commit f503c38e9d
4 changed files with 4 additions and 4 deletions

View File

@ -339,7 +339,7 @@ bool IsSupportNonDebuggableApp();
const std::string GetUserType();
std::string GetProcessName(int pid);
bool NeedAdaptSandboxPath(char *filename, int pid, u16 &headerSize);
bool NeedAdaptHMBundlePath(std::string& filename, std::string threadname);
bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname);
template <typename Func>
class ScopeGuard {

View File

@ -754,7 +754,7 @@ void PerfEvents::SetSampleFrequency(unsigned int frequency)
printf("read perf_event_max_sample_rate fail.\n");
return;
}
if (sampleFreq_ > maxRate) {
if (sampleFreq_ > static_cast<unsigned int>(maxRate)) {
sampleFreq_ = maxRate;
if (!printFlag) {
printf("Adjust sampling frequency to maximum allowed frequency %d.\n", maxRate);

View File

@ -682,7 +682,7 @@ bool SubCommandRecord::SetPerfMaxSampleRate()
return true;
}
int newRate = frequency > PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE ? frequency :
PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE;
static_cast<int>(PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE);
return SetPerfLimit(PERF_EVENT_MAX_SAMPLE_RATE, newRate, cmp,
"hiviewdfx.hiperf.perf_event_max_sample_rate");
}

View File

@ -756,7 +756,7 @@ bool NeedAdaptSandboxPath(char *filename, int pid, u16 &headerSize)
return false;
}
bool NeedAdaptHMBundlePath(std::string& filename, std::string threadname)
bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname)
{
std::string path = "/data/storage/el1/bundle";
std::string newpath = "/data/app/el1/bundle/public/";