Lines Matching refs:config_
123 CHECK_TRUE(VerifySelectEventGroups(config_.selectEventGroups_) == 0, -1, "VerifySelectEventGroups fail");
125 CHECK_TRUE(VerifyDumpEvents(config_.dumpEvents_) == 0, -1,
126 "VerifyDumpEvents() failed: dump events = %u", config_.dumpEvents_);
128 CHECK_TRUE(VerifyTraceDuration(config_.traceDuration_) == 0, -1,
129 "VerifyTraceDuration() failed: duration = %u", config_.traceDuration_);
131 CHECK_TRUE(VerifyMaxStackDepth(config_.maxStackDepth_) == 0, -1,
132 "VerifyMaxStackDepth() failed: max stack depth = %u", config_.maxStackDepth_);
152 if (config_.maxStackDepth_ > MAX_SIZE) {
156 if (config_.unwindStack_) {
157 ips_ = new(std::nothrow) __u64[config_.maxStackDepth_];
161 dataFile_ = HiebpfDataFile::MakeShared(config_.cmd_, config_.outputFile_);
165 skel_->rodata->g_stack_limit = config_.maxStackDepth_;
294 CHECK_TRUE(InitTracerPid(fd, config_.excludeTracer_) == 0, -1,
297 CHECK_TRUE(InitBPFLogLevel(fd, config_.BPFLogLevel_) == 0, -1,
300 CHECK_TRUE(InitUnwindFlag(fd, config_.unwindStack_) == 0, -1,
313 int numPids {config_.targetPids_.size()};
326 val = static_cast<uint32_t>(config_.targetPids_[index - 1]);
337 if (config_.BPFLogLevel_ == BPF_LOG_NONE) {
343 bpfLogReader_ = BPFLogReader::MakeUnique(config_.BPFLogFile_);
352 HHLOGI(true, "libbpf logger: file = %s, level = %d", config_.LIBBPFLogFile_.c_str(), config_.LIBBPFLogLevel_);
354 if (config_.LIBBPFLogLevel_ == LIBBPF_NONE) {
358 libbpfLogger = LIBBPFLogger::MakeUnique(config_.LIBBPFLogFile_, config_.LIBBPFLogLevel_);
365 if (config_.dumpEvents_ == 0) {
372 if (config_.pipelines_ == 0) {
373 config_.pipelines_ = MIN_PIPELINES_LIMIT;
375 for (__u32 cnt = config_.pipelines_; cnt != 0; --cnt) {
378 CHECK_TRUE(receivers_.size() == config_.pipelines_, -1, "failed to make BPF event receivers");
475 const auto endTime = std::chrono::steady_clock::now() + std::chrono::seconds(config_.traceDuration_);
483 printf("timeout(%us), hiebpf exit\n", config_.traceDuration_);
797 if (bpfctlr->config_.dumpEvents_) {
798 --bpfctlr->config_.dumpEvents_;