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), ...
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...
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 incl...
In commit 27727df ("Avoid taking lock in NMI path with CONFIG_DEBUG_TIMEKEEPING"), I changed the logic to open-code the timekeeping_get_ns() function, but I forgot to include the unit conversion from cycles to nanoseconds, breaking the function's output, which impacts users like perf. ...