File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -503,6 +503,7 @@ static int show_link_close_json(int fd, struct bpf_link_info *info)
503
503
json_wtr );
504
504
jsonw_uint_field (json_wtr , "target_obj_id" , info -> tracing .target_obj_id );
505
505
jsonw_uint_field (json_wtr , "target_btf_id" , info -> tracing .target_btf_id );
506
+ jsonw_uint_field (json_wtr , "cookie" , info -> tracing .cookie );
506
507
break ;
507
508
case BPF_LINK_TYPE_CGROUP :
508
509
jsonw_lluint_field (json_wtr , "cgroup_id" ,
@@ -900,6 +901,8 @@ static int show_link_close_plain(int fd, struct bpf_link_info *info)
900
901
printf ("\n\ttarget_obj_id %u target_btf_id %u " ,
901
902
info -> tracing .target_obj_id ,
902
903
info -> tracing .target_btf_id );
904
+ if (info -> tracing .cookie )
905
+ printf ("\n\tcookie %llu " , info -> tracing .cookie );
903
906
break ;
904
907
case BPF_LINK_TYPE_CGROUP :
905
908
printf ("\n\tcgroup_id %zu " , (size_t )info -> cgroup .cgroup_id );
You can’t perform that action at this time.
0 commit comments