diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-18 20:22:59 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-18 20:22:59 +0000 |
commit | 0923b6574a632d885336886103ccbf3cdcbc2b4b (patch) | |
tree | 326209a84a196cca2dc06501fee067aa3f0a9c4a | |
parent | 4b3c8add53b1d6d34bc6eee13471017806a2d294 (diff) | |
parent | 8c794ee2e5cdaeab0ee5f935865f0e8610b58e76 (diff) | |
download | platform_system_bpf-android-mainline-11.0.0_r26.tar.gz platform_system_bpf-android-mainline-11.0.0_r26.tar.bz2 platform_system_bpf-android-mainline-11.0.0_r26.zip |
Snap for 7218917 from 8c794ee2e5cdaeab0ee5f935865f0e8610b58e76 to mainline-cellbroadcast-releaseandroid-mainline-11.0.0_r37android-mainline-11.0.0_r26android11-mainline-cellbroadcast-release
Change-Id: I2498a098e0874cd5b54a9687a97651c5038ebc03
-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; |