1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/bcc/fix-newer-kernel-header-missing-enum.patch
Dominique Martinet 0f74849ab7 community/bcc: devendor libbpf
bcc can be compiled without the bpf submodule if explicitely requested.
The submodule provided libbpf (added as dependency) as well as required
kernel headers, which are more problematic: add a patch to fix compilation
on our kernel
2021-04-15 09:30:16 +00:00

19 lines
770 B
Diff

From f3664206751341294df0d88e447629eef2bd3c50 Mon Sep 17 00:00:00 2001
From: Dominique Martinet <dominique.martinet@atmark-techno.com>
Date: Wed, 31 Mar 2021 12:22:15 +0900
Subject: [PATCH] introspection/bps.c: remove BPF_MAP_TYPE_TASK_STORAGE
BPF_MAP_TYPE_TASK_STORAGE got added in 5.11 but we are on 5.10 kernel
diff --git a/introspection/bps.c b/introspection/bps.c
index 0eae675e3817..b5595442faee 100644
--- a/introspection/bps.c
+++ b/introspection/bps.c
@@ -78,7 +78,6 @@ static const char * const map_type_strings[] = {
[BPF_MAP_TYPE_STRUCT_OPS] = "struct_ops",
[BPF_MAP_TYPE_RINGBUF] = "ringbuf",
[BPF_MAP_TYPE_INODE_STORAGE] = "inode_storage",
- [BPF_MAP_TYPE_TASK_STORAGE] = "task_storage",
};
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))