mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 12:18:08 -07:00
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>
25 lines
664 B
Diff
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;
|
|
|