diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-09 17:25:54 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-03-09 17:25:54 +0000 |
commit | 30598ddbdf700fd5484255b2ff10784b1ffc202a (patch) | |
tree | 326209a84a196cca2dc06501fee067aa3f0a9c4a | |
parent | 4b3c8add53b1d6d34bc6eee13471017806a2d294 (diff) | |
parent | 8c794ee2e5cdaeab0ee5f935865f0e8610b58e76 (diff) | |
download | platform_system_bpf-android11-mainline-media-release.tar.gz platform_system_bpf-android11-mainline-media-release.tar.bz2 platform_system_bpf-android11-mainline-media-release.zip |
Snap for 7195589 from 8c794ee2e5cdaeab0ee5f935865f0e8610b58e76 to mainline-media-releaseandroid-mainline-11.0.0_r39android11-mainline-media-release
Change-Id: I96d876b01ead0ed22c825739b1fe94dc6abb214e
-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; |