File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1784,7 +1784,6 @@ struct bpf_shim_tramp_link {
17841784
17851785struct bpf_tracing_link {
17861786 struct bpf_tramp_link link ;
1787- enum bpf_attach_type attach_type ;
17881787 struct bpf_trampoline * trampoline ;
17891788 struct bpf_prog * tgt_prog ;
17901789};
Original file line number Diff line number Diff line change @@ -3414,7 +3414,7 @@ static void bpf_tracing_link_show_fdinfo(const struct bpf_link *link,
34143414 "target_obj_id:\t%u\n"
34153415 "target_btf_id:\t%u\n"
34163416 "cookie:\t%llu\n" ,
3417- tr_link -> attach_type ,
3417+ link -> attach_type ,
34183418 target_obj_id ,
34193419 target_btf_id ,
34203420 tr_link -> link .cookie );
@@ -3426,7 +3426,7 @@ static int bpf_tracing_link_fill_link_info(const struct bpf_link *link,
34263426 struct bpf_tracing_link * tr_link =
34273427 container_of (link , struct bpf_tracing_link , link .link );
34283428
3429- info -> tracing .attach_type = tr_link -> attach_type ;
3429+ info -> tracing .attach_type = link -> attach_type ;
34303430 info -> tracing .cookie = tr_link -> link .cookie ;
34313431 bpf_trampoline_unpack_key (tr_link -> trampoline -> key ,
34323432 & info -> tracing .target_obj_id ,
@@ -3516,7 +3516,6 @@ static int bpf_tracing_prog_attach(struct bpf_prog *prog,
35163516 bpf_link_init (& link -> link .link , BPF_LINK_TYPE_TRACING ,
35173517 & bpf_tracing_link_lops , prog , attach_type );
35183518
3519- link -> attach_type = prog -> expected_attach_type ;
35203519 link -> link .cookie = bpf_cookie ;
35213520
35223521 mutex_lock (& prog -> aux -> dst_mutex );
You can’t perform that action at this time.
0 commit comments