from bpftool github repo issue [0], when Linux distribution kernel.kptr_restrict is set to 2, bpftool prog dump jited returns "no instructions returned", this message can be puzzling to bpftool users who is not familiar with kernel BPF internal, so add small hint for bpftool users to check kernel.kptr_restrict setting. Set kernel.kptr_restrict to expose kernel address to allow bpftool prog dump jited to dump the jited bpf program instructions. [0]: https://github.com/libbpf/bpftool/issues/184 Signed-off-by: Vincent Li jited_prog_len == 0 || !info->jited_prog_insns) { - p_info("no instructions returned"); + p_info("no instructions returned: set kernel.kptr_restrict to expose kernel addresses"); return -1; } buf = u64_to_ptr(info->jited_prog_insns); -- 2.38.1