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 @@ -485,6 +485,7 @@ static int show_link_close_json(int fd, struct bpf_link_info *info)
485
485
case BPF_LINK_TYPE_RAW_TRACEPOINT :
486
486
jsonw_string_field (json_wtr , "tp_name" ,
487
487
u64_to_ptr (info -> raw_tracepoint .tp_name ));
488
+ jsonw_uint_field (json_wtr , "cookie" , info -> raw_tracepoint .cookie );
488
489
break ;
489
490
case BPF_LINK_TYPE_TRACING :
490
491
err = get_prog_info (info -> prog_id , & prog_info );
@@ -879,6 +880,8 @@ static int show_link_close_plain(int fd, struct bpf_link_info *info)
879
880
case BPF_LINK_TYPE_RAW_TRACEPOINT :
880
881
printf ("\n\ttp '%s' " ,
881
882
(const char * )u64_to_ptr (info -> raw_tracepoint .tp_name ));
883
+ if (info -> raw_tracepoint .cookie )
884
+ printf ("cookie %llu " , info -> raw_tracepoint .cookie );
882
885
break ;
883
886
case BPF_LINK_TYPE_TRACING :
884
887
err = get_prog_info (info -> prog_id , & prog_info );
You can’t perform that action at this time.
0 commit comments