commit | 71d19214776e61b33da48f7c1b46e522c7f78221 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Sun Apr 26 09:15:25 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Sun Apr 26 09:43:05 2020 -0700 |
tree | 424b2ecd19cc56edb46333e2a2773cd062bdaf82 | |
parent | 0a05861f80fe7d4dcfdabcc98d9854947573e072 [diff] |
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. Signed-off-by: Maciej Żenczykowski <maze@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>