122 + return ktime_get_boot_fast_ns(); 123 + } 124 + 125 + const struct bpf_func_proto bpf_ktime_get_boot_ns_proto = { 126 + .func = bpf_ktime_get_boot_ns, 127 + .gpl_only = false, 128 + .ret_type = RET_INTEGER, 129 + }; 130 + 119 ...
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...
__ktime_get_fast_ns ktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic* This timestamp is not guaranteed to be monotonic across an update 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 ac...
ktime_get_coarse用于低精度时间获取。ktime_get_coarse_ns等函数用于纳秒级时间获取。ktime_mono_to_real将单调时间转换为真实时间。ktime_get_ns等函数用于系统时间、真实时间等纳秒级获取。ktime_get_boottime_ts64和ktime_get_coarse_boottime_ts64用于获取启动时间。ktime_get_boottime_seconds获...
ns_to_ktime函数和ms_to_ktime函数的作用是将纳秒和毫秒单位的时间值转换为ktime_t类型的时间值,实现较为简单。 从这里开始就是<linux/timekeeping.h>(下文简称timekeeping.h)的部分,其涉及到各类时间(主要是系统时间、真实时间、启动时间、TAI时间和原始时间)、时钟源的设置等操作,包含大量函数声明(全部实现在<...