summaryrefslogtreecommitdiffstats
path: root/kernel/gcov/fs.c
diff options
context:
space:
mode:
authorShuyi Cheng <chengshuyi@linux.alibaba.com>2021-12-10 17:39:57 +0800
committerAndrii Nakryiko <andrii@kernel.org>2021-12-10 15:35:30 -0800
commit229fae38d0fc0d6ff58d57cbeb1432da55e58d4f (patch)
tree54b31b2a70c4005f4a518210ed3af727a61bc422 /kernel/gcov/fs.c
parentb69c5c07a66ee569b8ccdc0cb567fe0622c89ea5 (diff)
downloadlinux-229fae38d0fc0d6ff58d57cbeb1432da55e58d4f.tar.gz
linux-229fae38d0fc0d6ff58d57cbeb1432da55e58d4f.tar.bz2
linux-229fae38d0fc0d6ff58d57cbeb1432da55e58d4f.zip
libbpf: Add "bool skipped" to struct bpf_map
Fix error: "failed to pin map: Bad file descriptor, path: /sys/fs/bpf/_rodata_str1_1." In the old kernel, the global data map will not be created, see [0]. So we should skip the pinning of the global data map to avoid bpf_object__pin_maps returning error. Therefore, when the map is not created, we mark “map->skipped" as true and then check during relocation and during pinning. Fixes: 16e0c35c6f7a ("libbpf: Load global data maps lazily on legacy kernels") Signed-off-by: Shuyi Cheng <chengshuyi@linux.alibaba.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'kernel/gcov/fs.c')
0 files changed, 0 insertions, 0 deletions