Files
gentoo/dev-util/bcc/files/bcc-0.36.1-const.patch
Holger Hoffstätte 0407cbbfcf dev-util/bcc: add patches for llvm-22 support
All merged upstream, except for the build fix silencing git.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/45976
Closes: https://github.com/gentoo/gentoo/pull/45976
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
2026-04-03 12:07:21 -07:00

25 lines
664 B
Diff

https://github.com/iovisor/bcc/pull/5481
--- bcc/src/cc/bcc_perf_map.c
+++ bcc/src/cc/bcc_perf_map.c
@@ -23,7 +23,7 @@
#include "bcc_perf_map.h"
bool bcc_is_perf_map(const char *path) {
- char* pos = strstr(path, ".map");
+ const char* pos = strstr(path, ".map");
// Path ends with ".map"
return (pos != NULL) && (*(pos + 4)== 0);
}
--- bcc/src/cc/libbpf.c
+++ bcc/src/cc/libbpf.c
@@ -787,7 +787,7 @@ int bcc_prog_load_xattr(enum bpf_prog_ty
int ret = 0, name_offset = 0, expected_attach_type = 0;
char new_prog_name[BPF_OBJ_NAME_LEN] = {};
char mod_name[64] = {};
- char *mod_end;
+ const char *mod_end;
int mod_len;
int fd = -1;