Code for EBPF CP and DP functions