Lines Matching defs:int
75 int GetClockId(const std::string &name)
77 static std::map<std::string, int> mapClockid = {
126 int i = 0;
397 int maxCpuid = sysconf(_SC_NPROCESSORS_CONF) - 1;
702 bool SubCommandRecord::SetPerfLimit(const std::string& file, int value, std::function<bool (int, int)> const& cmp,
705 int oldValue = 0;
728 auto cmp = [](int oldValue, int newValue) { return oldValue == newValue; };
734 auto cmp = [](int oldValue, int newValue) { return oldValue == newValue; };
735 int frequency = frequency_ != 0 ? frequency_ : PerfEvents::DEFAULT_SAMPLE_FREQUNCY;
736 int maxRate = 0;
742 int newRate = frequency > static_cast<int>(PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE) ? frequency :
743 static_cast<int>(PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE);
750 auto cmp = [](int oldValue, int newValue) { return oldValue == newValue; };
751 int mlock_kb = sysconf(_SC_NPROCESSORS_CONF) * (mmapPages_ + 1) * 4;
775 int enable = -1;
981 constexpr int maxWaitTrackingCount = 3000 / 100; // wait 3 second
982 int waitTrackingCount = maxWaitTrackingCount;
1013 int polled = poll(&pollFd, 1, CONTROL_WAITREPY_TOMEOUT.count());
1125 int fd = open(CONTROL_FIFO_FILE_S2C.c_str(), O_RDONLY | O_NONBLOCK);
1144 int fdRead = open(CONTROL_FIFO_FILE_S2C.c_str(), O_RDONLY | O_NONBLOCK);
1149 int fdWrite = open(CONTROL_FIFO_FILE_C2S.c_str(), O_WRONLY | O_NONBLOCK);
1170 bool SubCommandRecord::WaitFifoReply(int fd, const std::chrono::milliseconds &timeOut)
1175 int polled = poll(&pollFd, 1, timeOut.count());