From 325ef4fc527774aded683d783bfee213a9d7a48b Mon Sep 17 00:00:00 2001 From: Moleus Date: Mon, 25 May 2026 13:13:32 +0300 Subject: [PATCH 1/3] fix(perf-profiler): undeclared function 'div_u64' on arm64 kernel >v6.8 Signed-off-by: Moleus --- src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h b/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h index 94a9705e80c..57ba121f84c 100644 --- a/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h +++ b/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h @@ -24,6 +24,7 @@ #pragma once #include +#include // Between linux v6.1 and v6.8, NSEC_PER_SEC is no longer defined by including // linux/sched.h. This ifndef covers newer kernels that won't have it defined. From e60139d0abe1b2b0cc0122789952f36202000e3b Mon Sep 17 00:00:00 2001 From: Moleus Date: Tue, 9 Jun 2026 17:28:42 +0300 Subject: [PATCH 2/3] fix lint --- src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h b/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h index 57ba121f84c..cd13ebb6341 100644 --- a/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h +++ b/src/stirling/bpf_tools/bcc_bpf/task_struct_utils.h @@ -23,8 +23,8 @@ #pragma once -#include #include +#include // Between linux v6.1 and v6.8, NSEC_PER_SEC is no longer defined by including // linux/sched.h. This ifndef covers newer kernels that won't have it defined. From ef16ce9f8aee8b801e1482adeadb572f13849123 Mon Sep 17 00:00:00 2001 From: Moleus Date: Tue, 9 Jun 2026 17:29:20 +0300 Subject: [PATCH 3/3] add stub include for bazel CPreprocess --- src/stirling/bpf_tools/bcc_bpf/system-headers/linux/math64.h | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/stirling/bpf_tools/bcc_bpf/system-headers/linux/math64.h diff --git a/src/stirling/bpf_tools/bcc_bpf/system-headers/linux/math64.h b/src/stirling/bpf_tools/bcc_bpf/system-headers/linux/math64.h new file mode 100644 index 00000000000..8d7974673be --- /dev/null +++ b/src/stirling/bpf_tools/bcc_bpf/system-headers/linux/math64.h @@ -0,0 +1 @@ +include