case BPF_FUNC_ktime_get_ns: return &bpf_ktime_get_ns_proto; case BPF_FUNC_ktime_get_boot_ns: return &bpf_ktime_get_boot_ns_proto; case BPF_FUNC_tail_call: return &bpf_tail_call_proto; case BPF_FUNC_get_prandom_u32: 1 change: 1 addition & 0 deletions 1 inclu...
ktime_mono_to_real将单调时间转换为真实时间。ktime_get_ns等函数用于系统时间、真实时间等纳秒级获取。ktime_get_boottime_ts64和ktime_get_coarse_boottime_ts64用于获取启动时间。ktime_get_boottime_seconds获取秒级启动时间。ktime_get_clocktai_ts64和ktime_get_coarse_clocktai_ts64用于获取...
tv->tv_usec = (ns % (1000ULL * 1000 * 1000)) / 1000; return RT_EOK; } @@ -28,9 +28,9 @@ rt_weak rt_err_t rt_ktime_boottime_get_s(time_t *t) { RT_ASSERT(t != RT_NULL); unsigned long ns = (rt_ktime_cputimer_getcnt() * rt_ktime_cputimer_getres()) / RT...
(div>>32)){s64ns=kt;u64tmp=ns<0?-ns:ns;do_div(tmp,div);returnns<0?-tmp:tmp;}else{return__ktime_divns(kt,div);}}#else/* BITS_PER_LONG < 64 */staticinlines64ktime_div
Name:ktime_get_boottime_ns Proto:static inline u64 ktime_get_boottime_ns(void) Type:u64 Parameter:Nothing164 Return Convert ktime_t to nanoseconds Caller NameDescribe copy_process Create a new process bpf_prog_load Source code conversion toolpublic plug-in interface X Support c/c++/esqlc...
ktime_get_boot_fast_ns ktime_get_boot_fast_ns - NMI safe and fast access to boot clock.* To keep it NMI safe since we're accessing from tracing, we're not using a* separate timekeeper with updates to monotonic clock and boot offset* protected with seqlocks __ktime_get_real_fast_...
Syntax:```u64 bpf_ktime_get_ns(void)``` Return:current time innanoseconds Return:u64 number ofnanoseconds. Starts at system boot time but stops during suspend. Examples in situ: [search /examples](https://github.com/iovisor/bcc/search?q=bpf_ktime_get_ns+path%3Aexamples&type=Code), ...
bootconfig.h bootmem_info.h bottom_half.h bpf-cgroup-defs.h bpf-cgroup.h bpf-netns.h bpf.h bpf_crypto.h bpf_lirc.h bpf_local_storage.h bpf_lsm.h bpf_mem_alloc.h bpf_mprog.h bpf_trace.h bpf_types.h bpf_verifier.h bpfptr.h brcmphy.h bsearch.h bsg-lib....
函数名称:取运行时间 函数原型:static inline ktime_t ktime_get_boottime(void) 返回类型:ktime_t 参数:无95 返回:ktime_get_with_offset(TK_OFFS_BOOT) 调用者 名称描述 try_to_freeze_tasks ktime_get_boottime_ns ktime_get_boottime_ts64 mespec64/time64_t interfaces utilizing the ktime ba...
15 15 rt_weak rt_err_t rt_ktime_boottime_get_us(struct timeval *tv) 16 16 { 17 17 RT_ASSERT(tv != RT_NULL); 18 18 19 - unsigned long ns = (rt_ktime_cputimer_getcnt() * rt_ktime_cputimer_getres()) / RT_KTIME_RESMUL; 19 + rt_uint64_t ns = (rt_ktime_...