Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcommand_test.cpp111 size_t uint_value; in TEST() local
112 ASSERT_TRUE(options.PullUintValue("--uint-option", &uint_value)); in TEST()
113 ASSERT_EQ(uint_value, 34); in TEST()
126 ASSERT_EQ(ordered_options[1].second.uint_value, 32); in TEST()
161 value.uint_value = 10; in TEST()
164 uint64_t uint_value; in TEST() local
166 ASSERT_FALSE(options.PullUintValue("--uint-option", &uint_value, 11)); in TEST()
168 ASSERT_FALSE(options.PullUintValue("--uint-option", &uint_value, 0, 9)); in TEST()
170 ASSERT_TRUE(options.PullUintValue("--uint-option", &uint_value, 10, 10)); in TEST()
Dcommand.h69 uint64_t uint_value; member
82 if (option_value->uint_value < min || option_value->uint_value > max) {
83 LOG(ERROR) << "invalid " << name << ": " << option_value->uint_value;
86 *value = option_value->uint_value;
Dcmd_monitor.cpp356 if (value.uint_value < 1) { in ParseOptions()
357 LOG(ERROR) << "invalid " << name << ": " << value.uint_value; in ParseOptions()
361 sample_speed_.reset(new SampleSpeed(0, value.uint_value)); in ParseOptions()
363 if (value.uint_value >= INT_MAX) { in ParseOptions()
364 LOG(ERROR) << "sample freq can't be bigger than INT_MAX: " << value.uint_value; in ParseOptions()
367 sample_speed_.reset(new SampleSpeed(value.uint_value, 0)); in ParseOptions()
Dcmd_api.cpp121 out_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
124 stop_signal_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
Dcmd_record.cpp828 uint64_t v = value->uint_value; in ParseOptions()
913 if (!IsPowerOfTwo(value->uint_value) || in ParseOptions()
914 value->uint_value > std::numeric_limits<size_t>::max()) { in ParseOptions()
915 LOG(ERROR) << "Invalid mmap_pages: '" << value->uint_value << "'"; in ParseOptions()
918 mmap_page_range_.first = mmap_page_range_.second = value->uint_value; in ParseOptions()
933 out_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
960 start_profiling_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
966 stop_signal_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
1001 if (value.uint_value < 1) { in ParseOptions()
1002 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.cpp674 out_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()
693 stop_signal_fd_.reset(static_cast<int>(value->uint_value)); in ParseOptions()