diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-10 22:10:23 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-10 22:10:23 +0000 |
commit | 947f4007bc8b6dae1d4a5df11c998e625fa7cbf0 (patch) | |
tree | 326209a84a196cca2dc06501fee067aa3f0a9c4a | |
parent | 4b3c8add53b1d6d34bc6eee13471017806a2d294 (diff) | |
parent | 8c794ee2e5cdaeab0ee5f935865f0e8610b58e76 (diff) | |
download | bpf-android11-mainline-permission-release.tar.gz |
Snap for 7198837 from 8c794ee2e5cdaeab0ee5f935865f0e8610b58e76 to mainline-permission-releaseandroid-mainline-11.0.0_r42android-mainline-11.0.0_r25android11-mainline-permission-release
Change-Id: Ib91db56afe142c07de868ff2e8bb1abfcad57bfe
-rw-r--r-- | progs/include/bpf_helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/include/bpf_helpers.h b/progs/include/bpf_helpers.h index 9d22584..f09ec83 100644 --- a/progs/include/bpf_helpers.h +++ b/progs/include/bpf_helpers.h @@ -102,6 +102,8 @@ static int (*bpf_map_delete_elem_unsafe)(const void* map, static int (*bpf_probe_read)(void* dst, int size, void* unsafe_ptr) = (void*) BPF_FUNC_probe_read; static int (*bpf_probe_read_str)(void* dst, int size, void* unsafe_ptr) = (void*) BPF_FUNC_probe_read_str; static unsigned long long (*bpf_ktime_get_ns)(void) = (void*) BPF_FUNC_ktime_get_ns; +// TODO: change to BPF_FUNC_ktime_get_boot_ns in sc-mainline-prod. +static unsigned long long (*bpf_ktime_get_boot_ns)(void) = (void*)125; static int (*bpf_trace_printk)(const char* fmt, int fmt_size, ...) = (void*) BPF_FUNC_trace_printk; static unsigned long long (*bpf_get_current_pid_tgid)(void) = (void*) BPF_FUNC_get_current_pid_tgid; static unsigned long long (*bpf_get_current_uid_gid)(void) = (void*) BPF_FUNC_get_current_uid_gid; |