We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de445d commit 07651ccCopy full SHA for 07651cc
kernel/bpf/syscall.c
@@ -4732,6 +4732,8 @@ static int bpf_prog_get_info_by_fd(struct file *file,
4732
info.recursion_misses = stats.misses;
4733
4734
info.verified_insns = prog->aux->verified_insns;
4735
+ if (prog->aux->btf)
4736
+ info.btf_id = btf_obj_id(prog->aux->btf);
4737
4738
if (!bpf_capable()) {
4739
info.jited_prog_len = 0;
@@ -4878,8 +4880,6 @@ static int bpf_prog_get_info_by_fd(struct file *file,
4878
4880
}
4879
4881
4882
- if (prog->aux->btf)
- info.btf_id = btf_obj_id(prog->aux->btf);
4883
info.attach_btf_id = prog->aux->attach_btf_id;
4884
if (attach_btf)
4885
info.attach_btf_obj_id = btf_obj_id(attach_btf);
0 commit comments