daed: fix build for arm & riscv64

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-12-03 11:37:46 +08:00
parent a6a046f3df
commit 959e1ce0b8
4 changed files with 188537 additions and 0 deletions

View File

@ -22,6 +22,12 @@ PKG_BUILD_DEPENDS:=golang/host bpf-headers
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16 PKG_BUILD_FLAGS:=no-mips16
ifeq ($(ARCH),arm)
PATCH_DIR:=patches_arm
else ifeq ($(ARCH),riscv64)
PATCH_DIR:=patches_riscv
endif
GO_PKG:=github.com/daeuniverse/dae-wing GO_PKG:=github.com/daeuniverse/dae-wing
GO_PKG_LDFLAGS:= \ GO_PKG_LDFLAGS:= \
-X '$(GO_PKG)/db.AppDescription=$(PKG_NAME) is a integration solution of dae, API and UI.' -X '$(GO_PKG)/db.AppDescription=$(PKG_NAME) is a integration solution of dae, API and UI.'

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,24 @@
--- a/dae-core/trace/kern/trace.c
+++ b/dae-core/trace/kern/trace.c
@@ -228,7 +228,7 @@ KPROBE_SKB_AT(1)
KPROBE_SKB_AT(2)
KPROBE_SKB_AT(3)
KPROBE_SKB_AT(4)
-KPROBE_SKB_AT(5)
+//KPROBE_SKB_AT(5)
SEC("kprobe/skb_lifetime_termination")
int kprobe_skb_lifetime_termination(struct pt_regs *ctx)
--- a/dae-core/trace/trace.go
+++ b/dae-core/trace/trace.go
@@ -206,8 +206,8 @@ func attachBpfToTargets(objs *bpfObjects
kp, err = link.Kprobe(fn, objs.KprobeSkb3, nil)
case 4:
kp, err = link.Kprobe(fn, objs.KprobeSkb4, nil)
- case 5:
- kp, err = link.Kprobe(fn, objs.KprobeSkb5, nil)
+ //case 5:
+ // kp, err = link.Kprobe(fn, objs.KprobeSkb5, nil)
}
if err != nil {
logrus.Debugf("failed to attach kprobe to %s: %+v\n", fn, err)

File diff suppressed because it is too large Load Diff