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 {
1784
1784
1785
1785
struct bpf_tracing_link {
1786
1786
struct bpf_tramp_link link ;
1787
- enum bpf_attach_type attach_type ;
1788
1787
struct bpf_trampoline * trampoline ;
1789
1788
struct bpf_prog * tgt_prog ;
1790
1789
};
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,
3414
3414
"target_obj_id:\t%u\n"
3415
3415
"target_btf_id:\t%u\n"
3416
3416
"cookie:\t%llu\n" ,
3417
- tr_link -> attach_type ,
3417
+ link -> attach_type ,
3418
3418
target_obj_id ,
3419
3419
target_btf_id ,
3420
3420
tr_link -> link .cookie );
@@ -3426,7 +3426,7 @@ static int bpf_tracing_link_fill_link_info(const struct bpf_link *link,
3426
3426
struct bpf_tracing_link * tr_link =
3427
3427
container_of (link , struct bpf_tracing_link , link .link );
3428
3428
3429
- info -> tracing .attach_type = tr_link -> attach_type ;
3429
+ info -> tracing .attach_type = link -> attach_type ;
3430
3430
info -> tracing .cookie = tr_link -> link .cookie ;
3431
3431
bpf_trampoline_unpack_key (tr_link -> trampoline -> key ,
3432
3432
& info -> tracing .target_obj_id ,
@@ -3516,7 +3516,6 @@ static int bpf_tracing_prog_attach(struct bpf_prog *prog,
3516
3516
bpf_link_init (& link -> link .link , BPF_LINK_TYPE_TRACING ,
3517
3517
& bpf_tracing_link_lops , prog , attach_type );
3518
3518
3519
- link -> attach_type = prog -> expected_attach_type ;
3520
3519
link -> link .cookie = bpf_cookie ;
3521
3520
3522
3521
mutex_lock (& prog -> aux -> dst_mutex );
You can’t perform that action at this time.
0 commit comments