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 1c45a55 commit 5276c46Copy full SHA for 5276c46
tools/bpf/bpftool/skeleton/pid_iter.bpf.c
@@ -100,7 +100,7 @@ int iter(struct bpf_iter__task_file *ctx)
100
if (obj_type == BPF_OBJ_LINK &&
101
bpf_core_enum_value_exists(enum bpf_link_type___local,
102
BPF_LINK_TYPE_PERF_EVENT___local)) {
103
- struct bpf_link *link = (struct bpf_link *) file->private_data;
+ struct bpf_link *link = bpf_core_cast(file->private_data, struct bpf_link);
104
105
if (link->type == bpf_core_enum_value(enum bpf_link_type___local,
106
0 commit comments