/external/linux-kselftest/tools/testing/selftests/timers/ |
D | set-timer-lat.c | 53 int clock_id; variable 102 clock_gettime(clock_id, &ts); in sigalarm() 118 clockstring(clock_id), in describe_timer() 123 int setup_timer(int clock_id, int flags, int interval, timer_t *tm1) in setup_timer() argument 139 err = timer_create(clock_id, &se, tm1); in setup_timer() 141 if ((clock_id == CLOCK_REALTIME_ALARM) || in setup_timer() 142 (clock_id == CLOCK_BOOTTIME_ALARM)) { in setup_timer() 144 clockstring(clock_id), in setup_timer() 149 printf("%s - timer_create() failed\n", clockstring(clock_id)); in setup_timer() 153 clock_gettime(clock_id, &start_time); in setup_timer() [all …]
|
/external/perfetto/src/trace_processor/importers/common/ |
D | clock_tracker.h | 118 static bool IsReservedSeqScopedClockId(ClockId clock_id) { in IsReservedSeqScopedClockId() argument 119 return clock_id >= 64 && clock_id < 128; in IsReservedSeqScopedClockId() 124 static ClockId SeqScopedClockIdToGlobal(uint32_t seq_id, uint32_t clock_id) { in SeqScopedClockIdToGlobal() argument 125 PERFETTO_DCHECK(IsReservedSeqScopedClockId(clock_id)); in SeqScopedClockIdToGlobal() 126 return (static_cast<uint64_t>(seq_id) << 32) | clock_id; in SeqScopedClockIdToGlobal() 142 ClockValue(ClockId id, int64_t ts) : clock_id(id), absolute_timestamp(ts) {} in ClockValue() 144 : clock_id(id), in ClockValue() 149 ClockId clock_id; member 182 base::Optional<int64_t> ToTraceTime(ClockId clock_id, int64_t timestamp) { in ToTraceTime() argument 184 if (clock_id == trace_time_clock_id_) in ToTraceTime() [all …]
|
D | clock_tracker.cc | 54 hasher.Update(clock.clock_id); in AddSnapshot() 59 ClockId clock_id = clock.clock_id; in AddSnapshot() local 60 ClockDomain& domain = clocks_[clock_id]; in AddSnapshot() 62 if (clock.is_incremental && !ClockIsSeqScoped(clock_id)) { in AddSnapshot() 66 clock_id); in AddSnapshot() 79 clock_id, clock.unit_multiplier_ns, clock.is_incremental, in AddSnapshot() 93 clock_id, snapshot_id); in AddSnapshot() 101 PERFETTO_DCHECK(!IsReservedSeqScopedClockId(clock_id)); in AddSnapshot() 111 if (clock_id == trace_time_clock_id_) { in AddSnapshot() 116 clock_id, snapshot_id, timestamp_ns, in AddSnapshot() [all …]
|
/external/arm-trusted-firmware/plat/xilinx/zynqmp/pm_service/ |
D | pm_api_clock.h | 59 enum clock_id { enum 293 struct pm_pll *pm_clock_get_pll(enum clock_id clock_id); 294 struct pm_pll *pm_clock_get_pll_by_related_clk(enum clock_id clock_id); 295 uint8_t pm_clock_has_div(unsigned int clock_id, enum pm_clock_div_id div_id); 297 void pm_api_clock_get_name(unsigned int clock_id, char *name); 299 enum pm_ret_status pm_api_clock_get_topology(unsigned int clock_id, 302 enum pm_ret_status pm_api_clock_get_fixedfactor_params(unsigned int clock_id, 305 enum pm_ret_status pm_api_clock_get_parents(unsigned int clock_id, 308 enum pm_ret_status pm_api_clock_get_attributes(unsigned int clock_id, 310 enum pm_ret_status pm_api_clock_get_max_divisor(enum clock_id clock_id, [all …]
|
D | pm_api_sys.c | 790 static enum pm_ret_status pm_clock_get_max_divisor(unsigned int clock_id, in pm_clock_get_max_divisor() argument 794 return pm_api_clock_get_max_divisor(clock_id, div_type, max_div); in pm_clock_get_max_divisor() 818 static void pm_clock_get_name(unsigned int clock_id, char *name) in pm_clock_get_name() argument 820 pm_api_clock_get_name(clock_id, name); in pm_clock_get_name() 836 static enum pm_ret_status pm_clock_get_topology(unsigned int clock_id, in pm_clock_get_topology() argument 840 return pm_api_clock_get_topology(clock_id, index, topology); in pm_clock_get_topology() 855 static enum pm_ret_status pm_clock_get_fixedfactor_params(unsigned int clock_id, in pm_clock_get_fixedfactor_params() argument 859 return pm_api_clock_get_fixedfactor_params(clock_id, mul, div); in pm_clock_get_fixedfactor_params() 879 static enum pm_ret_status pm_clock_get_parents(unsigned int clock_id, in pm_clock_get_parents() argument 883 return pm_api_clock_get_parents(clock_id, index, parents); in pm_clock_get_parents() [all …]
|
D | pm_api_clock.c | 2399 static bool pm_clock_valid(unsigned int clock_id) in pm_clock_valid() argument 2404 if (pm_clk_invalid_list[i] == clock_id) in pm_clock_valid() 2418 static unsigned int pm_clock_type(unsigned int clock_id) in pm_clock_type() argument 2420 return (clock_id < CLK_MAX_OUTPUT_CLK) ? in pm_clock_type() 2449 void pm_api_clock_get_name(unsigned int clock_id, char *name) in pm_api_clock_get_name() argument 2451 if (clock_id == CLK_MAX) in pm_api_clock_get_name() 2454 else if (!pm_clock_valid(clock_id)) in pm_api_clock_get_name() 2456 else if (clock_id < CLK_MAX_OUTPUT_CLK) in pm_api_clock_get_name() 2457 memcpy(name, clocks[clock_id].name, CLK_NAME_LEN); in pm_api_clock_get_name() 2459 memcpy(name, ext_clocks[clock_id - CLK_MAX_OUTPUT_CLK].name, in pm_api_clock_get_name() [all …]
|
D | pm_api_sys.h | 143 enum pm_ret_status pm_clock_enable(unsigned int clock_id); 144 enum pm_ret_status pm_clock_disable(unsigned int clock_id); 145 enum pm_ret_status pm_clock_getstate(unsigned int clock_id, 147 enum pm_ret_status pm_clock_setdivider(unsigned int clock_id, 149 enum pm_ret_status pm_clock_getdivider(unsigned int clock_id, 151 enum pm_ret_status pm_clock_setrate(unsigned int clock_id, 153 enum pm_ret_status pm_clock_getrate(unsigned int clock_id, 155 enum pm_ret_status pm_clock_setparent(unsigned int clock_id, 157 enum pm_ret_status pm_clock_getparent(unsigned int clock_id,
|
/external/arm-trusted-firmware/drivers/scmi-msg/ |
D | clock.c | 138 unsigned int clock_id = 0U; in scmi_clock_attributes() local 145 clock_id = SPECULATION_SAFE_VALUE(in_args->clock_id); in scmi_clock_attributes() 147 if (clock_id >= plat_scmi_clock_count(msg->agent_id)) { in scmi_clock_attributes() 153 name = plat_scmi_clock_get_name(msg->agent_id, clock_id); in scmi_clock_attributes() 162 clock_id); in scmi_clock_attributes() 174 unsigned int clock_id = 0U; in scmi_clock_rate_get() local 181 clock_id = SPECULATION_SAFE_VALUE(in_args->clock_id); in scmi_clock_rate_get() 183 if (clock_id >= plat_scmi_clock_count(msg->agent_id)) { in scmi_clock_rate_get() 188 rate = plat_scmi_clock_get_rate(msg->agent_id, clock_id); in scmi_clock_rate_get() 201 unsigned int clock_id = 0U; in scmi_clock_rate_set() local [all …]
|
D | clock.h | 36 uint32_t clock_id; member 52 uint32_t clock_id; member 84 uint32_t clock_id; member 102 uint32_t clock_id; member 140 uint32_t clock_id; member
|
/external/perfetto/test/trace_processor/graphics/ |
D | clock_sync.py | 46 trace.add_gpu_counter(ts=2, clock_id=CLOCK_MONOTONIC, counter_id=42, value=5) 57 trace.add_gpu_counter(ts=3, clock_id=GLOBAL_CLK1, counter_id=42, value=7) 60 trace.add_gpu_counter(ts=4, clock_id=GLOBAL_CLK2, counter_id=42, value=9) 70 ts=7, clock_id=SEQ_CLOCK1, counter_id=42, value=14, seq_id=3) 74 ts=6, clock_id=SEQ_CLOCK1, seq_id=2, counter_id=42, value=11) 86 ts=2013, clock_id=CLOCK_BOOTTIME, seq_id=2, counter_id=42, value=13)
|
/external/ltp/lib/ |
D | tst_timer.c | 16 static clockid_t clock_id; variable 58 clock_id = clk_id; in tst_timer_start() 60 if (tst_clock_gettime(clock_id, &start_time)) in tst_timer_start() 68 if (tst_clock_gettime(clock_id, &cur_time)) in tst_timer_expired_ms() 76 if (tst_clock_gettime(clock_id, &stop_time)) in tst_timer_stop()
|
/external/perfetto/src/trace_processor/importers/proto/ |
D | proto_trace_reader.cc | 364 ClockTracker::ClockId clock_id = clk.clock_id(); in ParseClockSnapshot() local 365 if (ClockTracker::IsReservedSeqScopedClockId(clk.clock_id())) { in ParseClockSnapshot() 370 clock_id); in ParseClockSnapshot() 372 clock_id = ClockTracker::SeqScopedClockIdToGlobal(seq_id, clk.clock_id()); in ParseClockSnapshot() 378 clocks.emplace_back(clock_id, clk.timestamp(), unit_multiplier_ns, in ParseClockSnapshot() 391 context_->clock_tracker->ToTraceTime(clock.clock_id, ts_to_convert); in ParseClockSnapshot() 405 row.clock_id = static_cast<int64_t>(clock.clock_id); in ParseClockSnapshot() 407 row.clock_name = GetBuiltinClockNameOrNull(clock.clock_id); in ParseClockSnapshot() 417 uint64_t clock_id) { in GetBuiltinClockNameOrNull() argument 418 switch (clock_id) { in GetBuiltinClockNameOrNull()
|
/external/rust/crates/nix/src/ |
D | time.rs | 209 pub fn clock_getres(clock_id: ClockId) -> Result<TimeSpec> { in clock_getres() 211 let ret = unsafe { libc::clock_getres(clock_id.as_raw(), c_time.as_mut_ptr()) }; in clock_getres() 219 pub fn clock_gettime(clock_id: ClockId) -> Result<TimeSpec> { in clock_gettime() 221 let ret = unsafe { libc::clock_gettime(clock_id.as_raw(), c_time.as_mut_ptr()) }; in clock_gettime() 237 pub fn clock_settime(clock_id: ClockId, timespec: TimeSpec) -> Result<()> { in clock_settime() 238 let ret = unsafe { libc::clock_settime(clock_id.as_raw(), timespec.as_ref()) }; in clock_settime()
|
/external/perfetto/test/trace_processor/parsing/ |
D | config_metadata.textproto | 4 clock_id: 6 8 clock_id: 128
|
/external/perfetto/test/trace_processor/profiling/ |
D | stack_profile_tracker_empty_callstack.textproto | 4 clock_id: 6 # BOOTTIME 8 clock_id: 4 # MONOTONIC_COARSE
|
D | heap_profile_tracker_twoheaps.textproto | 4 clock_id: 6 # BOOTTIME 8 clock_id: 4 # MONOTONIC_COARSE
|
D | heap_profile_tracker_new_stack.textproto | 4 clock_id: 6 # BOOTTIME 8 clock_id: 4 # MONOTONIC_COARSE
|
D | heap_profile_deobfuscate_memfd.textproto | 21 clock_id: 6 # BOOTTIME 25 clock_id: 4 # MONOTONIC_COARSE
|
D | heap_profile_deobfuscate.textproto | 21 clock_id: 6 # BOOTTIME 25 clock_id: 4 # MONOTONIC_COARSE
|
/external/perfetto/test/trace_processor/power/ |
D | power_rails_custom_clock.textproto | 4 clock_id: 6 8 clock_id: 128
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep2/ |
D | clock_nanosleep2_01.c | 18 static int clock_nanosleep2(clockid_t clock_id, int flags, in clock_nanosleep2() argument 21 return tst_syscall(__NR_clock_nanosleep, clock_id, flags, req, rem); in clock_nanosleep2()
|
/external/ltp/include/lapi/ |
D | common_timers.h | 37 const char *get_clock_str(const int clock_id) in get_clock_str() argument 39 switch (clock_id) { in get_clock_str()
|
/external/perfetto/test/trace_processor/track_event/ |
D | track_event_monotonic_trace_clock.textproto | 9 clock_id: 3 # BUILTIN_CLOCK_MONOTONIC 13 clock_id: 6 # BUILTIN_CLOCK_BOOTTIME
|
/external/virglrenderer/perf-testing/Docker/ |
D | merge_traces.py | 89 if clock.clock_id == BUILTIN_CLOCK_BOOTTIME: 91 elif clock.clock_id == BUILTIN_CLOCK_REALTIME: 108 if clock.clock_id == BUILTIN_CLOCK_BOOTTIME: 110 elif clock.clock_id == BUILTIN_CLOCK_REALTIME:
|
/external/rust/crates/nix/test/ |
D | test_time.rs | 30 let clock_id = clock_getcpuclockid(nix::unistd::Pid::this()).unwrap(); in test_clock_getcpuclockid() localVariable 31 assert!(clock_gettime(clock_id).is_ok()); in test_clock_getcpuclockid()
|