BACKPORT: bpf: add bpf_ktime_get_boot_ns()
On a device like a cellphone which is constantly suspending and resuming CLOCK_MONOTONIC is not particularly useful for keeping track of or reacting to external network events. Instead you want to use CLOCK_BOOTTIME. Hence add bpf_ktime_get_boot_ns() as a mirror of bpf_ktime_get_ns() based around CLOCK_BOOTTIME instead of CLOCK_MONOTONIC. Change-Id: I7b70d785eb8bd5237724ed7c5dc32e99ec51c1fc Signed-off-by:Maciej Żenczykowski <maze@google.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> (cherry picked from commit 71d19214776e61b33da48f7c1b46e522c7f78221) Git-commit: 34073d7a Git-repo: https://android.googlesource.com/kernel/common Signed-off-by:
Sharath Chandra Vurukala <quic_sharathv@quicinc.com> (cherry picked from commit 6dc0a859)
Loading
Please register or sign in to comment