Thanks to visit codestin.com Credit goes to github.com
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 4d753cf commit 75d015fCopy full SHA for 75d015f
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