Home
last modified time | relevance | path

Searched refs:uint_value (Results 1 – 6 of 6) sorted by relevance

/system/extras/simpleperf/
Dcommand_test.cpp118 size_t uint_value; in TEST() local
119 ASSERT_TRUE(options.PullUintValue("--uint-option", &uint_value)); in TEST()
120 ASSERT_EQ(uint_value, 34); in TEST()
133 ASSERT_EQ(ordered_options[1].second.uint_value, 32); in TEST()
165 value.uint_value = 10; in TEST()
168 uint64_t uint_value; in TEST() local
170 ASSERT_FALSE(options.PullUintValue("--uint-option", &uint_value, 11)); in TEST()
172 ASSERT_FALSE(options.PullUintValue("--uint-option", &uint_value, 0, 9)); in TEST()
174 ASSERT_TRUE(options.PullUintValue("--uint-option", &uint_value, 10, 10)); in TEST()
Dcommand.h69 uint64_t uint_value; member
84 if (option_value->uint_value < min || option_value->uint_value > max) {
85 LOG(ERROR) << "invalid " << name << ": " << option_value->uint_value;
88 *value = option_value->uint_value;
Dcmd_api.cpp128 out_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
131 stop_signal_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
Dcmd_record.cpp753 uint64_t v = value->uint_value; in ParseOptions()
819 if (!IsPowerOfTwo(value->uint_value) || in ParseOptions()
820 value->uint_value > std::numeric_limits<size_t>::max()) { in ParseOptions()
821 LOG(ERROR) << "Invalid mmap_pages: '" << value->uint_value << "'"; in ParseOptions()
824 mmap_page_range_.first = mmap_page_range_.second = value->uint_value; in ParseOptions()
839 out_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
868 start_profiling_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
874 stop_signal_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
911 if (value.uint_value < 1) { in ParseOptions()
912 LOG(ERROR) << "invalid " << name << ": " << value.uint_value; in ParseOptions()
[all …]
Dcommand.cpp86 if (!android::base::ParseUint(args[++i], &value.uint_value, in PreprocessOptions()
Dcmd_stat.cpp683 out_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
704 stop_signal_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()