Hence add bpf_ktime_get_boot_ns() as a mirror of bpf_ktime_get_ns() based around CLOCK_BOOTTIME instead of CLOCK_MONOTONIC. Signed-off-by: Maciej Żenczykowski <maze@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> (cherry picked from commit 71d1921...
ktime_get_coarse_ns等函数用于纳秒级时间获取。ktime_mono_to_real将单调时间转换为真实时间。ktime_get_ns等函数用于系统时间、真实时间等纳秒级获取。ktime_get_boottime_ts64和ktime_get_coarse_boottime_ts64用于获取启动时间。ktime_get_boottime_seconds获取秒级启动时间。ktime_get_clocktai_...
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_...
(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
Annotation kernel can get tool activity Download SCCT Chinese 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...
rwb_sync_issue_lat ktime_get_coarse_ns ktime_get_coarse_real_ns ktime_get_coarse_boottime_ns ktime_get_coarse_clocktai_ns ktime_get_ns ktime_get_real_ns ktime_get_boottime_ns ktime_get_clocktai_ns ktime_get_raw_ns hrtimer_get_expires_ns hrtimer_start_expires 源...
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), ...
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.h bsg.h btf...
函数名称:取运行时间 函数原型: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_...