1b45118
core: define a helper function for basic bpf checks (cherry picked from commit bb0b01ed20436a6322f8b59b19b0b5b98a6ac2bc)