daed: fix build for arm & riscv64
Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
parent
a6a046f3df
commit
959e1ce0b8
@ -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.'
|
||||||
|
84744
daed/patches_arm/0002-feat-Add-vmlinux-arm.h.patch
Normal file
84744
daed/patches_arm/0002-feat-Add-vmlinux-arm.h.patch
Normal file
File diff suppressed because it is too large
Load Diff
24
daed/patches_arm/0003-drop-kprobe-skb-5.patch
Normal file
24
daed/patches_arm/0003-drop-kprobe-skb-5.patch
Normal 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)
|
103763
daed/patches_riscv/0001-feat-Add-vmlinux-riscv.h.patch
Normal file
103763
daed/patches_riscv/0001-feat-Add-vmlinux-riscv.h.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user