We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a0257 commit fe879bbCopy full SHA for fe879bb
tools/bpf/bpftool/skeleton/pid_iter.bpf.c
@@ -102,8 +102,8 @@ int iter(struct bpf_iter__task_file *ctx)
102
BPF_LINK_TYPE_PERF_EVENT___local)) {
103
struct bpf_link *link = (struct bpf_link *) file->private_data;
104
105
- if (link->type == bpf_core_enum_value(enum bpf_link_type___local,
106
- BPF_LINK_TYPE_PERF_EVENT___local)) {
+ if (BPF_CORE_READ(link, type) == bpf_core_enum_value(enum bpf_link_type___local,
+ BPF_LINK_TYPE_PERF_EVENT___local)) {
107
e.has_bpf_cookie = true;
108
e.bpf_cookie = get_bpf_cookie(link);
109
}
0 commit comments