18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: LGPL-2.1 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#include <bpf.h> 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_cistatic int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid; 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cistatic pid_t getpid(void) 88c2ecf20Sopenharmony_ci{ 98c2ecf20Sopenharmony_ci return bpf_get_current_pid_tgid(); 108c2ecf20Sopenharmony_ci} 11